* [PATCH] ASoC: soc-dai: fix up hw params only if it is needed
[not found] <CGME20210514123052epcas2p37cb55a80e713340c1f2ee96c31ffa591@epcas2p3.samsung.com>
@ 2021-05-14 12:30 ` Gyeongtaek Lee
2021-05-19 16:10 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Gyeongtaek Lee @ 2021-05-14 12:30 UTC (permalink / raw)
To: broonie
Cc: alsa-devel, khw0178.kim, 'Takashi Iwai',
'Pierre-Louis Bossart', lgirdwood, kimty, donggyun.ko,
hmseo, s47.kang, pilsun.jang, tkjung
If fixed hw params won't be used, fixing up isn't needed also.
Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
---
sound/soc/soc-dai.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c
index 080fbe053fc5..4df1aae8abf3 100644
--- a/sound/soc/soc-dai.c
+++ b/sound/soc/soc-dai.c
@@ -327,14 +327,15 @@ int snd_soc_dai_hw_params(struct snd_soc_dai *dai,
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
int ret = 0;
- /* perform any topology hw_params fixups before DAI */
- ret = snd_soc_link_be_hw_params_fixup(rtd, params);
- if (ret < 0)
- goto end;
-
if (dai->driver->ops &&
- dai->driver->ops->hw_params)
+ dai->driver->ops->hw_params) {
+ /* perform any topology hw_params fixups before DAI */
+ ret = snd_soc_link_be_hw_params_fixup(rtd, params);
+ if (ret < 0)
+ goto end;
+
ret = dai->driver->ops->hw_params(substream, params, dai);
+ }
/* mark substream if succeeded */
if (ret == 0)
base-commit: c06a2ba62fc401b7aaefd23f5d0bc06d2457ccc1
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: soc-dai: fix up hw params only if it is needed
2021-05-14 12:30 ` [PATCH] ASoC: soc-dai: fix up hw params only if it is needed Gyeongtaek Lee
@ 2021-05-19 16:10 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2021-05-19 16:10 UTC (permalink / raw)
To: Gyeongtaek Lee
Cc: alsa-devel, khw0178.kim, kimty, Mark Brown, lgirdwood,
'Pierre-Louis Bossart', 'Takashi Iwai',
donggyun.ko, hmseo, s47.kang, pilsun.jang, tkjung
On Fri, 14 May 2021 21:30:51 +0900, Gyeongtaek Lee wrote:
> If fixed hw params won't be used, fixing up isn't needed also.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: soc-dai: fix up hw params only if it is needed
commit: 8b4ba1d31771114ebb717523c2bdb5ea75b4dec8
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-19 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20210514123052epcas2p37cb55a80e713340c1f2ee96c31ffa591@epcas2p3.samsung.com>
2021-05-14 12:30 ` [PATCH] ASoC: soc-dai: fix up hw params only if it is needed Gyeongtaek Lee
2021-05-19 16:10 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox