ASoC: samsung: odroid: Ensure proper sample rate on pri/sec PCM
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 14 Feb 2019 16:00:11 +0000 (17:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Feb 2019 18:24:14 +0000 (18:24 +0000)
commitb5c16a24efc809554c4c651df6bd9b48b084a5a3
tree1dc21cd80fe29d02abbee3195333377f5e83f6a5
parent70605450fd42060783b0072a61a30f42a74f2917
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.

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