]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3198aee310f1aa48dde9383fec9b3fe7ec85ebc
tree1dc21cd80fe29d02abbee3195333377f5e83f6a5
parent91e4f9ba71bc1481bdd6f4478f4b352076c47424
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