diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2013-07-05 05:28:01 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-07-05 08:51:00 -0400 |
commit | 42f4c12dcf46cbca8b7bb17610c0cb7ffbd7ab2e (patch) | |
tree | 4ce2d1c1b8e96380880212dc222d1ca498425b34 /sound/pci/rme9652 | |
parent | acf14767e17ab7ee8b6213f9e56d07d9ffa033da (diff) |
ALSA: hdspm - Enable AD/DA/PH gains and S/PDIF-Input select on AIO
This patch uses the newly introduced HDSPM_CONTROL_TRISTATE functions to
create and expose the following ALSA controls:
- Gain selection for Input, Output and Phones (HiGain, +4dBu, -10dbV)
- S/PDIF Input select (Coaxial, Optical, Internal)
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index d9532c42e2ce..778fc23105fa 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -4412,11 +4412,15 @@ static struct snd_kcontrol_new snd_hdspm_controls_aio[] = { | |||
4412 | HDSPM_AUTOSYNC_SAMPLE_RATE("ADAT Frequency", 3), | 4412 | HDSPM_AUTOSYNC_SAMPLE_RATE("ADAT Frequency", 3), |
4413 | HDSPM_AUTOSYNC_SAMPLE_RATE("TCO Frequency", 4), | 4413 | HDSPM_AUTOSYNC_SAMPLE_RATE("TCO Frequency", 4), |
4414 | HDSPM_AUTOSYNC_SAMPLE_RATE("SYNC IN Frequency", 5), | 4414 | HDSPM_AUTOSYNC_SAMPLE_RATE("SYNC IN Frequency", 5), |
4415 | HDSPM_CONTROL_TRISTATE("S/PDIF Input", HDSPM_c0_Input0), | ||
4415 | HDSPM_TOGGLE_SETTING("S/PDIF Out Optical", HDSPM_c0_Spdif_Opt), | 4416 | HDSPM_TOGGLE_SETTING("S/PDIF Out Optical", HDSPM_c0_Spdif_Opt), |
4416 | HDSPM_TOGGLE_SETTING("S/PDIF Out Professional", HDSPM_c0_Pro), | 4417 | HDSPM_TOGGLE_SETTING("S/PDIF Out Professional", HDSPM_c0_Pro), |
4417 | HDSPM_TOGGLE_SETTING("ADAT internal (AEB/TEB)", HDSPM_c0_AEB1), | 4418 | HDSPM_TOGGLE_SETTING("ADAT internal (AEB/TEB)", HDSPM_c0_AEB1), |
4418 | HDSPM_TOGGLE_SETTING("XLR Breakout Cable", HDSPM_c0_Sym6db), | 4419 | HDSPM_TOGGLE_SETTING("XLR Breakout Cable", HDSPM_c0_Sym6db), |
4419 | HDSPM_TOGGLE_SETTING("Single Speed WordClock Out", HDSPM_c0_Wck48) | 4420 | HDSPM_TOGGLE_SETTING("Single Speed WordClock Out", HDSPM_c0_Wck48), |
4421 | HDSPM_CONTROL_TRISTATE("Input Level", HDSPM_c0_AD_GAIN0), | ||
4422 | HDSPM_CONTROL_TRISTATE("Output Level", HDSPM_c0_DA_GAIN0), | ||
4423 | HDSPM_CONTROL_TRISTATE("Phones Level", HDSPM_c0_PH_GAIN0) | ||
4420 | 4424 | ||
4421 | /* | 4425 | /* |
4422 | HDSPM_INPUT_SELECT("Input Select", 0), | 4426 | HDSPM_INPUT_SELECT("Input Select", 0), |