mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
ASoC: cs35l41: Support mute on Digital PCM Volume control
Add mute item to volume control Change-Id: Ic46b2bf1e680f16d37bebd49683b79cfc9fac1a4 Signed-off-by: David Rhodes <david.rhodes@cirrus.com> Signed-off-by: Ravi Vembu <raviv@motorola.com> Mot-CRs-Fixed: (CR) Reviewed-on: https://gerrit.mot.com/1202253 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
6224ece969
commit
ebdb9ddf8d
1 changed files with 4 additions and 2 deletions
|
|
@ -209,7 +209,9 @@ static int cs35l41_halo_booted_put(struct snd_kcontrol *kcontrol,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10200, 25, 0);
|
||||
static const DECLARE_TLV_DB_RANGE(dig_vol_tlv,
|
||||
0, 0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
|
||||
1, 913, TLV_DB_SCALE_ITEM(-10200, 25, 0));
|
||||
static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 0, 1, 1);
|
||||
|
||||
static const struct snd_kcontrol_new dre_ctrl =
|
||||
|
|
@ -284,7 +286,7 @@ static const struct snd_kcontrol_new asp_tx4_mux =
|
|||
|
||||
static const struct snd_kcontrol_new cs35l41_aud_controls[] = {
|
||||
SOC_SINGLE_SX_TLV("Digital PCM Volume", CS35L41_AMP_DIG_VOL_CTRL,
|
||||
3, 0x4D0, 0x390, dig_vol_tlv),
|
||||
3, 0x4CF, 0x391, dig_vol_tlv),
|
||||
SOC_SINGLE_TLV("AMP PCM Gain", CS35L41_AMP_GAIN_CTRL, 5, 0x14, 0,
|
||||
amp_gain_tlv),
|
||||
SOC_SINGLE_RANGE("ASPTX1 Slot Position", CS35L41_SP_FRAME_TX_SLOT, 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue