UPSTREAM: ASoC: hdmi-codec: Add ELD control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 22 Apr 2016 08:40:11 +0000 (10:40 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 23 Jun 2016 03:11:57 +0000 (11:11 +0800)
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit db71336b9eec22c21cef65c90cea49130c464994)

Change-Id: Ie82a1f72c3601b64c61b2d17f5849f892010f5ef
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
sound/soc/codecs/hdmi-codec.c

index c78333b4311dd5b3dbb03b13733bb0f1f5b03512..8e36e883e453e6bda2a770cd9caa515ff0c20fce 100644 (file)
@@ -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;
 }