]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm3168a: Use fixup instead of constraint for channels and formats
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 8 Oct 2019 11:57:20 +0000 (14:57 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 8 Oct 2019 12:39:17 +0000 (13:39 +0100)
commit007a46683e9d929a2c3c0a5135a3f386a726262a
treeda5f92cb21388b86beeed564216051928988a0fd
parente829b6e5d942526824d51021ea3d7a6cf7c15064
ASoC: pcm3168a: Use fixup instead of constraint for channels and formats

The snd_pcm_hw_constraint_minmax() works fine when a single codec is
connected to a single CPU DAI, but in multicodec or DPCM setup the
constraints placed by the driver will apply to the whole PCM stream (FE
included) and thus prevents more than 8 playback channels for example.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191008115720.7135-1-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a.c