aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-01-28 12:14:43 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:30:20 -0500
commitf2f48e1859167c936af957a828da1e9ec76848cd (patch)
treeb9af021012027d0c2fdda9a85704b77dc5065031 /sound
parent4bb261302b34998e8c3c8d8f0493ee9e58d57cb2 (diff)
[ALSA] hda-codec - Fix ALC262 HP-RP5700 model
Removed the PCM mixer elements conflicting with others. Also renamed Master control to Headphone, which isn't a real master. (The Master control is still created as a virtual master even after this rename.) Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index e484f6092c67..dca8ba0b3ce9 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -8099,29 +8099,9 @@ static struct hda_verb alc262_hp_t5735_verbs[] = {
8099 { } 8099 { }
8100}; 8100};
8101 8101
8102static struct hda_bind_ctls alc262_hp_rp5700_bind_front_vol = {
8103 .ops = &snd_hda_bind_vol,
8104 .values = {
8105 HDA_COMPOSE_AMP_VAL(0x0c, 3, 0, HDA_OUTPUT),
8106 HDA_COMPOSE_AMP_VAL(0x0e, 3, 0, HDA_OUTPUT),
8107 0
8108 },
8109};
8110
8111static struct hda_bind_ctls alc262_hp_rp5700_bind_front_sw = {
8112 .ops = &snd_hda_bind_sw,
8113 .values = {
8114 HDA_COMPOSE_AMP_VAL(0x1b, 3, 0, HDA_OUTPUT),
8115 HDA_COMPOSE_AMP_VAL(0x16, 3, 0, HDA_OUTPUT),
8116 0
8117 },
8118};
8119
8120static struct snd_kcontrol_new alc262_hp_rp5700_mixer[] = { 8102static struct snd_kcontrol_new alc262_hp_rp5700_mixer[] = {
8121 HDA_BIND_VOL("PCM Playback Volume", &alc262_hp_rp5700_bind_front_vol), 8103 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
8122 HDA_BIND_SW("PCM Playback Switch", &alc262_hp_rp5700_bind_front_sw), 8104 HDA_CODEC_MUTE("Headphone Playback Switch", 0x1b, 0x0, HDA_OUTPUT),
8123 HDA_CODEC_VOLUME("Master Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
8124 HDA_CODEC_MUTE("Master Playback Switch", 0x1b, 0x0, HDA_OUTPUT),
8125 HDA_CODEC_VOLUME("Speaker Playback Volume", 0x0e, 0x0, HDA_OUTPUT), 8105 HDA_CODEC_VOLUME("Speaker Playback Volume", 0x0e, 0x0, HDA_OUTPUT),
8126 HDA_CODEC_MUTE("Speaker Playback Switch", 0x16, 0x0, HDA_OUTPUT), 8106 HDA_CODEC_MUTE("Speaker Playback Switch", 0x16, 0x0, HDA_OUTPUT),
8127 HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x01, HDA_INPUT), 8107 HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x01, HDA_INPUT),