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)
commit5e63dfccf34d4dbf21429c4919f33c028ff49991
treeff920c6c766a5db6331fc967821e8975c1187998
parentdecc27b01d584c985c231e73d3b493de6ec07af8
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