/* 0dB to 30dB in 10dB steps */
static const DECLARE_TLV_DB_SCALE(mic_tlv, 0, 10, 0);
+/* -62db to 9 db in 1db steps*/
+static const DECLARE_TLV_DB_SCALE(out_tlv, -6200, 100, 0);
static const struct soc_enum sn95031_micmode1_enum =
SOC_ENUM_SINGLE(SN95031_MICAMP1, 1, 2, sn95031_micmode_text);
2, 4, 0, mic_tlv),
SOC_SINGLE_TLV("Mic2 Capture Volume", SN95031_MICAMP2,
2, 4, 0, mic_tlv),
+ /* Add digital volume and mute controls for Headphone/Headset*/
+ SOC_DOUBLE_R_TLV("Headphone Playback Volume", SN95031_HSLVOLCTRL,
+ SN95031_HSRVOLCTRL, 0, 71, 1, out_tlv),
+ SOC_DOUBLE_R("Headphone Playback Switch", SN95031_HSLVOLCTRL,
+ SN95031_HSRVOLCTRL, 7, 1, 0),
+ /* Add digital volume and mute controls for Speaker*/
+ SOC_DOUBLE_R_TLV("Speaker Playback Volume", SN95031_IHFLVOLCTRL,
+ SN95031_IHFRVOLCTRL, 0, 71, 1, out_tlv),
+ SOC_DOUBLE_R("Speaker Playback Switch", SN95031_IHFLVOLCTRL,
+ SN95031_IHFRVOLCTRL, 7, 1, 0),
};
/* DAPM widgets */