Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019c77d4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: pcm: modify component extraction"

parents b1a49c6b 764b2d2e
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -1604,7 +1604,7 @@ static int msm_pcm_chmap_ctl_put(struct snd_kcontrol *kcontrol,
	struct snd_soc_pcm_runtime *rtd = NULL;
	struct msm_plat_data *pdata = NULL;
	struct msm_pcm_channel_mixer *chmixer_pspd = NULL;
	struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
	struct snd_soc_component *component = NULL;
	u64 fe_id = 0;

	pr_debug("%s", __func__);
@@ -1624,6 +1624,8 @@ static int msm_pcm_chmap_ctl_put(struct snd_kcontrol *kcontrol,
		/* update chmixer_pspd chmap cached with routing driver as well */
		rtd = substream->private_data;
		if (rtd) {
			component = snd_soc_rtdcom_lookup(rtd, DRV_NAME);
			if (component) {
				fe_id = rtd->dai_link->id;
				pdata = (struct msm_plat_data *)
						dev_get_drvdata(component->dev);
@@ -1639,6 +1641,7 @@ static int msm_pcm_chmap_ctl_put(struct snd_kcontrol *kcontrol,
				}
			}
		}
	}
	return 0;
}