mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: fix up bad merge resolution / bad revert in soc_pcm_hw_params()
A bad merge resolution of upstream with "ANDROID: ASoC: core - add hostless DAI support" resulted in some code being duplicated in soc_pcm_hw_params(). The conflicting out-of-tree patch later got reverted, but the duplicate code still remains. Remove it. This makes the code match upstream. Bug: 144369166 Fixes:2b0f7f511d("Mergeb3a6082223("Merge branch 'for-v5.6' of git://git.kernel.org:/pub/scm/linux/kernel/git/jmorris/linux-security") into android-mainline") Fixes:89ff7d0c86("ANDROID: ASoC: core: Fix soc_pcm_hw_params crash") Fixes:da171b5d56("ANDROID: Revert "ANDROID: ASoC: core - add hostless DAI support"") Change-Id: Ib78167c5f60f5d8a0def25dce70e7597e8aeaedb Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2f22f2ce4b
commit
b05e7404b7
@@ -919,15 +919,6 @@ static int soc_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
if (rtd->dai_link->ops && rtd->dai_link->ops->hw_params) {
|
||||
ret = rtd->dai_link->ops->hw_params(substream, params);
|
||||
if (ret < 0) {
|
||||
dev_err(rtd->card->dev, "ASoC: machine hw_params"
|
||||
" failed: %d\n", ret);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
ret = snd_soc_link_hw_params(substream, params);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user