From patchwork Fri Jun 16 17:50:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 105759 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1421618qgd; Fri, 16 Jun 2017 10:51:51 -0700 (PDT) X-Received: by 10.28.113.142 with SMTP id d14mr8542055wmi.10.1497635511598; Fri, 16 Jun 2017 10:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497635511; cv=none; d=google.com; s=arc-20160816; b=txQMqvNNVWCI1P9EOaG4qs/4a9p2giqe1OY7CPtt+aSljVt17808EGYvK1n6TPv1Fi 1WZDNYIR9nEcePk8U2628MXZwf6QPU9Wm4FeKAXofwwbL9a//mCqOy+8bPKJ5Sq10v6d yJPoIyL9omllrBJi+LVp4s6OK+RpwQmAKUfOs0Qd0ELLAWrWQp3u0XQKXUEyslHMRUc4 raq7W7/L7CMWR9B7akXVnE6hrA6RGB3kRU+iSwQt421RJXhGtSj99q8gr7EbqwXnMHsG NMTqwonwBfSajJBrBCz63Yff2wtWuZzniIC5BXqNvQixzSCytW0TVx6zbGqMdIRfnecI y4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :delivered-to:arc-authentication-results; bh=V/XVG3DsVBm9mTvIY5GpAk//WBge4ZktIg7RX6Fq+nc=; b=O5/FzSGNlFdmcIfdzspYjruod4+l8bi1ue6etyPVy4BihJaCohT2scb8wwrAGWQc14 uzmN+zZNOIj0GkRLh6X07qwSwssVXM6Ccxyb2FZTLbpkvA8uAKWZSHcmZhW+Hvrnk/mA FzFouye7lIk/xQO/m18biqnwQIoC9JmAmiGNvo8QJQqhvM7TeICHFvW9f7H+AcPI6R2P LzpCFBtDkJDKBQAnDz5WlKKiOjAglb2RTi+21U9xRISF4hJTdKSbu3F6L1URIehZw8gi ui8jFiv/xNq24+8ynPq5T/dnX3w2EDv91W0DzktE5CNckrbxmSc1AtjibKWZAoCDSDQ3 sZMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id w89si2769359wrc.319.2017.06.16.10.51.51; Fri, 16 Jun 2017 10:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3BB9B266D2C; Fri, 16 Jun 2017 19:51:13 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 427F2266CFE; Fri, 16 Jun 2017 19:51:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, SPF_PASS, T_RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by alsa0.perex.cz (Postfix) with ESMTP id 0ECDD26696B for ; Fri, 16 Jun 2017 19:51:06 +0200 (CEST) Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dLvOZ-0000M7-ST; Fri, 16 Jun 2017 17:50:58 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1dLvNt-0005j2-8V; Fri, 16 Jun 2017 18:50:13 +0100 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87h8zgiumc.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Fri, 16 Jun 2017 18:50:13 +0100 X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Cc: linux-renesas-soc@vger.kernel.org, alsa-devel@alsa-project.org, Mark Brown , Simon Subject: [alsa-devel] Applied "ASoC: simple-card: use asoc_simple_card_of_parse_widgets()" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: simple-card: use asoc_simple_card_of_parse_widgets() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From fa2760dd366c735637504d1d7efab7688391c6b4 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 16 Jun 2017 01:39:11 +0000 Subject: [PATCH] ASoC: simple-card: use asoc_simple_card_of_parse_widgets() Current simple card driver is supporting widgets on DT, other simple/audio card drivers will support it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_widgets Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/generic/simple-card.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 7b2533c7f82e..8b7b47251fe1 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -354,13 +354,9 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv) dai_link = of_get_child_by_name(node, PREFIX "dai-link"); - /* The off-codec widgets */ - if (of_property_read_bool(node, PREFIX "widgets")) { - ret = snd_soc_of_parse_audio_simple_widgets(card, - PREFIX "widgets"); - if (ret) - goto card_parse_end; - } + ret = asoc_simple_card_of_parse_widgets(card, PREFIX); + if (ret < 0) + goto card_parse_end; ret = asoc_simple_card_of_parse_routing(card, PREFIX, 1); if (ret < 0)