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

Commit db71336b authored by Philipp Zabel's avatar Philipp Zabel Committed by Mark Brown
Browse files

ASoC: hdmi-codec: Add ELD control



Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 81151cfb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@ static int hdmi_eld_ctl_get(struct snd_kcontrol *kcontrol,
	struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
	struct hdmi_codec_priv *hcp = snd_soc_component_get_drvdata(component);

	mutex_lock(&hcp->eld_lock);
	memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld));
	mutex_unlock(&hcp->eld_lock);

	return 0;
}