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)
commitcfc28ac124c456ffbff5b34d4108d8a201cd7fbb
treeda5f92cb21388b86beeed564216051928988a0fd
parent1466327e8eb3e59ae8e65e5c728055102fe0a60e
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