]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: Skylake: Fix not to stop src pipe in pre pmd event handler
authorGuneshwor Singh <guneshwor.o.singh@intel.com>
Mon, 13 Mar 2017 16:41:24 +0000 (22:11 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 15 Mar 2017 17:27:54 +0000 (17:27 +0000)
If the widget is a mixin module, just unbind between source and sink
and don't stop the source pipe as there can be multiple sinks
connected.

Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c

index e7836a2e18f063c038b750342fbac37f7621faad..d4058d2a8023d83b6397218ae3a6866e57b19c1e 100644 (file)
@@ -973,15 +973,6 @@ static int skl_tplg_mixer_dapm_pre_pmd_event(struct snd_soc_dapm_widget *w,
                        src_mconfig = sink_mconfig->m_in_pin[i].tgt_mcfg;
                        if (!src_mconfig)
                                continue;
-                       /*
-                        * If path_found == 1, that means pmd for source
-                        * pipe has not occurred, source is connected to
-                        * some other sink. so its responsibility of sink
-                        * to unbind itself from source.
-                        */
-                       ret = skl_stop_pipe(ctx, src_mconfig->pipe);
-                       if (ret < 0)
-                               return ret;
 
                        ret = skl_unbind_modules(ctx,
                                                src_mconfig, sink_mconfig);