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)
commit01b8cedfd0422326caae308641dcadaa85e0ca72
tree751316464c1e18850b242549bc9d5308bf23b465
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
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