Commit 3aae2799 authored by Michael Trimarchi's avatar Michael Trimarchi Committed by Mark Brown

ASoC: pcm1792a: Add controls for output invert and rolloff switch

[s/output/Output/ -- broonie]
Signed-off-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4efd1fc7
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#define PCM1792A_DAC_VOL_LEFT 0x10 #define PCM1792A_DAC_VOL_LEFT 0x10
#define PCM1792A_DAC_VOL_RIGHT 0x11 #define PCM1792A_DAC_VOL_RIGHT 0x11
#define PCM1792A_FMT_CONTROL 0x12 #define PCM1792A_FMT_CONTROL 0x12
#define PCM1792A_MODE_CONTROL 0x13
#define PCM1792A_SOFT_MUTE PCM1792A_FMT_CONTROL #define PCM1792A_SOFT_MUTE PCM1792A_FMT_CONTROL
#define PCM1792A_FMT_MASK 0x70 #define PCM1792A_FMT_MASK 0x70
...@@ -164,6 +165,8 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = { ...@@ -164,6 +165,8 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = {
SOC_DOUBLE_R_RANGE_TLV("DAC Playback Volume", PCM1792A_DAC_VOL_LEFT, SOC_DOUBLE_R_RANGE_TLV("DAC Playback Volume", PCM1792A_DAC_VOL_LEFT,
PCM1792A_DAC_VOL_RIGHT, 0, 0xf, 0xff, 0, PCM1792A_DAC_VOL_RIGHT, 0, 0xf, 0xff, 0,
pcm1792a_dac_tlv), pcm1792a_dac_tlv),
SOC_SINGLE("DAC Invert Output Switch", PCM1792A_MODE_CONTROL, 7, 1, 0),
SOC_SINGLE("DAC Rolloff Filter Switch", PCM1792A_MODE_CONTROL, 1, 1, 0),
}; };
static const struct snd_soc_dapm_widget pcm1792a_dapm_widgets[] = { static const struct snd_soc_dapm_widget pcm1792a_dapm_widgets[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment