]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
ASoC: compress: Fix compress device direction check
authorVinod Koul <vinod.koul@intel.com>
Thu, 7 Jan 2016 16:18:14 +0000 (21:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 05:49:31 +0000 (21:49 -0800)
commit9a76e683b64361450f3e331dd6634f5aa39ea51b
tree70a6cc3727093c8d214e73cfd181d49bee600256
parent1702ac2faee1e7c4c424ef32f66a56bc9a8af3b9
ASoC: compress: Fix compress device direction check

commit a1068045883ed4a18363a4ebad0c3d55e473b716 upstream.

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

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