ASoC: compress: Fix compress device direction check
authorVinod Koul <vinod.koul@intel.com>
Thu, 7 Jan 2016 16:18:14 +0000 (21:48 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jan 2016 13:44:01 +0000 (13:44 +0000)
commita1068045883ed4a18363a4ebad0c3d55e473b716
tree5e838fa68dbb0f35167cbe1ad5514243ca8b9106
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
ASoC: compress: Fix compress device direction check

The detection of direction for compress was only taking into account codec
capabilities and not CPU ones. Fix this by checking the CPU side capabilities
as well

Cc: <stable@vger.kernel.org>
Tested-by: Ashish Panwar <ashish.panwar@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c