|
@@ -385,6 +385,9 @@ static const DECLARE_TLV_DB_RANGE(mic_gain_tlv,
|
|
/* tlv for hp volume, -51.5db to 12.0db, step .5db */
|
|
/* tlv for hp volume, -51.5db to 12.0db, step .5db */
|
|
static const DECLARE_TLV_DB_SCALE(headphone_volume, -5150, 50, 0);
|
|
static const DECLARE_TLV_DB_SCALE(headphone_volume, -5150, 50, 0);
|
|
|
|
|
|
|
|
+/* tlv for lineout volume, 31 steps of .5db each */
|
|
|
|
+static const DECLARE_TLV_DB_SCALE(lineout_volume, -1550, 50, 0);
|
|
|
|
+
|
|
static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
|
|
static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
|
|
/* SOC_DOUBLE_S8_TLV with invert */
|
|
/* SOC_DOUBLE_S8_TLV with invert */
|
|
{
|
|
{
|
|
@@ -413,6 +416,13 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
|
|
|
|
|
|
SOC_SINGLE_TLV("Mic Volume", SGTL5000_CHIP_MIC_CTRL,
|
|
SOC_SINGLE_TLV("Mic Volume", SGTL5000_CHIP_MIC_CTRL,
|
|
0, 3, 0, mic_gain_tlv),
|
|
0, 3, 0, mic_gain_tlv),
|
|
|
|
+
|
|
|
|
+ SOC_DOUBLE_TLV("Lineout Playback Volume",
|
|
|
|
+ SGTL5000_CHIP_LINE_OUT_VOL,
|
|
|
|
+ SGTL5000_LINE_OUT_VOL_LEFT_SHIFT,
|
|
|
|
+ SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT,
|
|
|
|
+ 0x1f, 1,
|
|
|
|
+ lineout_volume),
|
|
};
|
|
};
|
|
|
|
|
|
/* mute the codec used by alsa core */
|
|
/* mute the codec used by alsa core */
|