Message ID | 87edrbea20.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | New |
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 9AA18C61DA4 for <alsa-devel@archiver.kernel.org>; Tue, 31 Jan 2023 02:06:33 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8A0D1EE0; Tue, 31 Jan 2023 03:05:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8A0D1EE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1675130791; bh=aBIS9eLwcw2qWqc3fSOiP3StdWrMhyu4mnVwlbnI1yA=; h=From:Subject:To:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=nVqSLA7+pXaiTqzfOLOovWWjk5EtNQuYI+0ViiCEaFduDOTM+Gh2/gy7jOhJiE2/s /Q9EU9X/5P452vrFsPWUrB+5I731y9UVLeI9WZjz5OK8g0H419pZFRZf6tD/FrQ9fi QRAbey3KoRlQ1IbrFvKcqeMkTzgC/S3V993Uok/4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CC09AF805DA; Tue, 31 Jan 2023 03:02:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E963AF805D9; Tue, 31 Jan 2023 03:02:03 +0100 (CET) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2112.outbound.protection.outlook.com [40.107.215.112]) (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 8F5DDF80558 for <alsa-devel@alsa-project.org>; Tue, 31 Jan 2023 03:02:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8F5DDF80558 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=bGL9/UBH ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cgwsIYOyBP0PRRntlERbMXolf2r7jWpwThllmiINbQty7vKKpCPxY4Sp4fzs/OcxYRG/jCKXG1zaZ9yviDvepKqAvfGSpvDJLGkCBDomKQzbCntSW8ukbxEL0vcCMil30jMTcwKOcbm27g66YCm11VNqOyOZeXJ49Lliu+vXdxwZa1Vyc+Z0phqB28gphfKrKzUey/v4A7tRCGO1A5d5ZlwNDrpV5+LJtLvYoVfn7q/EHpbAih0U70dB8OAv0i03fQ8J+dbVtM4nlr5Wp0x1q+ZWHdGdKXrb7Q0oeWAD8WE6x6bIE2uKT2DblU6s1efmsXy0NRRMhqIWARfWSeeVOA== 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=VXK2sxJk8N/3kQByOfVX60fjYZw4VWoFiws6HBc0z5s=; b=hy4Lp1xU24xKo1yDna27DCScc+XDMSreRsOleU7Nq4+x3nQun5PyoQTv6tN0O1qeQnbrpewDbXmXwS7dOl673UyXowpP9/2wJ20sOO+ysfoap03tbPyRwrUsSBGdo6MdGq2ef4tV3rniFyBi0yNUXJF54QYgDzsW19fyY3yPbKTN5eiqSJJqTaPVkpdAO0hBMEHsfOy6PiH4rwP/pNMMoBXBt5O6kygnH3nFyDfa0e7/ShmWHCavR8JqQKzKuW8U1SFTI4WvAIMs7ubZuAVy+XPse2wMqESUppx4+cBO2CO8OC8pwlnolBZZ1N+ICX97XvUq1QmWkUo8F8McPXdaEA== 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=VXK2sxJk8N/3kQByOfVX60fjYZw4VWoFiws6HBc0z5s=; b=bGL9/UBHKiW4DiQKIwRYS8nG5h6G4S5+dz6aZDxRUG7ssm60VeOPT8OsYHsi+KjRJVfHDbwoQP7zGUH2vSHsJtgH12mhJSm/gckc14sJrOHlzzkAc7TDZjj20J/F8mLua42h2yJJsFNVVxnrqHlazF7+xxQ6d0YruEwKNopO0jA= 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 TYWPR01MB8464.jpnprd01.prod.outlook.com (2603:1096:400:173::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 02:01:59 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860%8]) with mapi id 15.20.6043.036; Tue, 31 Jan 2023 02:01:59 +0000 Message-ID: <87edrbea20.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 24/25] ASoC: soc-topology.c: use helper function User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <87cz6vfosc.wl-kuninori.morimoto.gx@renesas.com> References: <87cz6vfosc.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Tue, 31 Jan 2023 02:01:59 +0000 X-ClientProxiedBy: TYXPR01CA0066.jpnprd01.prod.outlook.com (2603:1096:403:a::36) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB8464:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ad2403a-009b-4d2c-a249-08db032f237c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muzfNJahB5uBQGfN6J1eI7tr+leRtkeLjDyT0KlF/l1PDFZy5oS4J14eOHJ5OgluFUtZ3qJXNeuqeY1LWKRE0T5sUuo6pc78lje6i8Um4D/5yG+eAgaGuqgjSMOu2WX0Xlc88c/N9RYoBb1AOf+CuzFMPlBfFUWCpGKEhO0c0HytWMt3239evc23NC6wQAVb4weFTGRhP+qKpM3ibVvFbI1+ybtHBgwORfEGSxoNCng40RRIUbW366/CxwNL7KWgev7JlCY4jVb83Yb8WSWzYYzk2GucjgOUIsCbUyGqfYt4L96y3oDoO7EdJ5zMf0SFo3Bg2GXl8AbJfXgU54fhBdPTYAfttcFbqYhbbN2BpuhWhjBMHvLxSM0nP1x6TWLeXw4ux7EDLsDQDv9k/erhMnajiNixOmHhKs+m9U5uk6Fuytg+d4mPu4GCaJlfgoLsk16ABlMS6AgyUAKrmFjcDsaHtTaStrqJiq66XSoMemoyxcMIMFsnOxlAVoKAYUKb4spM1TDc1IeR4M1ONt4x9TNU0Cl+qLJWGZvisbl2I+mbnT9c9KjiMII+8eBzr8joa4JdDX21e+upIW7uH6fLbqXSN2P5VpEueRTlrdnFdXM5HR+w0803M+hAPjRdxYa69+biIhJIv8lf8MKt4HJGUoOjIo+QWpj/x/rxBfKOB25ntnldh7ZMOUq3qhOeSQIeRK+P3XSIubaLHgNj+vOG1Q== 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:(13230025)(4636009)(376002)(136003)(39860400002)(346002)(396003)(366004)(451199018)(36756003)(2906002)(83380400001)(316002)(2616005)(8676002)(478600001)(52116002)(6486002)(6506007)(6512007)(26005)(186003)(6916009)(86362001)(66556008)(66476007)(5660300002)(8936002)(41300700001)(4326008)(66946007)(38100700002)(38350700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i8oCsELjCpIyV+9zrWiBW0TiFr8WttV6w001eeAVyM7H6aapU/ISDLXNg3GzeEP9LS4qLw+HvpkI5O0z9OiFPGDuU/ZRVS3CrJR8t+mMKgOmDtaYlEcYlcTwIY+cld5uWItbGfbBZGJnXFs0ox/OYsi5UVfAl1zOCq0WZbUi6ftcW6kkCzMbB1s3TKh00va7rAKuo11vz6fupzqlbeJ4J4+1OOfbRWM1/bUO6Fy23ETjqDLgZwSWLwnb+xdZxAs3AQm1wkBiXGB+vJxOef0ycY6nABk7k78SRsvepghcCjyYnbI6RQWTtB8WpZbh12U/DVTVtaYR2wodpWBdoaQb5kCB94PuSj3N620Z8jLtJtHGjD7z+ZJF9eiS23L+SIA7tO7dVS6SeabXhQww1bfeIsRpp07WotmrAiCVQnY0FeOoJ8IHXMY5lA+gnTFHIQIgkvgWRKGFWkdCXSeA5s8TXNvL42lzcuZd2Lrv82TDFwl+AMIPwMm5CbsSjEl2f8UN5jDHIlJlyDEqf8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nKzlWJkSSV8xlTVdjw9DYCg7cRxO0qOy/rdqYQe+5oFiT7ldKTzzmus= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ad2403a-009b-4d2c-a249-08db032f237c X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 02:01:59.7867 (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: RrXaLvcitz1rMfkaSVkNijY/t2ilHjHqhlU8fFoY31Nyv0z0aAMQ7mx48wIqT4NN0jjToGwPX9NAQRuxZO8GpaRPldescFUZNQmwi1w8wc24UKDChPmGV0k0WOdM23Yg X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8464 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 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> Cc: Linux-ALSA <alsa-devel@alsa-project.org> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
ASoC: use helper function and cleanup
|
expand
|
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index c3be24b2fac5..6bb3efcee3b9 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1468,7 +1468,7 @@ static int soc_tplg_dapm_widget_create(struct soc_tplg *tplg, /* card dapm mutex is held by the core if we are loading topology * data during sound card init. */ - if (card->instantiated) + if (snd_soc_card_is_instantiated(card)) widget = snd_soc_dapm_new_control(dapm, &template); else widget = snd_soc_dapm_new_control_unlocked(dapm, &template); @@ -1556,7 +1556,7 @@ static int soc_tplg_dapm_complete(struct soc_tplg *tplg) /* Card might not have been registered at this point. * If so, just return success. */ - if (!card || !card->instantiated) { + if (!snd_soc_card_is_instantiated(card)) { dev_warn(tplg->dev, "ASoC: Parent card not yet available," " widget card binding deferred\n"); return 0;