OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:06:04 +0000 (15:06 -0700)
commit50b40109fadad5af5194536eb0ac90cc00dbc465
tree4434768b104351a2b002ec38534b22e9b4309517
parentc2d4d4fa320cd9d5218e54ce16f12391b8489c8d
ASoC: compress: Derive substream from stream based on direction

commit 01b8cedfd0422326caae308641dcadaa85e0ca72 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-compress.c