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

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

Merge "asoc: avoid adding global control in loopback probing twice"

parents 6b3783e3 88dba174
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -198,11 +198,15 @@ static struct snd_kcontrol_new msm_loopback_controls[] = {

static int msm_pcm_loopback_probe(struct snd_soc_component *component)
{
	if (of_property_read_bool(component->dev->of_node,
				  "qcom,msm-pcm-loopback")) {
		snd_soc_add_component_controls(component, msm_loopback_controls,
					       ARRAY_SIZE(msm_loopback_controls));
	}

	return 0;
}

static int pcm_loopback_set_volume(struct msm_pcm_loopback *prtd,
				   uint32_t volume)
{