ASoC: samsung: odroid: Ensure proper sample rate on pri/sec PCM 40/200640/2
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 14 Feb 2019 16:00:11 +0000 (17:00 +0100)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 4 Mar 2019 17:05:33 +0000 (18:05 +0100)
commit88f9017acba5b213d082eda016e84f1c53cf85f8
tree1f999668e497fad15fc718de331adec9cf4b5666
parent890838a2f4d0a07299e4622af9a21d21e8c66538
ASoC: samsung: odroid: Ensure proper sample rate on pri/sec PCM

Currently when playing sound with different sample rates actual
sample rate will be determined by audio stream which starts first
on either primary or secondary PCM. The audio root clock will be
configured appropriately only for the first stream. As the hardware
is limited to same sample rate on both interfaces we need to disallow
streams with different sample rates. It is done by this patch by
returning error in FE hw_params if there is already active stream
running with different sample rate.

Change-Id: I643d02d38acf20a7711ba5930e6bceceeaafc087
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/odroid.c