aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6b0b8728f6b7..87bf7bd6292a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4414,7 +4414,9 @@ static int add_control(struct alc_spec *spec, int type, const char *name,
4414 if (!knew->name) 4414 if (!knew->name)
4415 return -ENOMEM; 4415 return -ENOMEM;
4416 if (get_amp_nid_(val)) 4416 if (get_amp_nid_(val))
4417 knew->subdevice = HDA_SUBDEV_NID_FLAG | get_amp_nid_(val); 4417 knew->subdevice = HDA_SUBDEV_NID_FLAG |
4418 HDA_SUBDEV_AMP_FLAG |
4419 get_amp_nid_(val);
4418 knew->private_value = val; 4420 knew->private_value = val;
4419 return 0; 4421 return 0;
4420} 4422}
@@ -10919,7 +10921,7 @@ static struct snd_kcontrol_new alc262_fujitsu_mixer[] = {
10919 { 10921 {
10920 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 10922 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
10921 .name = "Master Playback Switch", 10923 .name = "Master Playback Switch",
10922 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 10924 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
10923 .info = snd_hda_mixer_amp_switch_info, 10925 .info = snd_hda_mixer_amp_switch_info,
10924 .get = snd_hda_mixer_amp_switch_get, 10926 .get = snd_hda_mixer_amp_switch_get,
10925 .put = alc262_fujitsu_master_sw_put, 10927 .put = alc262_fujitsu_master_sw_put,
@@ -10960,7 +10962,7 @@ static struct snd_kcontrol_new alc262_lenovo_3000_mixer[] = {
10960 { 10962 {
10961 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 10963 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
10962 .name = "Master Playback Switch", 10964 .name = "Master Playback Switch",
10963 .subdevice = HDA_SUBDEV_NID_FLAG | 0x1b, 10965 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x1b,
10964 .info = snd_hda_mixer_amp_switch_info, 10966 .info = snd_hda_mixer_amp_switch_info,
10965 .get = snd_hda_mixer_amp_switch_get, 10967 .get = snd_hda_mixer_amp_switch_get,
10966 .put = alc262_lenovo_3000_master_sw_put, 10968 .put = alc262_lenovo_3000_master_sw_put,
@@ -12137,7 +12139,7 @@ static struct snd_kcontrol_new alc268_acer_aspire_one_mixer[] = {
12137 { 12139 {
12138 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 12140 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12139 .name = "Master Playback Switch", 12141 .name = "Master Playback Switch",
12140 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 12142 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
12141 .info = snd_hda_mixer_amp_switch_info, 12143 .info = snd_hda_mixer_amp_switch_info,
12142 .get = snd_hda_mixer_amp_switch_get, 12144 .get = snd_hda_mixer_amp_switch_get,
12143 .put = alc268_acer_master_sw_put, 12145 .put = alc268_acer_master_sw_put,
@@ -12153,7 +12155,7 @@ static struct snd_kcontrol_new alc268_acer_mixer[] = {
12153 { 12155 {
12154 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 12156 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12155 .name = "Master Playback Switch", 12157 .name = "Master Playback Switch",
12156 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 12158 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
12157 .info = snd_hda_mixer_amp_switch_info, 12159 .info = snd_hda_mixer_amp_switch_info,
12158 .get = snd_hda_mixer_amp_switch_get, 12160 .get = snd_hda_mixer_amp_switch_get,
12159 .put = alc268_acer_master_sw_put, 12161 .put = alc268_acer_master_sw_put,
@@ -12171,7 +12173,7 @@ static struct snd_kcontrol_new alc268_acer_dmic_mixer[] = {
12171 { 12173 {
12172 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 12174 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12173 .name = "Master Playback Switch", 12175 .name = "Master Playback Switch",
12174 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 12176 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
12175 .info = snd_hda_mixer_amp_switch_info, 12177 .info = snd_hda_mixer_amp_switch_info,
12176 .get = snd_hda_mixer_amp_switch_get, 12178 .get = snd_hda_mixer_amp_switch_get,
12177 .put = alc268_acer_master_sw_put, 12179 .put = alc268_acer_master_sw_put,
@@ -13124,7 +13126,7 @@ static struct snd_kcontrol_new alc269_quanta_fl1_mixer[] = {
13124 { 13126 {
13125 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 13127 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
13126 .name = "Master Playback Switch", 13128 .name = "Master Playback Switch",
13127 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 13129 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
13128 .info = snd_hda_mixer_amp_switch_info, 13130 .info = snd_hda_mixer_amp_switch_info,
13129 .get = snd_hda_mixer_amp_switch_get, 13131 .get = snd_hda_mixer_amp_switch_get,
13130 .put = alc268_acer_master_sw_put, 13132 .put = alc268_acer_master_sw_put,
@@ -13145,7 +13147,7 @@ static struct snd_kcontrol_new alc269_lifebook_mixer[] = {
13145 { 13147 {
13146 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 13148 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
13147 .name = "Master Playback Switch", 13149 .name = "Master Playback Switch",
13148 .subdevice = HDA_SUBDEV_NID_FLAG | 0x14, 13150 .subdevice = HDA_SUBDEV_NID_FLAG | HDA_SUBDEV_AMP_FLAG | 0x14,
13149 .info = snd_hda_mixer_amp_switch_info, 13151 .info = snd_hda_mixer_amp_switch_info,
13150 .get = snd_hda_mixer_amp_switch_get, 13152 .get = snd_hda_mixer_amp_switch_get,
13151 .put = alc268_acer_master_sw_put, 13153 .put = alc268_acer_master_sw_put,