mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
audio: always set hdmitx mute [1/1]
PD#SWPL-222922 Problem: HDMITX mute has no effect. Solution: Directly send hdmitx mute to HDIMTX module. Verify: Ohm: SC2 Change-Id: I340a4362e080b601143baaffa313af6f4934234a Signed-off-by: Shuai Li <shuai.li@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
074cabcb17
commit
08dbb03ef9
@@ -550,15 +550,12 @@ void notify_hdmitx_to_prepare(void)
|
||||
}
|
||||
|
||||
#if (defined(CONFIG_AMLOGIC_HDMITX) || defined(CONFIG_AMLOGIC_HDMITX21))
|
||||
unsigned int aml_audio_hdmiout_mute_flag;
|
||||
/* call HDMITX API to enable/disable internal audio out */
|
||||
int aml_get_hdmi_out_audio(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
ucontrol->value.integer.value[0] = !hdmitx_ext_get_audio_status();
|
||||
|
||||
aml_audio_hdmiout_mute_flag =
|
||||
ucontrol->value.integer.value[0];
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -567,10 +564,8 @@ int aml_set_hdmi_out_audio(struct snd_kcontrol *kcontrol,
|
||||
{
|
||||
bool mute = ucontrol->value.integer.value[0];
|
||||
|
||||
if (aml_audio_hdmiout_mute_flag != mute) {
|
||||
hdmitx_ext_set_audio_output(!mute);
|
||||
aml_audio_hdmiout_mute_flag = mute;
|
||||
}
|
||||
pr_info("hdmitx set mute: %d\n", mute);
|
||||
hdmitx_ext_set_audio_output(!mute);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user