Loading sound/soc/msm/qdsp6v2/msm-qti-pp-config.c +21 −0 Original line number Diff line number Diff line Loading @@ -395,6 +395,24 @@ static int msm_qti_pp_set_fm_vol_mixer(struct snd_kcontrol *kcontrol, return 0; } static int msm_qti_pp_get_quat_mi2s_fm_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { ucontrol->value.integer.value[0] = msm_route_fm_vol_control; return 0; } static int msm_qti_pp_set_quat_mi2s_fm_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { afe_loopback_gain(AFE_PORT_ID_QUATERNARY_MI2S_TX, ucontrol->value.integer.value[0]); msm_route_fm_vol_control = ucontrol->value.integer.value[0]; return 0; } static int msm_qti_pp_get_hfp_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { Loading Loading @@ -479,6 +497,9 @@ static const struct snd_kcontrol_new int_fm_vol_mixer_controls[] = { SOC_SINGLE_EXT_TLV("Internal FM RX Volume", SND_SOC_NOPM, 0, INT_RX_VOL_GAIN, 0, msm_qti_pp_get_fm_vol_mixer, msm_qti_pp_set_fm_vol_mixer, fm_rx_vol_gain), SOC_SINGLE_EXT_TLV("Quat MI2S FM RX Volume", SND_SOC_NOPM, 0, INT_RX_VOL_GAIN, 0, msm_qti_pp_get_quat_mi2s_fm_vol_mixer, msm_qti_pp_set_quat_mi2s_fm_vol_mixer, fm_rx_vol_gain), }; static const struct snd_kcontrol_new int_hfp_vol_mixer_controls[] = { Loading Loading
sound/soc/msm/qdsp6v2/msm-qti-pp-config.c +21 −0 Original line number Diff line number Diff line Loading @@ -395,6 +395,24 @@ static int msm_qti_pp_set_fm_vol_mixer(struct snd_kcontrol *kcontrol, return 0; } static int msm_qti_pp_get_quat_mi2s_fm_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { ucontrol->value.integer.value[0] = msm_route_fm_vol_control; return 0; } static int msm_qti_pp_set_quat_mi2s_fm_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { afe_loopback_gain(AFE_PORT_ID_QUATERNARY_MI2S_TX, ucontrol->value.integer.value[0]); msm_route_fm_vol_control = ucontrol->value.integer.value[0]; return 0; } static int msm_qti_pp_get_hfp_vol_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { Loading Loading @@ -479,6 +497,9 @@ static const struct snd_kcontrol_new int_fm_vol_mixer_controls[] = { SOC_SINGLE_EXT_TLV("Internal FM RX Volume", SND_SOC_NOPM, 0, INT_RX_VOL_GAIN, 0, msm_qti_pp_get_fm_vol_mixer, msm_qti_pp_set_fm_vol_mixer, fm_rx_vol_gain), SOC_SINGLE_EXT_TLV("Quat MI2S FM RX Volume", SND_SOC_NOPM, 0, INT_RX_VOL_GAIN, 0, msm_qti_pp_get_quat_mi2s_fm_vol_mixer, msm_qti_pp_set_quat_mi2s_fm_vol_mixer, fm_rx_vol_gain), }; static const struct snd_kcontrol_new int_hfp_vol_mixer_controls[] = { Loading