]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: compress: Derive substream from stream based on direction
authorSatish Babu Patakokila <sbpata@codeaurora.org>
Sat, 17 Jun 2017 00:33:40 +0000 (17:33 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2017 16:11:25 +0000 (17:11 +0100)
commit56ca5b814e3c4735f523a4312e4e8aca9ba8202c
tree751316464c1e18850b242549bc9d5308bf23b465
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
ASoC: compress: Derive substream from stream based on direction

Currently compress driver hardcodes direction as playback to get
substream from the stream. This results in getting the incorrect
substream for compressed capture usecase.
To fix this, remove the hardcoding and derive substream based on
the stream direction.

Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/soc-compress.c