]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: fix sig_bits determination in soc_pcm_apply_msb()
authorDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 12:33:46 +0000 (14:33 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Oct 2014 18:14:20 +0000 (19:14 +0100)
commitae2bce0e8b0b7a590f0a20ad7bc6ce042082f6f7
treeff920c6c766a5db6331fc967821e8975c1187998
parenta010109e136c15bac6529e5e70de5f5d29091557
ASoC: soc-pcm: fix sig_bits determination in soc_pcm_apply_msb()

In the SNDRV_PCM_STREAM_CAPTURE branch in soc_pcm_apply_msb(), look at
sig_bits of the capture stream, not the playback one.

Spotted by coverity.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/soc-pcm.c