Message ID | 87h741s961.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | Accepted |
Commit | 817a62108dfacebd548e38451bf0e7eee023e97f |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 734D2C43334 for <alsa-devel@archiver.kernel.org>; Fri, 1 Jul 2022 05:19:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 812F616CB; Fri, 1 Jul 2022 07:18:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 812F616CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1656652771; bh=kbqjyszXmfA6bhThiPigmUaqWfmoON0qCgDwmK0wf50=; h=From:Subject:To:In-Reply-To:References:Date:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=P6HdvQMiVoZqIrmfw29Yzv3vSaPDBiK2jjhNjgKjdeEyx/PKPR4REu7uTJ+tiSbHA QWUHUuM1y9fucgpZIgKPde/v9REslICLQeNGRlPaBQfLHATIdFvnbVDa3q4576H0Jg JpPjImYD0UJ5I8HhyL2PXjpBQvchzde0eikkT+fk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1D8B8F80536; Fri, 1 Jul 2022 07:18:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 579BCF80535; Fri, 1 Jul 2022 07:18:25 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2129.outbound.protection.outlook.com [40.107.114.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C63DBF80535 for <alsa-devel@alsa-project.org>; Fri, 1 Jul 2022 07:18:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C63DBF80535 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="SAj+M2lL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HJbrfHxRn/ovdLQJEFoY9IBv8o2UHyNT/iTR+bnJJyWKGwsciezK3FJxXoB4oA9L1SP+2+rDy9sUjkaUNtgQziR4RIbL/tsfTTsNMIl1K3MKtT8S8xLVddheToC1oV0POSk4Fw9e+mKa6zvY+l/xi9KUoPL0xNlRFTwUzaEPLMMWzbUgyCn/lT5LJc/sZNEQw3SaArTz5UwEEMFKIcC2NJueVaCRGJ/W6chRp48qBRZY1I6W1tz9ch3xMydEl5wV6bIeJ0GfbvfY1Ok8hsb/TS9rl9sWZyNdl972dVAOIo82dnQGOk+E3WdAnnYH8uBbuE7NAWctiy8ya8HDQa9j0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Tf1RWRnFQ0vBNJeGCtPt32wed/O4ckggnwinGirrCGk=; b=j4gFY0vx7a7gl+2D7H7uuPVI47+HpyCOqFYtW3sBPTPKA0Me6fGf+MsPThBg5CMNyjwynFVe0he1FQbRO0zRQtghEmgAJebqLReHMacE+N2myF3ofGQOv33KTIQ9kKOHF3m/6dUB/2E26o4OYF3OX04xXQofFEG7CqRJebgYBAbr2kIllAKE6K8dg8mWdg4b2C+ZvVotPULicOAU/hnpRql3Mvl3jtmpWIy/OxGzQIMrEh3ALA72Yc2R8nJCzvZNCaV++KNt58u2U12kgxrs6XUzPpWvq6wbCdea/m3kv9vaVXL3CCsEPQ8+h/RKTEyqdzApWdqz9VphY0flcQEFtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Tf1RWRnFQ0vBNJeGCtPt32wed/O4ckggnwinGirrCGk=; b=SAj+M2lLqgDFDnUI2cFfFbpDei9Mj6G+og9ITxUxhhFCbfJek2SB6/suquWolG9IV0ASi6zP56tKES7hxMVXUJbjyUDs6HfUedKhv9bSG6201KpcsMmilvTcbzFLUdZ27mBBZ4yVS6hebj4L2Mc9aBV5HlO5g9ythvf28/wjO/U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB8838.jpnprd01.prod.outlook.com (2603:1096:400:17c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Fri, 1 Jul 2022 05:18:15 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::3838:1a73:ae46:bab2]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::3838:1a73:ae46:bab2%5]) with mapi id 15.20.5395.014; Fri, 1 Jul 2022 05:18:15 +0000 Message-ID: <87h741s961.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 1/6] ASoC: audio-graph-card2.c: use of_property_read_u32() for rate User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <87ilohs96p.wl-kuninori.morimoto.gx@renesas.com> References: <87ilohs96p.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Fri, 1 Jul 2022 05:18:14 +0000 X-ClientProxiedBy: TYBP286CA0039.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:10a::27) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 41a99cbf-269d-4796-ee35-08da5b211976 X-MS-TrafficTypeDiagnostic: TYWPR01MB8838:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /lOlVr5BzlYA4PxeGnvHCQyeRfCN7A55G5Tha4sZlxhlYzYnFKm9OxfE0uNDENE5Zcxho0oStqq6GWFTwKZTU/kCb7KCsM2JVKSlja6ty/cpIC1bYklAbzTB9tOLNAMRpLvwZ88CnmQvAZRAEm10VGC3/GtxZK7nrFvm4aD+su0+fdPvFAILEBr4BHEfhh7kwnTCxbqPy2iKHLdAqAJQOj+/yBSE2XsE+ct/z2BEArBUW672DFl9vQoIluJ/EY+iUF9kYWdgwt8J9K1ZYuMubBD76G7auJ6kLroksP6e5hMDR8o2MZ/efYr/kr4T3Zkj0RNEpvwi2L8NZSkBKwGSNLxnyjLHGAtW/tUzyV61l3STl9S08KQ4U6R5AcbR7ob7ljJZZ9ifHJcRng/slum+KzAkjtiDyLBvu46hRxhIn806dxMbjIKd5cKTR5vUisjdvEmpsKjQVk3PYvyQwH934i5kOF1Yo0YI9c8Q7uCMkTo/ecxbZMJcUbEZehKb5EWvJlas5SaaElBUEpuwglNmwIAVFfXQEmIBQM6satHt2eY7n6wc9NaGRiChlFWBQy5eWi4dKKGkgEpvt9ZyjlHV/2cVUXwAS5PJjpkB7xSHlpWQjMqfwkeBECg5JS9Wrig4a3A6lHdCMZq43VoTcLty+BsNQRiHrQ9hy6MkXC58WWjLw/JmuVPPspdcD0Vk8I1GIi1EINd4zFxFTM0Nhpx6pwLcywYE7Wu3jOpGy5zmb4J5ZH4obPsg9/7RFXHUJKqK0orFSjcU2vxAdbCR+y4voNmpLMhGgMdxZqJjZnQ0rxSH+/4ipi78b2EnAwa5tsQF X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(376002)(346002)(396003)(39860400002)(366004)(186003)(2616005)(2906002)(6486002)(478600001)(83380400001)(36756003)(8936002)(26005)(5660300002)(6916009)(316002)(66476007)(6512007)(38350700002)(8676002)(66946007)(38100700002)(86362001)(4326008)(66556008)(41300700001)(6506007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qJHT+QalPfW/5ABhejv1XLx0Mc1/jza0Bc3ssFJCmxbj3gmS4PCr7XwffX9vScLbqCUAPKZjJPGBfs55dpUBzrxCjgZYwlBlgKdJ3ZAO31aU7OgVr8jWhgpF3w9Y+X4VkPQQ81I61EXnmIJZZDaRJ6/daj5KiNd+pJVGB3liRTas+LRAq7w2S7b4AYHfcM1VN3oMb9aMlhkY8S6EB34ngSVGonEeqfHGDTV6DIKK5wW3sp50a8BiEgTsUsNtC7utlU9K+gkQ/aiQrEtDUnxSNXYXDC7uNL6rzp+FSQ0ID2l4dPMNzKff3ZKVqGaBSSV7sKesCz+Bledv9aOe3VUBz2kb6mqkTKhcJdX7ChfUToximtgrnvy3BKmgNELm92JGsuvDshogc5MhRMljy2h7UM75uFLF86UZpUeEa4kYR2ZQNRP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2LmDqEeyS+nbYwxWeQz61Fib4bkSoK+J6qNaOZ+A3sjbmY2NvoU0mBJwruTNmLO6Ga3wkLWm5RUfUK5ota53qZQ702mTnZeqB5uJhPUzQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41a99cbf-269d-4796-ee35-08da5b211976 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2022 05:18:15.5743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H9dL2ud0IOU2kXTSFBpYivWZVVtil5k2ajanDS1RECua6tIjC6/DSgZpZ23RAklh4szSHsTP9CRB5y6mdLNFiJNvnAHzMHkFgEAyrwdNVWoRvWeLCfOXuoB+0v3DfFbD X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8838 Cc: Linux-ALSA <alsa-devel@alsa-project.org> X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
ASoC: audio-graph-card2.c: make Codec2Codec settings optional
|
expand
|
diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index d34b29a49268..8e0628e6f2a0 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -856,7 +856,7 @@ int audio_graph2_link_c2c(struct asoc_simple_priv *priv, struct device_node *port0, *port1, *ports; struct device_node *codec0_port, *codec1_port; struct device_node *ep0, *ep1; - u32 val; + u32 val = 0; int ret = -EINVAL; /* @@ -880,7 +880,8 @@ int audio_graph2_link_c2c(struct asoc_simple_priv *priv, ports = of_get_parent(port0); port1 = of_get_next_child(ports, lnk); - if (!of_get_property(ports, "rate", &val)) { + of_property_read_u32(ports, "rate", &val); + if (!val) { struct device *dev = simple_priv_to_dev(priv); dev_err(dev, "Codec2Codec needs rate settings\n");