Lines Matching +full:0 +full:x1b
38 HDA_CODEC_VOLUME("Beep Playback Volume", 0, 0, HDA_OUTPUT),
39 HDA_CODEC_MUTE_BEEP("Beep Playback Switch", 0, 0, HDA_OUTPUT),
56 return 0; in create_beep_ctls()
65 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls()
66 if (err < 0) in create_beep_ctls()
69 return 0; in create_beep_ctls()
72 #define create_beep_ctls(codec) 0
80 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write()
81 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write()
83 snd_hda_codec_write(codec, hp, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write()
84 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write()
91 case 0x11d41882: in ad198x_power_eapd()
92 case 0x11d4882a: in ad198x_power_eapd()
93 case 0x11d41884: in ad198x_power_eapd()
94 case 0x11d41984: in ad198x_power_eapd()
95 case 0x11d41883: in ad198x_power_eapd()
96 case 0x11d4184a: in ad198x_power_eapd()
97 case 0x11d4194a: in ad198x_power_eapd()
98 case 0x11d4194b: in ad198x_power_eapd()
99 case 0x11d41988: in ad198x_power_eapd()
100 case 0x11d4198b: in ad198x_power_eapd()
101 case 0x11d4989a: in ad198x_power_eapd()
102 case 0x11d4989b: in ad198x_power_eapd()
103 ad198x_power_eapd_write(codec, 0x12, 0x11); in ad198x_power_eapd()
105 case 0x11d41981: in ad198x_power_eapd()
106 case 0x11d41983: in ad198x_power_eapd()
107 ad198x_power_eapd_write(codec, 0x05, 0x06); in ad198x_power_eapd()
109 case 0x11d41986: in ad198x_power_eapd()
110 ad198x_power_eapd_write(codec, 0x1b, 0x1a); in ad198x_power_eapd()
119 return 0; in ad198x_suspend()
133 snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, in ad_vmaster_eapd_hook()
135 enabled ? 0x02 : 0x00); in ad_vmaster_eapd_hook()
147 if (err < 0) in ad198x_auto_build_controls()
150 if (err < 0) in ad198x_auto_build_controls()
152 return 0; in ad198x_auto_build_controls()
182 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); in ad198x_parse_auto_config()
183 if (err < 0) in ad198x_parse_auto_config()
186 if (err < 0) in ad198x_parse_auto_config()
189 return 0; in ad198x_parse_auto_config()
206 return 0; in alloc_ad_spec()
223 spec->eapd_nid = 0x1b; in ad_fixup_inv_jack_detect()
234 codec->inv_eapd = 0; in ad1986a_fixup_eapd()
236 spec->eapd_nid = 0x1b; in ad1986a_fixup_eapd()
272 { 0x1b, 0x90170110 }, /* speaker */
273 { 0x1d, 0x90a7013e }, /* int mic */
280 { 0x1b, 0x90170110 }, /* speaker */
281 { 0x1d, 0x90a7013e }, /* int mic */
282 { 0x20, 0x411111f0 }, /* N/A */
283 { 0x24, 0x411111f0 }, /* N/A */
290 { 0x1a, 0x02214021 }, /* headphone */
291 { 0x1b, 0x01014011 }, /* front */
292 { 0x1c, 0x01813030 }, /* line-in */
293 { 0x1d, 0x01a19020 }, /* rear mic */
294 { 0x1e, 0x411111f0 }, /* N/A */
295 { 0x1f, 0x02a190f0 }, /* mic */
296 { 0x20, 0x411111f0 }, /* N/A */
303 { 0x1a, 0x02214021 }, /* headphone */
304 { 0x1b, 0x90170110 }, /* speaker */
305 { 0x1c, 0x411111f0 }, /* N/A */
306 { 0x1d, 0x411111f0 }, /* N/A */
307 { 0x1e, 0x411111f0 }, /* N/A */
308 { 0x1f, 0x02a191f0 }, /* mic */
309 { 0x20, 0x411111f0 }, /* N/A */
316 { 0x1d, 0x90a7013e }, /* int mic */
333 { 0x1a, 0x0421402f }, /* headphone */
334 { 0x1b, 0x90170110 }, /* speaker */
335 { 0x1c, 0x411111f0 }, /* N/A */
336 { 0x1d, 0x90a70130 }, /* int mic */
337 { 0x1e, 0x411111f0 }, /* N/A */
338 { 0x1f, 0x04a19040 }, /* mic */
339 { 0x20, 0x411111f0 }, /* N/A */
340 { 0x21, 0x411111f0 }, /* N/A */
341 { 0x22, 0x411111f0 }, /* N/A */
342 { 0x23, 0x411111f0 }, /* N/A */
343 { 0x24, 0x411111f0 }, /* N/A */
344 { 0x25, 0x411111f0 }, /* N/A */
353 SND_PCI_QUIRK(0x103c, 0x30af, "HP B2800", AD1986A_FIXUP_LAPTOP_IMIC),
354 SND_PCI_QUIRK(0x1043, 0x1153, "ASUS M9V", AD1986A_FIXUP_LAPTOP_IMIC),
355 SND_PCI_QUIRK(0x1043, 0x1443, "ASUS Z99He", AD1986A_FIXUP_EAPD),
356 SND_PCI_QUIRK(0x1043, 0x1447, "ASUS A8JN", AD1986A_FIXUP_EAPD),
357 SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8100, "ASUS P5", AD1986A_FIXUP_3STACK),
358 SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8200, "ASUS M2", AD1986A_FIXUP_3STACK),
359 SND_PCI_QUIRK(0x10de, 0xcb84, "ASUS A8N-VM", AD1986A_FIXUP_3STACK),
360 SND_PCI_QUIRK(0x1179, 0xff40, "Toshiba Satellite L40", AD1986A_FIXUP_EAPD),
361 SND_PCI_QUIRK(0x144d, 0xc01e, "FSC V2060", AD1986A_FIXUP_LAPTOP),
362 SND_PCI_QUIRK_MASK(0x144d, 0xff00, 0xc000, "Samsung", AD1986A_FIXUP_SAMSUNG),
363 SND_PCI_QUIRK(0x144d, 0xc027, "Samsung Q1", AD1986A_FIXUP_ULTRA),
364 SND_PCI_QUIRK(0x1631, 0xc022, "PackardBell EasyNote MX65", AD1986A_FIXUP_EASYNOTE),
365 SND_PCI_QUIRK(0x17aa, 0x2066, "Lenovo N100", AD1986A_FIXUP_INV_JACK_DETECT),
366 SND_PCI_QUIRK(0x17aa, 0x1011, "Lenovo M55", AD1986A_FIXUP_3STACK),
367 SND_PCI_QUIRK(0x17aa, 0x1017, "Lenovo A60", AD1986A_FIXUP_3STACK),
387 0x1a, 0x03, in patch_ad1986a()
388 0x1b, 0x03, in patch_ad1986a()
389 0x1c, 0x04, in patch_ad1986a()
390 0x1d, 0x05, in patch_ad1986a()
391 0x1e, 0x03, in patch_ad1986a()
392 0 in patch_ad1986a()
396 if (err < 0) in patch_ad1986a()
403 spec->gen.mixer_nid = 0x07; in patch_ad1986a()
404 spec->gen.beep_nid = 0x19; in patch_ad1986a()
405 set_beep_amp(spec, 0x18, 0, HDA_OUTPUT); in patch_ad1986a()
425 if (err < 0) { in patch_ad1986a()
432 return 0; in patch_ad1986a()
466 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1983_auto_smux_enum_get()
467 return 0; in ad1983_auto_smux_enum_get()
475 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1983_auto_smux_enum_put()
482 return 0; in ad1983_auto_smux_enum_put()
484 snd_hda_codec_write_cache(codec, dig_out, 0, in ad1983_auto_smux_enum_put()
504 return 0; in ad1983_add_spdif_mux_ctl()
507 return 0; in ad1983_add_spdif_mux_ctl()
511 return 0; in ad1983_add_spdif_mux_ctl()
516 static const hda_nid_t conn_0c[] = { 0x08 }; in patch_ad1983()
517 static const hda_nid_t conn_0d[] = { 0x09 }; in patch_ad1983()
522 if (err < 0) in patch_ad1983()
526 spec->gen.mixer_nid = 0x0e; in patch_ad1983()
527 spec->gen.beep_nid = 0x10; in patch_ad1983()
528 set_beep_amp(spec, 0x10, 0, HDA_OUTPUT); in patch_ad1983()
531 snd_hda_override_conn_list(codec, 0x0c, ARRAY_SIZE(conn_0c), conn_0c); in patch_ad1983()
532 snd_hda_override_conn_list(codec, 0x0d, ARRAY_SIZE(conn_0d), conn_0d); in patch_ad1983()
535 if (err < 0) in patch_ad1983()
538 if (err < 0) in patch_ad1983()
540 return 0; in patch_ad1983()
559 spec->eapd_nid = 0x05; in ad1981_fixup_hp_eapd()
563 /* set the upper-limit for mixer amp to 0dB for avoiding the possible
570 snd_hda_override_amp_caps(codec, 0x11, HDA_INPUT, in ad1981_fixup_amp_override()
571 (0x17 << AC_AMPCAP_OFFSET_SHIFT) | in ad1981_fixup_amp_override()
572 (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | in ad1981_fixup_amp_override()
573 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | in ad1981_fixup_amp_override()
596 SND_PCI_QUIRK_VENDOR(0x1014, "Lenovo", AD1981_FIXUP_AMP_OVERRIDE),
597 SND_PCI_QUIRK_VENDOR(0x103c, "HP", AD1981_FIXUP_HP_EAPD),
598 SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo", AD1981_FIXUP_AMP_OVERRIDE),
600 SND_PCI_QUIRK(0x30b0, 0x103c, "HP nx6320", AD1981_FIXUP_HP_EAPD),
610 if (err < 0) in patch_ad1981()
614 spec->gen.mixer_nid = 0x0e; in patch_ad1981()
615 spec->gen.beep_nid = 0x10; in patch_ad1981()
616 set_beep_amp(spec, 0x0d, 0, HDA_OUTPUT); in patch_ad1981()
622 if (err < 0) in patch_ad1981()
625 if (err < 0) in patch_ad1981()
630 return 0; in patch_ad1981()
644 * port-A 0x11 (mute/hp) <- 0x22 <- 0x37 <- 03/04/06
645 * port-B 0x14 (mute/hp) <- 0x2b <- 0x30 <- 03/04/06
646 * port-C 0x15 (mute) <- 0x2c <- 0x31 <- 05/0a
647 * port-D 0x12 (mute/hp) <- 0x29 <- 04
648 * port-E 0x17 (mute/hp) <- 0x26 <- 0x32 <- 05/0a
649 * port-F 0x16 (mute) <- 0x2a <- 06
650 * port-G 0x24 (mute) <- 0x27 <- 05
651 * port-H 0x25 (mute) <- 0x28 <- 0a
652 * mono 0x13 (mute/amp)<- 0x1e <- 0x36 <- 03/04/06
654 * DAC0 = 03h, DAC1 = 04h, DAC2 = 05h, DAC3 = 06h, DAC4 = 0ah
660 * port-A 0x11 -> 0x38 -> mix 2, ADC 0
661 * port-B 0x14 -> 0x39 -> mix 0, ADC 1
662 * port-C 0x15 -> 0x3a -> 33:0 - mix 1, ADC 2
663 * port-D 0x12 -> 0x3d -> mix 3, ADC 8
664 * port-E 0x17 -> 0x3c -> 34:0 - mix 4, ADC 4
665 * port-F 0x16 -> 0x3b -> mix 5, ADC 3
666 * port-G 0x24 -> N/A -> 33:1 - mix 1, 34:1 - mix 4, ADC 6
667 * port-H 0x25 -> N/A -> 33:2 - mix 1, 34:2 - mix 4, ADC 7
671 * 6stack - front/surr/CLFE/side/opt DACs - 04/06/05/0a/03
672 * 3stack - front/surr/CLFE/opt DACs - 04/05/0a/03
674 * Inputs of Analog Mix (0x20)
675 * 0:Port-B (front mic)
685 * 0:Port-A
744 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1988_auto_smux_enum_get()
745 return 0; in ad1988_auto_smux_enum_get()
753 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1988_auto_smux_enum_put()
760 return 0; in ad1988_auto_smux_enum_put()
789 if (err < 0) in ad1988_auto_init()
792 return 0; in ad1988_auto_init()
794 for (i = 0; i < 4; i++) { in ad1988_auto_init()
801 return 0; in ad1988_auto_init()
814 .path = { 0x02, 0x1d, 0x1b }, in ad1988_add_spdif_mux_ctl()
815 .idx = { 0, 0, 0 }, in ad1988_add_spdif_mux_ctl()
816 .multi = { 0, 0, 0 }, in ad1988_add_spdif_mux_ctl()
820 .path = { 0x08, 0x0b, 0x1d, 0x1b }, in ad1988_add_spdif_mux_ctl()
821 .idx = { 0, 0, 1, 0 }, in ad1988_add_spdif_mux_ctl()
822 .multi = { 0, 1, 0, 0 }, in ad1988_add_spdif_mux_ctl()
826 .path = { 0x09, 0x0b, 0x1d, 0x1b }, in ad1988_add_spdif_mux_ctl()
827 .idx = { 0, 1, 1, 0 }, in ad1988_add_spdif_mux_ctl()
828 .multi = { 0, 1, 0, 0 }, in ad1988_add_spdif_mux_ctl()
832 .path = { 0x0f, 0x0b, 0x1d, 0x1b }, in ad1988_add_spdif_mux_ctl()
833 .idx = { 0, 2, 1, 0 }, in ad1988_add_spdif_mux_ctl()
834 .multi = { 0, 1, 0, 0 }, in ad1988_add_spdif_mux_ctl()
840 get_wcaps_type(get_wcaps(codec, 0x1d)) != AC_WID_AUD_MIX) in ad1988_add_spdif_mux_ctl()
841 return 0; in ad1988_add_spdif_mux_ctl()
843 num_conns = snd_hda_get_num_conns(codec, 0x0b) + 1; in ad1988_add_spdif_mux_ctl()
845 return 0; in ad1988_add_spdif_mux_ctl()
848 for (i = 0; i < num_conns; i++) { in ad1988_add_spdif_mux_ctl()
863 return 0; in ad1988_add_spdif_mux_ctl()
877 { 0x11, 0x02214130 }, /* front-hp */
878 { 0x12, 0x01014010 }, /* line-out */
879 { 0x14, 0x02a19122 }, /* front-mic */
880 { 0x15, 0x01813021 }, /* line-in */
881 { 0x16, 0x01011012 }, /* line-out */
882 { 0x17, 0x01a19020 }, /* mic */
883 { 0x1b, 0x0145f1f0 }, /* SPDIF */
884 { 0x24, 0x01016011 }, /* line-out */
885 { 0x25, 0x01012013 }, /* line-out */
902 if (err < 0) in patch_ad1988()
906 spec->gen.mixer_nid = 0x20; in patch_ad1988()
907 spec->gen.mixer_merge_nid = 0x21; in patch_ad1988()
908 spec->gen.beep_nid = 0x10; in patch_ad1988()
909 set_beep_amp(spec, 0x10, 0, HDA_OUTPUT); in patch_ad1988()
915 if (err < 0) in patch_ad1988()
918 if (err < 0) in patch_ad1988()
923 return 0; in patch_ad1988()
945 * port-B (0x14) - front mic-in
946 * port-E (0x1c) - rear mic-in
947 * port-F (0x16) - CD / ext out
948 * port-C (0x15) - rear line-in
949 * port-D (0x12) - rear line-out
950 * port-A (0x11) - front hp-out
957 /* set the upper-limit for mixer amp to 0dB for avoiding the possible
964 snd_hda_override_amp_caps(codec, 0x20, HDA_INPUT, in ad1884_fixup_amp_override()
965 (0x17 << AC_AMPCAP_OFFSET_SHIFT) | in ad1884_fixup_amp_override()
966 (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | in ad1884_fixup_amp_override()
967 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | in ad1884_fixup_amp_override()
979 snd_hda_codec_write_cache(codec, 0x01, 0, in ad1884_vmaster_hp_gpio_hook()
981 enabled ? 0x00 : 0x02); in ad1884_vmaster_hp_gpio_hook()
993 snd_hda_codec_write_cache(codec, 0x01, 0, in ad1884_fixup_hp_eapd()
994 AC_VERB_SET_GPIO_MASK, 0x02); in ad1884_fixup_hp_eapd()
995 snd_hda_codec_write_cache(codec, 0x01, 0, in ad1884_fixup_hp_eapd()
996 AC_VERB_SET_GPIO_DIRECTION, 0x02); in ad1884_fixup_hp_eapd()
997 snd_hda_codec_write_cache(codec, 0x01, 0, in ad1884_fixup_hp_eapd()
998 AC_VERB_SET_GPIO_DATA, 0x02); in ad1884_fixup_hp_eapd()
1002 spec->eapd_nid = spec->gen.autocfg.line_out_pins[0]; in ad1884_fixup_hp_eapd()
1004 spec->eapd_nid = spec->gen.autocfg.speaker_pins[0]; in ad1884_fixup_hp_eapd()
1017 spec->eapd_nid = 0x12; in ad1884_fixup_thinkpad()
1019 spec->beep_amp = HDA_COMPOSE_AMP_VAL(0x20, 3, 3, HDA_INPUT); in ad1884_fixup_thinkpad()
1020 spec->gen.beep_nid = 0; /* no digital beep */ in ad1884_fixup_thinkpad()
1026 {0x01, AC_VERB_SET_COEF_INDEX, 0x13f7},
1027 {0x01, AC_VERB_SET_PROC_COEF, 0x08},
1069 SND_PCI_QUIRK(0x103c, 0x2a82, "HP Touchsmart", AD1884_FIXUP_HP_TOUCHSMART),
1070 SND_PCI_QUIRK_VENDOR(0x103c, "HP", AD1884_FIXUP_HP_EAPD),
1071 SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo Thinkpad", AD1884_FIXUP_THINKPAD),
1082 if (err < 0) in patch_ad1884()
1086 spec->gen.mixer_nid = 0x20; in patch_ad1884()
1087 spec->gen.mixer_merge_nid = 0x21; in patch_ad1884()
1088 spec->gen.beep_nid = 0x10; in patch_ad1884()
1089 set_beep_amp(spec, 0x10, 0, HDA_OUTPUT); in patch_ad1884()
1095 if (err < 0) in patch_ad1884()
1098 if (err < 0) in patch_ad1884()
1103 return 0; in patch_ad1884()
1128 if (err < 0) in patch_ad1882()
1132 spec->gen.mixer_nid = 0x20; in patch_ad1882()
1133 spec->gen.mixer_merge_nid = 0x21; in patch_ad1882()
1134 spec->gen.beep_nid = 0x10; in patch_ad1882()
1135 set_beep_amp(spec, 0x10, 0, HDA_OUTPUT); in patch_ad1882()
1137 if (err < 0) in patch_ad1882()
1140 if (err < 0) in patch_ad1882()
1142 return 0; in patch_ad1882()
1154 HDA_CODEC_ENTRY(0x11d4184a, "AD1884A", patch_ad1884),
1155 HDA_CODEC_ENTRY(0x11d41882, "AD1882", patch_ad1882),
1156 HDA_CODEC_ENTRY(0x11d41883, "AD1883", patch_ad1884),
1157 HDA_CODEC_ENTRY(0x11d41884, "AD1884", patch_ad1884),
1158 HDA_CODEC_ENTRY(0x11d4194a, "AD1984A", patch_ad1884),
1159 HDA_CODEC_ENTRY(0x11d4194b, "AD1984B", patch_ad1884),
1160 HDA_CODEC_ENTRY(0x11d41981, "AD1981", patch_ad1981),
1161 HDA_CODEC_ENTRY(0x11d41983, "AD1983", patch_ad1983),
1162 HDA_CODEC_ENTRY(0x11d41984, "AD1984", patch_ad1884),
1163 HDA_CODEC_ENTRY(0x11d41986, "AD1986A", patch_ad1986a),
1164 HDA_CODEC_ENTRY(0x11d41988, "AD1988", patch_ad1988),
1165 HDA_CODEC_ENTRY(0x11d4198b, "AD1988B", patch_ad1988),
1166 HDA_CODEC_ENTRY(0x11d4882a, "AD1882A", patch_ad1882),
1167 HDA_CODEC_ENTRY(0x11d4989a, "AD1989A", patch_ad1988),
1168 HDA_CODEC_ENTRY(0x11d4989b, "AD1989B", patch_ad1988),