From patchwork Tue Dec 5 12:47:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 120646 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5702676qgn; Tue, 5 Dec 2017 04:48:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ5R7GplxafJXYdYsw+stpHXJMJsoeYX2A1KuHxTKtEz1HW63M0vAqf95pyEUL5hy4WeQcn X-Received: by 10.223.193.141 with SMTP id x13mr15692206wre.239.1512478082333; Tue, 05 Dec 2017 04:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512478082; cv=none; d=google.com; s=arc-20160816; b=Y8fJzndvCKOA2/pkwQ7Hf1cS0VgVbn7f9D/TfidQBaVdKjt2jg4g7F2r3ABHfKbUFZ fqs6609kSXY+L83tti3UvticyDfqg3O20KIdKxvxrHpO3GhndWUHkxWdiIWP6233flCk FckGtVe77vH2aiKuTuziEX6Ki547WmTCsSzX5jmbd+mzZMDtUqklnfXhMOeOxeqya639 ktBUXnfmi/aq5c3hm7078Uq6sjJIr4LCul1KTtsYzCH4sR1pskj9DRQ1AxNb+m7NiM8Q e/BPhalc0LiTRMzFbNTTI3EtUarS2fRiPGF8020O76xFgDyXORccWckNtyL35SilT3r7 G13g== 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 :dkim-signature:delivered-to:arc-authentication-results; bh=tyjN2pNk8uN6M4p4LH63wvA0io1hvn2ATB2ranI4eeo=; b=CYKHq5YtVoiPY/DgY7JcxkMpWwUsFG9B/PNDt0Cem8yYJNE9USjZvGTmi7lQIHdHxs Hh+9WMzVQ6SSq/qfvzE4XU8vSP3X03B48WJ3zzoBzHU5GZcm1jfq/5YrtsEUJQCQA6z0 DAlN1xgJ87uQkqPTs7gGbz5VsROGLEDpGRqBpdyhKxj3vC9mv9dvf2ZId6x1TAUBxGtP W26cCph1dZH7pVMDXB8W/UvuEKjM0Q5xadXvq2HdlGM5mee+oB1kFGJSFyLg/P+l63ZN C1n3Z3USp1zCDRAaGh3jETx0XQunbQ+TpKuwgMX17+wUeZSmK8OmocmTws3o9W6amaxC N34Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Yveve6d7; 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 r1si42178wra.480.2017.12.05.04.48.02; Tue, 05 Dec 2017 04:48:02 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Yveve6d7; 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 82B72267752; Tue, 5 Dec 2017 13:47:45 +0100 (CET) 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 0CA16267751; Tue, 5 Dec 2017 13:47:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 9C241267749 for ; Tue, 5 Dec 2017 13:47:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=0RVwQ5d/N9x3oa8gZOHB4qGUmsNLTBL50Y2azZVCHZc=; b=Yveve6d72f5Z t8w//FrPY2KRIEqCtLc2YDc5j8oYFtnyQk72uiPcfNLNmp2C4lW7/Eg/XDv+vnu6/j3G+RPsSy8sa Tj8+HFzZxbDiTpEVRHN8s20dI5mnDoghlTOtJcU/n3h1PJswV/wz3Pz6MyYEz2ei7tebRKgXM9Est vMbug=; Received: from 92.40.248.179.threembb.co.uk ([92.40.248.179] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMCdO-0001MN-VV; Tue, 05 Dec 2017 12:47:39 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id E1DF244006B; Tue, 5 Dec 2017 12:47:37 +0000 (GMT) From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87609lvmkd.wl%kuninori.morimoto.gx@renesas.com> Message-Id: <20171205124737.E1DF244006B@finisterre.ee.mobilebroadband> Date: Tue, 5 Dec 2017 12:47:37 +0000 (GMT) Cc: alsa-devel@alsa-project.org, Mark Brown , Simon Subject: [alsa-devel] Applied "ASoC: don't use rtd->codec on snd_soc_new_compress()" 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: don't use rtd->codec on snd_soc_new_compress() has been applied to the asoc tree at https://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 e5acfc7d3562ae251cb786b5b52d4345dd16a02c Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 5 Dec 2017 04:23:05 +0000 Subject: [PATCH] ASoC: don't use rtd->codec on snd_soc_new_compress() rtd->codec will be removed soon. rtd->codec = rtd->codec_dai->codec, thus, we can use rtd->codec_dai->component instead of it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/soc-compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index d9b1e6417fb9..81232f4ab614 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -1096,7 +1096,6 @@ static struct snd_compr_ops soc_compr_dyn_ops = { */ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) { - struct snd_soc_codec *codec = rtd->codec; struct snd_soc_platform *platform = rtd->platform; struct snd_soc_component *component; struct snd_soc_rtdcom_list *rtdcom; @@ -1199,8 +1198,9 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) ret = snd_compress_new(rtd->card->snd_card, num, direction, new_name, compr); if (ret < 0) { + component = rtd->codec_dai->component; pr_err("compress asoc: can't create compress for codec %s\n", - codec->component.name); + component->name); goto compr_err; }