浏览代码

ASoC: Intel: Skylake: Fix the inverted logic check

While converting to new core hda capability parsing, one instance of
check had inverted logic which was converted wrongly.

Fixes: ec8ae5703da1 (ALSA: convert users to core bus_parse_capabilities)
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Vinod Koul 9 年之前
父节点
当前提交
fc94733e56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/soc/intel/skylake/skl-pcm.c

+ 1 - 1
sound/soc/intel/skylake/skl-pcm.c

@@ -1020,7 +1020,7 @@ static int skl_platform_pcm_trigger(struct snd_pcm_substream *substream,
 {
 {
 	struct hdac_ext_bus *ebus = get_bus_ctx(substream);
 	struct hdac_ext_bus *ebus = get_bus_ctx(substream);
 
 
-	if ((ebus_to_hbus(ebus))->ppcap)
+	if (!(ebus_to_hbus(ebus))->ppcap)
 		return skl_coupled_trigger(substream, cmd);
 		return skl_coupled_trigger(substream, cmd);
 
 
 	return 0;
 	return 0;