summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeeja KP2015-10-27 01:22:44 +0100
committerMark Brown2015-11-16 11:08:09 +0100
commita28f51db28a3bb550ee54e4e67b4b1d04b4b393a (patch)
tree0fb65b6ed9903bb4fb59d957d1f448eea7e856f8
parentLinux 4.4-rc1 (diff)
downloadkernel-qcow2-linux-a28f51db28a3bb550ee54e4e67b4b1d04b4b393a.tar.gz
kernel-qcow2-linux-a28f51db28a3bb550ee54e4e67b4b1d04b4b393a.tar.xz
kernel-qcow2-linux-a28f51db28a3bb550ee54e4e67b4b1d04b4b393a.zip
ASoC: Intel: Skylake: Fix to correct check for non DSP widget
To get the FE copier module, the check to ignore non DSP widgets was wrong. This path corrects the check to ignore non DSP widget. Signed-off-by: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/skylake/skl-topology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index a7854c8fc523..98ccd42b8867 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -846,7 +846,7 @@ skl_tplg_fe_get_cpr_module(struct snd_soc_dai *dai, int stream)
w = dai->playback_widget;
snd_soc_dapm_widget_for_each_sink_path(w, p) {
if (p->connect && p->sink->power &&
- is_skl_dsp_widget_type(p->sink))
+ !is_skl_dsp_widget_type(p->sink))
continue;
if (p->sink->priv) {
@@ -859,7 +859,7 @@ skl_tplg_fe_get_cpr_module(struct snd_soc_dai *dai, int stream)
w = dai->capture_widget;
snd_soc_dapm_widget_for_each_source_path(w, p) {
if (p->connect && p->source->power &&
- is_skl_dsp_widget_type(p->source))
+ !is_skl_dsp_widget_type(p->source))
continue;
if (p->source->priv) {