aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/cs423x/cs4236_lib.c
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2009-11-17 12:34:54 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-18 01:23:16 -0500
commitb753e03e5e7c6ee60e81cd6335c80dc26519f9d0 (patch)
tree75326daf7407db3a2e12fcaf38bc57046dc98b85 /sound/isa/cs423x/cs4236_lib.c
parentbaac805fc591b562f22d8f1cd0b65cdbbe9e9518 (diff)
ALSA: cs4236: update control names
Update control names to be more closer to their meaning. Change the "Mono" name to the "Beep" as this line is usually used to forward the PC beeper signal to sound card's output. Update names for both cs423x and wss. Clean up cs4235 controls according to the cs4235 doc. Rename some of the cs4235 controls to be consistent with the cs4236's ones. Also, delete one misnamed cs4231 register define. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/cs423x/cs4236_lib.c')
-rw-r--r--sound/isa/cs423x/cs4236_lib.c49
1 files changed, 21 insertions, 28 deletions
diff --git a/sound/isa/cs423x/cs4236_lib.c b/sound/isa/cs423x/cs4236_lib.c
index 1b1ad1cad328..4c4024a73c6b 100644
--- a/sound/isa/cs423x/cs4236_lib.c
+++ b/sound/isa/cs423x/cs4236_lib.c
@@ -777,7 +777,7 @@ CS4236_DOUBLE("Mic Playback Switch", 0,
777CS4236_DOUBLE("Mic Capture Switch", 0, 777CS4236_DOUBLE("Mic Capture Switch", 0,
778 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 7, 7, 1, 1), 778 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 7, 7, 1, 1),
779CS4236_DOUBLE("Mic Volume", 0, CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 0, 0, 31, 1), 779CS4236_DOUBLE("Mic Volume", 0, CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 0, 0, 31, 1),
780CS4236_DOUBLE("Mic Playback Boost", 0, 780CS4236_DOUBLE("Mic Playback Boost (+20dB)", 0,
781 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 5, 5, 1, 0), 781 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 5, 5, 1, 0),
782 782
783WSS_DOUBLE("Line Playback Switch", 0, 783WSS_DOUBLE("Line Playback Switch", 0,
@@ -798,10 +798,10 @@ WSS_DOUBLE("CD Capture Switch", 0,
798 798
799CS4236_DOUBLE1("Mono Output Playback Switch", 0, 799CS4236_DOUBLE1("Mono Output Playback Switch", 0,
800 CS4231_MONO_CTRL, CS4236_RIGHT_MIX_CTRL, 6, 7, 1, 1), 800 CS4231_MONO_CTRL, CS4236_RIGHT_MIX_CTRL, 6, 7, 1, 1),
801CS4236_DOUBLE1("Mono Playback Switch", 0, 801CS4236_DOUBLE1("Beep Playback Switch", 0,
802 CS4231_MONO_CTRL, CS4236_LEFT_MIX_CTRL, 7, 7, 1, 1), 802 CS4231_MONO_CTRL, CS4236_LEFT_MIX_CTRL, 7, 7, 1, 1),
803WSS_SINGLE("Mono Playback Volume", 0, CS4231_MONO_CTRL, 0, 15, 1), 803WSS_SINGLE("Beep Playback Volume", 0, CS4231_MONO_CTRL, 0, 15, 1),
804WSS_SINGLE("Mono Playback Bypass", 0, CS4231_MONO_CTRL, 5, 1, 0), 804WSS_SINGLE("Beep Bypass Playback Switch", 0, CS4231_MONO_CTRL, 5, 1, 0),
805 805
806WSS_DOUBLE("Capture Volume", 0, 806WSS_DOUBLE("Capture Volume", 0,
807 CS4231_LEFT_INPUT, CS4231_RIGHT_INPUT, 0, 0, 15, 0), 807 CS4231_LEFT_INPUT, CS4231_RIGHT_INPUT, 0, 0, 15, 0),
@@ -815,31 +815,27 @@ CS4236_DOUBLE1("Digital Loopback Playback Volume", 0,
815 815
816static struct snd_kcontrol_new snd_cs4235_controls[] = { 816static struct snd_kcontrol_new snd_cs4235_controls[] = {
817 817
818WSS_DOUBLE("Master Switch", 0, 818WSS_DOUBLE("Master Playback Switch", 0,
819 CS4235_LEFT_MASTER, CS4235_RIGHT_MASTER, 7, 7, 1, 1), 819 CS4235_LEFT_MASTER, CS4235_RIGHT_MASTER, 7, 7, 1, 1),
820WSS_DOUBLE("Master Volume", 0, 820WSS_DOUBLE("Master Playback Volume", 0,
821 CS4235_LEFT_MASTER, CS4235_RIGHT_MASTER, 0, 0, 31, 1), 821 CS4235_LEFT_MASTER, CS4235_RIGHT_MASTER, 0, 0, 31, 1),
822 822
823CS4235_OUTPUT_ACCU("Playback Volume", 0), 823CS4235_OUTPUT_ACCU("Playback Volume", 0),
824 824
825CS4236_DOUBLE("Master Digital Playback Switch", 0, 825WSS_DOUBLE("Synth Playback Switch", 1,
826 CS4236_LEFT_MASTER, CS4236_RIGHT_MASTER, 7, 7, 1, 1),
827CS4236_DOUBLE("Master Digital Capture Switch", 0,
828 CS4236_DAC_MUTE, CS4236_DAC_MUTE, 7, 6, 1, 1),
829CS4236_MASTER_DIGITAL("Master Digital Volume", 0),
830
831WSS_DOUBLE("Master Digital Playback Switch", 1,
832 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 7, 7, 1, 1), 826 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 7, 7, 1, 1),
833WSS_DOUBLE("Master Digital Capture Switch", 1, 827WSS_DOUBLE("Synth Capture Switch", 1,
834 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 6, 6, 1, 1), 828 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 6, 6, 1, 1),
835WSS_DOUBLE("Master Digital Volume", 1, 829WSS_DOUBLE("Synth Volume", 1,
836 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 0, 0, 31, 1), 830 CS4231_LEFT_LINE_IN, CS4231_RIGHT_LINE_IN, 0, 0, 31, 1),
837 831
838CS4236_DOUBLE("Capture Volume", 0, 832CS4236_DOUBLE("Capture Volume", 0,
839 CS4236_LEFT_MIX_CTRL, CS4236_RIGHT_MIX_CTRL, 5, 5, 3, 1), 833 CS4236_LEFT_MIX_CTRL, CS4236_RIGHT_MIX_CTRL, 5, 5, 3, 1),
840 834
841WSS_DOUBLE("PCM Switch", 0, 835WSS_DOUBLE("PCM Playback Switch", 0,
842 CS4231_LEFT_OUTPUT, CS4231_RIGHT_OUTPUT, 7, 7, 1, 1), 836 CS4231_LEFT_OUTPUT, CS4231_RIGHT_OUTPUT, 7, 7, 1, 1),
837WSS_DOUBLE("PCM Capture Switch", 0,
838 CS4236_DAC_MUTE, CS4236_DAC_MUTE, 7, 6, 1, 1),
843WSS_DOUBLE("PCM Volume", 0, 839WSS_DOUBLE("PCM Volume", 0,
844 CS4231_LEFT_OUTPUT, CS4231_RIGHT_OUTPUT, 0, 0, 63, 1), 840 CS4231_LEFT_OUTPUT, CS4231_RIGHT_OUTPUT, 0, 0, 63, 1),
845 841
@@ -855,28 +851,25 @@ CS4236_DOUBLE("Mic Capture Switch", 0,
855CS4236_DOUBLE("Mic Playback Switch", 0, 851CS4236_DOUBLE("Mic Playback Switch", 0,
856 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 6, 6, 1, 1), 852 CS4236_LEFT_MIC, CS4236_RIGHT_MIC, 6, 6, 1, 1),
857CS4236_SINGLE("Mic Volume", 0, CS4236_LEFT_MIC, 0, 31, 1), 853CS4236_SINGLE("Mic Volume", 0, CS4236_LEFT_MIC, 0, 31, 1),
858CS4236_SINGLE("Mic Playback Boost", 0, CS4236_LEFT_MIC, 5, 1, 0), 854CS4236_SINGLE("Mic Boost (+20dB)", 0, CS4236_LEFT_MIC, 5, 1, 0),
859 855
860WSS_DOUBLE("Aux Playback Switch", 0, 856WSS_DOUBLE("Line Playback Switch", 0,
861 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 7, 7, 1, 1), 857 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 7, 7, 1, 1),
862WSS_DOUBLE("Aux Capture Switch", 0, 858WSS_DOUBLE("Line Capture Switch", 0,
863 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 6, 6, 1, 1), 859 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 6, 6, 1, 1),
864WSS_DOUBLE("Aux Volume", 0, 860WSS_DOUBLE("Line Volume", 0,
865 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 0, 0, 31, 1), 861 CS4231_AUX1_LEFT_INPUT, CS4231_AUX1_RIGHT_INPUT, 0, 0, 31, 1),
866 862
867WSS_DOUBLE("Aux Playback Switch", 1, 863WSS_DOUBLE("CD Playback Switch", 1,
868 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 7, 7, 1, 1), 864 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 7, 7, 1, 1),
869WSS_DOUBLE("Aux Capture Switch", 1, 865WSS_DOUBLE("CD Capture Switch", 1,
870 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 6, 6, 1, 1), 866 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 6, 6, 1, 1),
871WSS_DOUBLE("Aux Volume", 1, 867WSS_DOUBLE("CD Volume", 1,
872 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 0, 0, 31, 1), 868 CS4231_AUX2_LEFT_INPUT, CS4231_AUX2_RIGHT_INPUT, 0, 0, 31, 1),
873 869
874CS4236_DOUBLE1("Master Mono Switch", 0, 870CS4236_DOUBLE1("Beep Playback Switch", 0,
875 CS4231_MONO_CTRL, CS4236_RIGHT_MIX_CTRL, 6, 7, 1, 1),
876
877CS4236_DOUBLE1("Mono Switch", 0,
878 CS4231_MONO_CTRL, CS4236_LEFT_MIX_CTRL, 7, 7, 1, 1), 871 CS4231_MONO_CTRL, CS4236_LEFT_MIX_CTRL, 7, 7, 1, 1),
879WSS_SINGLE("Mono Volume", 0, CS4231_MONO_CTRL, 0, 15, 1), 872WSS_SINGLE("Beep Playback Volume", 0, CS4231_MONO_CTRL, 0, 15, 1),
880 873
881WSS_DOUBLE("Analog Loopback Switch", 0, 874WSS_DOUBLE("Analog Loopback Switch", 0,
882 CS4231_LEFT_INPUT, CS4231_RIGHT_INPUT, 7, 7, 1, 0), 875 CS4231_LEFT_INPUT, CS4231_RIGHT_INPUT, 7, 7, 1, 0),