Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3923737ybl; Tue, 21 Jan 2020 09:30:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxfn9U8TVUs1yQWtXcnnYSZdPXJDcesNq3jpm+UG9IUWzf93e+SLHy3VJFqEZb89Xntkkhp X-Received: by 2002:aca:f354:: with SMTP id r81mr3714563oih.90.1579627808223; Tue, 21 Jan 2020 09:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579627808; cv=none; d=google.com; s=arc-20160816; b=uy5QoiOxQohb8Adl/5jB3YeJjGUpvrif/2EoqlxRQPbo7KrUdrgOWWn1A5C9L64FN2 +xXOIpttSyEWyjxvb7G5lkPfnrFSJUISCZfsLrAyezbJLfzhhe3UHEJOxaUVKNYl2VDo 5Vykl3bqMdJN7RTO10XgYhn662inXarZgyLsxpuucbWypHpN6AOfa3x16QJagSX3t6ZK XrE+rxHB5SMosbBYJu6sRY26CU1ZQA4F4CPHLE6pxFxQETiGo9Or+cGri4RuhY9cMv9O 1nJz8bKEz+wqr/4hZe+B4nJy7ADIHzorwshbwGjcbLN88mrO+uNC9Ka8BCQenxwfpGxK IFcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=f/uxZKmvfaPP7E1vKTZjt4Ov7nr3VmWM4JF4aWE4HE8=; b=WEz9iNtdB8rM9kYvwF/qigryMT5e+U4Ek+VHYsI1YM5xaekf4/NeqmH/R8Rsll64zg oMRmLM2Slg7wMmmyehXSdB4tsC76UX2GTj0i00EFWJYF0T+CHxqiyQ5Z6RDf+72equQB MTncZI7z/ThdykggAbC00JFwrBvcgrDIwdSg0b+OrU6uj+I/u3eqbZbiY84r63war8rk eJGUzqTM/g4gD0HcpNrIeQy8D+RGChENTpU2J7Ne7fAiuSCM8rjd7Q39UVgiJMSBpAZb /GrYXG4E3DiFxoZfCzd1DXV23Gt71iEd9WQBbnKYSWLee1tG55z6vJJRE3l/WIvwoAGU KiZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si12060340otk.44.2020.01.21.09.29.55; Tue, 21 Jan 2020 09:30:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729199AbgAUR3A (ORCPT + 99 others); Tue, 21 Jan 2020 12:29:00 -0500 Received: from foss.arm.com ([217.140.110.172]:46508 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbgAUR27 (ORCPT ); Tue, 21 Jan 2020 12:28:59 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2A5130E; Tue, 21 Jan 2020 09:28:58 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52D533F6C4; Tue, 21 Jan 2020 09:28:58 -0800 (PST) Date: Tue, 21 Jan 2020 17:28:56 +0000 From: Mark Brown To: Shengjiu Wang Cc: alsa-devel@alsa-project.org, broonie@kernel.org, John Stultz , john.stultz@linaro.org, lars@metafoo.de, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Mark Brown , perex@perex.cz, tiwai@suse.com Subject: Applied "ASoC: soc-generic-dmaengine-pcm: Fix error handling" to the asoc tree In-Reply-To: <1579505286-32085-1-git-send-email-shengjiu.wang@nxp.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: soc-generic-dmaengine-pcm: Fix error handling has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 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 130128098a4e5ce9a0dfbdf9a7e27a43579901fd Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 20 Jan 2020 15:28:06 +0800 Subject: [PATCH] ASoC: soc-generic-dmaengine-pcm: Fix error handling Remove the return value checking, that is to align with the code before adding snd_dmaengine_pcm_refine_runtime_hwparams function. Otherwise it causes a regression on the HiKey board: [ 17.721424] hi6210_i2s f7118000.i2s: ASoC: can't open component f7118000.i2s: -6 Fixes: e957204e732b ("ASoC: pcm_dmaengine: Extract snd_dmaengine_pcm_refine_runtime_hwparams") Signed-off-by: Shengjiu Wang Reported-by: John Stultz Link: https://lore.kernel.org/r/1579505286-32085-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown --- sound/soc/soc-generic-dmaengine-pcm.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index a428ff393ea2..2b5f3b1b062b 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -117,7 +117,6 @@ dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component *component, struct dma_chan *chan = pcm->chan[substream->stream]; struct snd_dmaengine_dai_dma_data *dma_data; struct snd_pcm_hardware hw; - int ret; if (pcm->config && pcm->config->pcm_hardware) return snd_soc_set_runtime_hwparams(substream, @@ -138,12 +137,15 @@ dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component *component, if (pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_RESIDUE) hw.info |= SNDRV_PCM_INFO_BATCH; - ret = snd_dmaengine_pcm_refine_runtime_hwparams(substream, - dma_data, - &hw, - chan); - if (ret) - return ret; + /** + * FIXME: Remove the return value check to align with the code + * before adding snd_dmaengine_pcm_refine_runtime_hwparams + * function. + */ + snd_dmaengine_pcm_refine_runtime_hwparams(substream, + dma_data, + &hw, + chan); return snd_soc_set_runtime_hwparams(substream, &hw); } -- 2.20.1