Lines Matching +full:codec +full:- +full:0
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Universal Interface for Intel High Definition Audio Codec
39 /* extra amp-initialization sequence types */
87 /* codec parameterization */
115 void (*init_hook)(struct hda_codec *codec);
116 void (*power_hook)(struct hda_codec *codec);
117 void (*shutup)(struct hda_codec *codec);
146 static void coef_mutex_lock(struct hda_codec *codec) in coef_mutex_lock() argument
148 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
150 snd_hda_power_up_pm(codec); in coef_mutex_lock()
151 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
154 static void coef_mutex_unlock(struct hda_codec *codec) in coef_mutex_unlock() argument
156 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
158 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
159 snd_hda_power_down_pm(codec); in coef_mutex_unlock()
162 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx() argument
167 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_read_coefex_idx()
168 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); in __alc_read_coefex_idx()
172 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() argument
177 coef_mutex_lock(codec); in alc_read_coefex_idx()
178 val = __alc_read_coefex_idx(codec, nid, coef_idx); in alc_read_coefex_idx()
179 coef_mutex_unlock(codec); in alc_read_coefex_idx()
183 #define alc_read_coef_idx(codec, coef_idx) \ argument
184 alc_read_coefex_idx(codec, 0x20, coef_idx)
186 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx() argument
189 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_write_coefex_idx()
190 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PROC_COEF, coef_val); in __alc_write_coefex_idx()
193 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() argument
196 coef_mutex_lock(codec); in alc_write_coefex_idx()
197 __alc_write_coefex_idx(codec, nid, coef_idx, coef_val); in alc_write_coefex_idx()
198 coef_mutex_unlock(codec); in alc_write_coefex_idx()
201 #define alc_write_coef_idx(codec, coef_idx, coef_val) \ argument
202 alc_write_coefex_idx(codec, 0x20, coef_idx, coef_val)
204 static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_update_coefex_idx() argument
208 unsigned int val = __alc_read_coefex_idx(codec, nid, coef_idx); in __alc_update_coefex_idx()
210 if (val != -1) in __alc_update_coefex_idx()
211 __alc_write_coefex_idx(codec, nid, coef_idx, in __alc_update_coefex_idx()
215 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx() argument
219 coef_mutex_lock(codec); in alc_update_coefex_idx()
220 __alc_update_coefex_idx(codec, nid, coef_idx, mask, bits_set); in alc_update_coefex_idx()
221 coef_mutex_unlock(codec); in alc_update_coefex_idx()
224 #define alc_update_coef_idx(codec, coef_idx, mask, bits_set) \ argument
225 alc_update_coefex_idx(codec, 0x20, coef_idx, mask, bits_set)
227 /* a special bypass for COEF 0; read the cached value at the second time */
228 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0() argument
230 struct alc_spec *spec = codec->spec; in alc_get_coef0()
232 if (!spec->coef0) in alc_get_coef0()
233 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
234 return spec->coef0; in alc_get_coef0()
247 #define WRITE_COEFEX(_nid, _idx, _val) UPDATE_COEFEX(_nid, _idx, -1, _val)
248 #define WRITE_COEF(_idx, _val) WRITE_COEFEX(0x20, _idx, _val)
249 #define UPDATE_COEF(_idx, _mask, _val) UPDATE_COEFEX(0x20, _idx, _mask, _val)
251 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw() argument
254 coef_mutex_lock(codec); in alc_process_coef_fw()
255 for (; fw->nid; fw++) { in alc_process_coef_fw()
256 if (fw->mask == (unsigned short)-1) in alc_process_coef_fw()
257 __alc_write_coefex_idx(codec, fw->nid, fw->idx, fw->val); in alc_process_coef_fw()
259 __alc_update_coefex_idx(codec, fw->nid, fw->idx, in alc_process_coef_fw()
260 fw->mask, fw->val); in alc_process_coef_fw()
262 coef_mutex_unlock(codec); in alc_process_coef_fw()
270 static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) in alc_setup_gpio() argument
272 struct alc_spec *spec = codec->spec; in alc_setup_gpio()
274 spec->gpio_mask |= mask; in alc_setup_gpio()
275 spec->gpio_dir |= mask; in alc_setup_gpio()
276 spec->gpio_data |= mask; in alc_setup_gpio()
279 static void alc_write_gpio_data(struct hda_codec *codec) in alc_write_gpio_data() argument
281 struct alc_spec *spec = codec->spec; in alc_write_gpio_data()
283 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, in alc_write_gpio_data()
284 spec->gpio_data); in alc_write_gpio_data()
287 static void alc_update_gpio_data(struct hda_codec *codec, unsigned int mask, in alc_update_gpio_data() argument
290 struct alc_spec *spec = codec->spec; in alc_update_gpio_data()
291 unsigned int oldval = spec->gpio_data; in alc_update_gpio_data()
294 spec->gpio_data |= mask; in alc_update_gpio_data()
296 spec->gpio_data &= ~mask; in alc_update_gpio_data()
297 if (oldval != spec->gpio_data) in alc_update_gpio_data()
298 alc_write_gpio_data(codec); in alc_update_gpio_data()
301 static void alc_write_gpio(struct hda_codec *codec) in alc_write_gpio() argument
303 struct alc_spec *spec = codec->spec; in alc_write_gpio()
305 if (!spec->gpio_mask) in alc_write_gpio()
308 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
309 AC_VERB_SET_GPIO_MASK, spec->gpio_mask); in alc_write_gpio()
310 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
311 AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); in alc_write_gpio()
312 if (spec->gpio_write_delay) in alc_write_gpio()
314 alc_write_gpio_data(codec); in alc_write_gpio()
317 static void alc_fixup_gpio(struct hda_codec *codec, int action, in alc_fixup_gpio() argument
321 alc_setup_gpio(codec, mask); in alc_fixup_gpio()
324 static void alc_fixup_gpio1(struct hda_codec *codec, in alc_fixup_gpio1() argument
327 alc_fixup_gpio(codec, action, 0x01); in alc_fixup_gpio1()
330 static void alc_fixup_gpio2(struct hda_codec *codec, in alc_fixup_gpio2() argument
333 alc_fixup_gpio(codec, action, 0x02); in alc_fixup_gpio2()
336 static void alc_fixup_gpio3(struct hda_codec *codec, in alc_fixup_gpio3() argument
339 alc_fixup_gpio(codec, action, 0x03); in alc_fixup_gpio3()
342 static void alc_fixup_gpio4(struct hda_codec *codec, in alc_fixup_gpio4() argument
345 alc_fixup_gpio(codec, action, 0x04); in alc_fixup_gpio4()
348 static void alc_fixup_micmute_led(struct hda_codec *codec, in alc_fixup_micmute_led() argument
352 snd_hda_gen_add_micmute_led_cdev(codec, NULL); in alc_fixup_micmute_led()
360 static void alc_fix_pll(struct hda_codec *codec) in alc_fix_pll() argument
362 struct alc_spec *spec = codec->spec; in alc_fix_pll()
364 if (spec->pll_nid) in alc_fix_pll()
365 alc_update_coefex_idx(codec, spec->pll_nid, spec->pll_coef_idx, in alc_fix_pll()
366 1 << spec->pll_coef_bit, 0); in alc_fix_pll()
369 static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, in alc_fix_pll_init() argument
372 struct alc_spec *spec = codec->spec; in alc_fix_pll_init()
373 spec->pll_nid = nid; in alc_fix_pll_init()
374 spec->pll_coef_idx = coef_idx; in alc_fix_pll_init()
375 spec->pll_coef_bit = coef_bit; in alc_fix_pll_init()
376 alc_fix_pll(codec); in alc_fix_pll_init()
379 /* update the master volume per volume-knob's unsol event */
380 static void alc_update_knob_master(struct hda_codec *codec, in alc_update_knob_master() argument
387 kctl = snd_hda_find_mixer_ctl(codec, "Master Playback Volume"); in alc_update_knob_master()
393 val = snd_hda_codec_read(codec, jack->nid, 0, in alc_update_knob_master()
394 AC_VERB_GET_VOLUME_KNOB_CONTROL, 0); in alc_update_knob_master()
396 uctl->value.integer.value[0] = val; in alc_update_knob_master()
397 uctl->value.integer.value[1] = val; in alc_update_knob_master()
398 kctl->put(kctl, uctl); in alc_update_knob_master()
402 static void alc880_unsol_event(struct hda_codec *codec, unsigned int res) in alc880_unsol_event() argument
406 snd_hda_jack_unsol_event(codec, res >> 2); in alc880_unsol_event()
410 static void alc_fill_eapd_coef(struct hda_codec *codec) in alc_fill_eapd_coef() argument
414 coef = alc_get_coef0(codec); in alc_fill_eapd_coef()
416 switch (codec->core.vendor_id) { in alc_fill_eapd_coef()
417 case 0x10ec0262: in alc_fill_eapd_coef()
418 alc_update_coef_idx(codec, 0x7, 0, 1<<5); in alc_fill_eapd_coef()
420 case 0x10ec0267: in alc_fill_eapd_coef()
421 case 0x10ec0268: in alc_fill_eapd_coef()
422 alc_update_coef_idx(codec, 0x7, 0, 1<<13); in alc_fill_eapd_coef()
424 case 0x10ec0269: in alc_fill_eapd_coef()
425 if ((coef & 0x00f0) == 0x0010) in alc_fill_eapd_coef()
426 alc_update_coef_idx(codec, 0xd, 0, 1<<14); in alc_fill_eapd_coef()
427 if ((coef & 0x00f0) == 0x0020) in alc_fill_eapd_coef()
428 alc_update_coef_idx(codec, 0x4, 1<<15, 0); in alc_fill_eapd_coef()
429 if ((coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef()
430 alc_update_coef_idx(codec, 0x10, 1<<9, 0); in alc_fill_eapd_coef()
432 case 0x10ec0280: in alc_fill_eapd_coef()
433 case 0x10ec0284: in alc_fill_eapd_coef()
434 case 0x10ec0290: in alc_fill_eapd_coef()
435 case 0x10ec0292: in alc_fill_eapd_coef()
436 alc_update_coef_idx(codec, 0x4, 1<<15, 0); in alc_fill_eapd_coef()
438 case 0x10ec0225: in alc_fill_eapd_coef()
439 case 0x10ec0295: in alc_fill_eapd_coef()
440 case 0x10ec0299: in alc_fill_eapd_coef()
441 alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); in alc_fill_eapd_coef()
443 case 0x10ec0215: in alc_fill_eapd_coef()
444 case 0x10ec0236: in alc_fill_eapd_coef()
445 case 0x10ec0245: in alc_fill_eapd_coef()
446 case 0x10ec0256: in alc_fill_eapd_coef()
447 case 0x10ec0257: in alc_fill_eapd_coef()
448 case 0x10ec0285: in alc_fill_eapd_coef()
449 case 0x10ec0289: in alc_fill_eapd_coef()
450 alc_update_coef_idx(codec, 0x36, 1<<13, 0); in alc_fill_eapd_coef()
452 case 0x10ec0230: in alc_fill_eapd_coef()
453 case 0x10ec0233: in alc_fill_eapd_coef()
454 case 0x10ec0235: in alc_fill_eapd_coef()
455 case 0x10ec0255: in alc_fill_eapd_coef()
456 case 0x19e58326: in alc_fill_eapd_coef()
457 case 0x10ec0282: in alc_fill_eapd_coef()
458 case 0x10ec0283: in alc_fill_eapd_coef()
459 case 0x10ec0286: in alc_fill_eapd_coef()
460 case 0x10ec0288: in alc_fill_eapd_coef()
461 case 0x10ec0298: in alc_fill_eapd_coef()
462 case 0x10ec0300: in alc_fill_eapd_coef()
463 alc_update_coef_idx(codec, 0x10, 1<<9, 0); in alc_fill_eapd_coef()
465 case 0x10ec0275: in alc_fill_eapd_coef()
466 alc_update_coef_idx(codec, 0xe, 0, 1<<0); in alc_fill_eapd_coef()
468 case 0x10ec0287: in alc_fill_eapd_coef()
469 alc_update_coef_idx(codec, 0x10, 1<<9, 0); in alc_fill_eapd_coef()
470 alc_write_coef_idx(codec, 0x8, 0x4ab7); in alc_fill_eapd_coef()
472 case 0x10ec0293: in alc_fill_eapd_coef()
473 alc_update_coef_idx(codec, 0xa, 1<<13, 0); in alc_fill_eapd_coef()
475 case 0x10ec0234: in alc_fill_eapd_coef()
476 case 0x10ec0274: in alc_fill_eapd_coef()
477 alc_write_coef_idx(codec, 0x6e, 0x0c25); in alc_fill_eapd_coef()
479 case 0x10ec0294: in alc_fill_eapd_coef()
480 case 0x10ec0700: in alc_fill_eapd_coef()
481 case 0x10ec0701: in alc_fill_eapd_coef()
482 case 0x10ec0703: in alc_fill_eapd_coef()
483 case 0x10ec0711: in alc_fill_eapd_coef()
484 alc_update_coef_idx(codec, 0x10, 1<<15, 0); in alc_fill_eapd_coef()
486 case 0x10ec0662: in alc_fill_eapd_coef()
487 if ((coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef()
488 alc_update_coef_idx(codec, 0x4, 1<<10, 0); /* EAPD Ctrl */ in alc_fill_eapd_coef()
490 case 0x10ec0272: in alc_fill_eapd_coef()
491 case 0x10ec0273: in alc_fill_eapd_coef()
492 case 0x10ec0663: in alc_fill_eapd_coef()
493 case 0x10ec0665: in alc_fill_eapd_coef()
494 case 0x10ec0670: in alc_fill_eapd_coef()
495 case 0x10ec0671: in alc_fill_eapd_coef()
496 case 0x10ec0672: in alc_fill_eapd_coef()
497 alc_update_coef_idx(codec, 0xd, 0, 1<<14); /* EAPD Ctrl */ in alc_fill_eapd_coef()
499 case 0x10ec0222: in alc_fill_eapd_coef()
500 case 0x10ec0623: in alc_fill_eapd_coef()
501 alc_update_coef_idx(codec, 0x19, 1<<13, 0); in alc_fill_eapd_coef()
503 case 0x10ec0668: in alc_fill_eapd_coef()
504 alc_update_coef_idx(codec, 0x7, 3<<13, 0); in alc_fill_eapd_coef()
506 case 0x10ec0867: in alc_fill_eapd_coef()
507 alc_update_coef_idx(codec, 0x4, 1<<10, 0); in alc_fill_eapd_coef()
509 case 0x10ec0888: in alc_fill_eapd_coef()
510 if ((coef & 0x00f0) == 0x0020 || (coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef()
511 alc_update_coef_idx(codec, 0x7, 1<<5, 0); in alc_fill_eapd_coef()
513 case 0x10ec0892: in alc_fill_eapd_coef()
514 case 0x10ec0897: in alc_fill_eapd_coef()
515 alc_update_coef_idx(codec, 0x7, 1<<5, 0); in alc_fill_eapd_coef()
517 case 0x10ec0899: in alc_fill_eapd_coef()
518 case 0x10ec0900: in alc_fill_eapd_coef()
519 case 0x10ec0b00: in alc_fill_eapd_coef()
520 case 0x10ec1168: in alc_fill_eapd_coef()
521 case 0x10ec1220: in alc_fill_eapd_coef()
522 alc_update_coef_idx(codec, 0x7, 1<<1, 0); in alc_fill_eapd_coef()
528 static void alc888_coef_init(struct hda_codec *codec) in alc888_coef_init() argument
530 switch (alc_get_coef0(codec) & 0x00f0) { in alc888_coef_init()
531 /* alc888-VA */ in alc888_coef_init()
532 case 0x00: in alc888_coef_init()
533 /* alc888-VB */ in alc888_coef_init()
534 case 0x10: in alc888_coef_init()
535 alc_update_coef_idx(codec, 7, 0, 0x2030); /* Turn EAPD to High */ in alc888_coef_init()
541 static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) in set_eapd() argument
543 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in set_eapd()
545 if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD) in set_eapd()
546 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE, in set_eapd()
547 on ? 2 : 0); in set_eapd()
550 /* turn on/off EAPD controls of the codec */
551 static void alc_auto_setup_eapd(struct hda_codec *codec, bool on) in alc_auto_setup_eapd() argument
555 0x0f, 0x10, 0x14, 0x15, 0x17, 0 in alc_auto_setup_eapd()
559 set_eapd(codec, *p, on); in alc_auto_setup_eapd()
562 static int find_ext_mic_pin(struct hda_codec *codec);
564 static void alc_headset_mic_no_shutup(struct hda_codec *codec) in alc_headset_mic_no_shutup() argument
567 int mic_pin = find_ext_mic_pin(codec); in alc_headset_mic_no_shutup()
573 if (codec->bus->shutdown) in alc_headset_mic_no_shutup()
576 snd_array_for_each(&codec->init_pins, i, pin) { in alc_headset_mic_no_shutup()
578 if (pin->nid != mic_pin) in alc_headset_mic_no_shutup()
579 snd_hda_codec_read(codec, pin->nid, 0, in alc_headset_mic_no_shutup()
580 AC_VERB_SET_PIN_WIDGET_CONTROL, 0); in alc_headset_mic_no_shutup()
583 codec->pins_shutup = 1; in alc_headset_mic_no_shutup()
586 static void alc_shutup_pins(struct hda_codec *codec) in alc_shutup_pins() argument
588 struct alc_spec *spec = codec->spec; in alc_shutup_pins()
590 if (spec->no_shutup_pins) in alc_shutup_pins()
593 switch (codec->core.vendor_id) { in alc_shutup_pins()
594 case 0x10ec0236: in alc_shutup_pins()
595 case 0x10ec0256: in alc_shutup_pins()
596 case 0x10ec0257: in alc_shutup_pins()
597 case 0x19e58326: in alc_shutup_pins()
598 case 0x10ec0283: in alc_shutup_pins()
599 case 0x10ec0285: in alc_shutup_pins()
600 case 0x10ec0286: in alc_shutup_pins()
601 case 0x10ec0287: in alc_shutup_pins()
602 case 0x10ec0288: in alc_shutup_pins()
603 case 0x10ec0295: in alc_shutup_pins()
604 case 0x10ec0298: in alc_shutup_pins()
605 alc_headset_mic_no_shutup(codec); in alc_shutup_pins()
608 snd_hda_shutup_pins(codec); in alc_shutup_pins()
614 * just turning off EAPD and a little pause for avoiding pop-noise
616 static void alc_eapd_shutup(struct hda_codec *codec) in alc_eapd_shutup() argument
618 struct alc_spec *spec = codec->spec; in alc_eapd_shutup()
620 alc_auto_setup_eapd(codec, false); in alc_eapd_shutup()
621 if (!spec->no_depop_delay) in alc_eapd_shutup()
623 alc_shutup_pins(codec); in alc_eapd_shutup()
627 static void alc_auto_init_amp(struct hda_codec *codec, int type) in alc_auto_init_amp() argument
629 alc_auto_setup_eapd(codec, true); in alc_auto_init_amp()
630 alc_write_gpio(codec); in alc_auto_init_amp()
633 switch (codec->core.vendor_id) { in alc_auto_init_amp()
634 case 0x10ec0260: in alc_auto_init_amp()
635 alc_update_coefex_idx(codec, 0x1a, 7, 0, 0x2010); in alc_auto_init_amp()
637 case 0x10ec0880: in alc_auto_init_amp()
638 case 0x10ec0882: in alc_auto_init_amp()
639 case 0x10ec0883: in alc_auto_init_amp()
640 case 0x10ec0885: in alc_auto_init_amp()
641 alc_update_coef_idx(codec, 7, 0, 0x2030); in alc_auto_init_amp()
643 case 0x10ec0888: in alc_auto_init_amp()
644 alc888_coef_init(codec); in alc_auto_init_amp()
654 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin()
655 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin()
656 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin()
657 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin()
658 return 0; in alc_get_hp_pin()
665 /* Could be any non-zero and even value. When used as fixup, tells
670 static void alc_fixup_sku_ignore(struct hda_codec *codec, in alc_fixup_sku_ignore() argument
673 struct alc_spec *spec = codec->spec; in alc_fixup_sku_ignore()
675 spec->cdefine.fixup = 1; in alc_fixup_sku_ignore()
676 spec->cdefine.sku_cfg = ALC_FIXUP_SKU_IGNORE; in alc_fixup_sku_ignore()
680 static void alc_fixup_no_depop_delay(struct hda_codec *codec, in alc_fixup_no_depop_delay() argument
683 struct alc_spec *spec = codec->spec; in alc_fixup_no_depop_delay()
686 spec->no_depop_delay = 1; in alc_fixup_no_depop_delay()
687 codec->depop_delay = 0; in alc_fixup_no_depop_delay()
691 static int alc_auto_parse_customize_define(struct hda_codec *codec) in alc_auto_parse_customize_define() argument
694 unsigned nid = 0; in alc_auto_parse_customize_define()
695 struct alc_spec *spec = codec->spec; in alc_auto_parse_customize_define()
697 spec->cdefine.enable_pcbeep = 1; /* assume always enabled */ in alc_auto_parse_customize_define()
699 if (spec->cdefine.fixup) { in alc_auto_parse_customize_define()
700 ass = spec->cdefine.sku_cfg; in alc_auto_parse_customize_define()
702 return -1; in alc_auto_parse_customize_define()
706 if (!codec->bus->pci) in alc_auto_parse_customize_define()
707 return -1; in alc_auto_parse_customize_define()
708 ass = codec->core.subsystem_id & 0xffff; in alc_auto_parse_customize_define()
709 if (ass != codec->bus->pci->subsystem_device && (ass & 1)) in alc_auto_parse_customize_define()
712 nid = 0x1d; in alc_auto_parse_customize_define()
713 if (codec->core.vendor_id == 0x10ec0260) in alc_auto_parse_customize_define()
714 nid = 0x17; in alc_auto_parse_customize_define()
715 ass = snd_hda_codec_get_pincfg(codec, nid); in alc_auto_parse_customize_define()
718 codec_info(codec, "%s: SKU not ready 0x%08x\n", in alc_auto_parse_customize_define()
719 codec->core.chip_name, ass); in alc_auto_parse_customize_define()
720 return -1; in alc_auto_parse_customize_define()
724 tmp = 0; in alc_auto_parse_customize_define()
729 if (((ass >> 16) & 0xf) != tmp) in alc_auto_parse_customize_define()
730 return -1; in alc_auto_parse_customize_define()
732 spec->cdefine.port_connectivity = ass >> 30; in alc_auto_parse_customize_define()
733 spec->cdefine.enable_pcbeep = (ass & 0x100000) >> 20; in alc_auto_parse_customize_define()
734 spec->cdefine.check_sum = (ass >> 16) & 0xf; in alc_auto_parse_customize_define()
735 spec->cdefine.customization = ass >> 8; in alc_auto_parse_customize_define()
737 spec->cdefine.sku_cfg = ass; in alc_auto_parse_customize_define()
738 spec->cdefine.external_amp = (ass & 0x38) >> 3; in alc_auto_parse_customize_define()
739 spec->cdefine.platform_type = (ass & 0x4) >> 2; in alc_auto_parse_customize_define()
740 spec->cdefine.swap = (ass & 0x2) >> 1; in alc_auto_parse_customize_define()
741 spec->cdefine.override = ass & 0x1; in alc_auto_parse_customize_define()
743 codec_dbg(codec, "SKU: Nid=0x%x sku_cfg=0x%08x\n", in alc_auto_parse_customize_define()
744 nid, spec->cdefine.sku_cfg); in alc_auto_parse_customize_define()
745 codec_dbg(codec, "SKU: port_connectivity=0x%x\n", in alc_auto_parse_customize_define()
746 spec->cdefine.port_connectivity); in alc_auto_parse_customize_define()
747 codec_dbg(codec, "SKU: enable_pcbeep=0x%x\n", spec->cdefine.enable_pcbeep); in alc_auto_parse_customize_define()
748 codec_dbg(codec, "SKU: check_sum=0x%08x\n", spec->cdefine.check_sum); in alc_auto_parse_customize_define()
749 codec_dbg(codec, "SKU: customization=0x%08x\n", spec->cdefine.customization); in alc_auto_parse_customize_define()
750 codec_dbg(codec, "SKU: external_amp=0x%x\n", spec->cdefine.external_amp); in alc_auto_parse_customize_define()
751 codec_dbg(codec, "SKU: platform_type=0x%x\n", spec->cdefine.platform_type); in alc_auto_parse_customize_define()
752 codec_dbg(codec, "SKU: swap=0x%x\n", spec->cdefine.swap); in alc_auto_parse_customize_define()
753 codec_dbg(codec, "SKU: override=0x%x\n", spec->cdefine.override); in alc_auto_parse_customize_define()
755 return 0; in alc_auto_parse_customize_define()
758 /* return the position of NID in the list, or -1 if not found */
762 for (i = 0; i < nums; i++) in find_idx_in_nid_list()
765 return -1; in find_idx_in_nid_list()
770 return find_idx_in_nid_list(nid, list, nums) >= 0; in found_in_nid_list()
773 /* check subsystem ID and set up device-specific initialization;
774 * return 1 if initialized, 0 if invalid SSID
776 /* 32-bit subsystem ID for BIOS loading in HD Audio codec.
779 * 7 ~ 0 : Assembly ID
780 * port-A --> pin 39/41, port-E --> pin 14/15, port-D --> pin 35/36
782 static int alc_subsystem_id(struct hda_codec *codec, const hda_nid_t *ports) in alc_subsystem_id() argument
786 struct alc_spec *spec = codec->spec; in alc_subsystem_id()
788 if (spec->cdefine.fixup) { in alc_subsystem_id()
789 ass = spec->cdefine.sku_cfg; in alc_subsystem_id()
791 return 0; in alc_subsystem_id()
795 ass = codec->core.subsystem_id & 0xffff; in alc_subsystem_id()
796 if (codec->bus->pci && in alc_subsystem_id()
797 ass != codec->bus->pci->subsystem_device && (ass & 1)) in alc_subsystem_id()
807 * 0 : override in alc_subsystem_id()
809 nid = 0x1d; in alc_subsystem_id()
810 if (codec->core.vendor_id == 0x10ec0260) in alc_subsystem_id()
811 nid = 0x17; in alc_subsystem_id()
812 ass = snd_hda_codec_get_pincfg(codec, nid); in alc_subsystem_id()
813 codec_dbg(codec, in alc_subsystem_id()
814 "realtek: No valid SSID, checking pincfg 0x%08x for NID 0x%x\n", in alc_subsystem_id()
817 return 0; in alc_subsystem_id()
819 return 0; in alc_subsystem_id()
822 tmp = 0; in alc_subsystem_id()
827 if (((ass >> 16) & 0xf) != tmp) in alc_subsystem_id()
828 return 0; in alc_subsystem_id()
830 codec_dbg(codec, "realtek: Enabling init ASM_ID=0x%04x CODEC_ID=%08x\n", in alc_subsystem_id()
831 ass & 0xffff, codec->core.vendor_id); in alc_subsystem_id()
833 * 0 : override in alc_subsystem_id()
835 * 2 : 0 --> Desktop, 1 --> Laptop in alc_subsystem_id()
839 tmp = (ass & 0x38) >> 3; /* external Amp control */ in alc_subsystem_id()
840 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_subsystem_id()
843 alc_setup_gpio(codec, 0x01); in alc_subsystem_id()
846 alc_setup_gpio(codec, 0x02); in alc_subsystem_id()
849 alc_setup_gpio(codec, 0x04); in alc_subsystem_id()
853 spec->init_amp = ALC_INIT_DEFAULT; in alc_subsystem_id()
861 if (!(ass & 0x8000)) in alc_subsystem_id()
865 * 12~11: Headphone out -> 00: PortA, 01: PortE, 02: PortD, 03: Resvered in alc_subsystem_id()
867 * 15 : 1 --> enable the function "Mute internal speaker in alc_subsystem_id()
872 tmp = (ass >> 11) & 0x3; /* HP to chassis */ in alc_subsystem_id()
874 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id()
875 spec->gen.autocfg.line_outs)) in alc_subsystem_id()
877 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id()
882 /* Check the validity of ALC subsystem-id
883 * ports contains an array of 4 pin NIDs for port-A, E, D and I */
884 static void alc_ssid_check(struct hda_codec *codec, const hda_nid_t *ports) in alc_ssid_check() argument
886 if (!alc_subsystem_id(codec, ports)) { in alc_ssid_check()
887 struct alc_spec *spec = codec->spec; in alc_ssid_check()
888 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_ssid_check()
889 codec_dbg(codec, in alc_ssid_check()
891 spec->init_amp = ALC_INIT_DEFAULT; in alc_ssid_check()
896 /* inverted digital-mic */
897 static void alc_fixup_inv_dmic(struct hda_codec *codec, in alc_fixup_inv_dmic() argument
900 struct alc_spec *spec = codec->spec; in alc_fixup_inv_dmic()
902 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic()
906 static int alc_build_controls(struct hda_codec *codec) in alc_build_controls() argument
910 err = snd_hda_gen_build_controls(codec); in alc_build_controls()
911 if (err < 0) in alc_build_controls()
914 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_BUILD); in alc_build_controls()
915 return 0; in alc_build_controls()
923 static void alc_pre_init(struct hda_codec *codec) in alc_pre_init() argument
925 alc_fill_eapd_coef(codec); in alc_pre_init()
928 #define is_s3_resume(codec) \ argument
929 ((codec)->core.dev.power.power_state.event == PM_EVENT_RESUME)
930 #define is_s4_resume(codec) \ argument
931 ((codec)->core.dev.power.power_state.event == PM_EVENT_RESTORE)
932 #define is_s4_suspend(codec) \ argument
933 ((codec)->core.dev.power.power_state.event == PM_EVENT_FREEZE)
935 static int alc_init(struct hda_codec *codec) in alc_init() argument
937 struct alc_spec *spec = codec->spec; in alc_init()
940 if (is_s4_resume(codec)) in alc_init()
941 alc_pre_init(codec); in alc_init()
943 if (spec->init_hook) in alc_init()
944 spec->init_hook(codec); in alc_init()
946 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init()
947 snd_hda_gen_init(codec); in alc_init()
948 alc_fix_pll(codec); in alc_init()
949 alc_auto_init_amp(codec, spec->init_amp); in alc_init()
950 snd_hda_apply_verbs(codec); /* apply verbs here after own init */ in alc_init()
952 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); in alc_init()
954 return 0; in alc_init()
960 static void alc_free(struct hda_codec *codec) in alc_free() argument
962 struct alc_spec *spec = codec->spec; in alc_free()
965 hda_component_manager_free(&spec->comps, &comp_master_ops); in alc_free()
967 snd_hda_gen_free(codec); in alc_free()
970 static inline void alc_shutup(struct hda_codec *codec) in alc_shutup() argument
972 struct alc_spec *spec = codec->spec; in alc_shutup()
974 if (!snd_hda_get_bool_hint(codec, "shutup")) in alc_shutup()
977 if (spec && spec->shutup) in alc_shutup()
978 spec->shutup(codec); in alc_shutup()
980 alc_shutup_pins(codec); in alc_shutup()
983 static void alc_power_eapd(struct hda_codec *codec) in alc_power_eapd() argument
985 alc_auto_setup_eapd(codec, false); in alc_power_eapd()
988 static int alc_suspend(struct hda_codec *codec) in alc_suspend() argument
990 struct alc_spec *spec = codec->spec; in alc_suspend()
991 alc_shutup(codec); in alc_suspend()
992 if (spec && spec->power_hook) in alc_suspend()
993 spec->power_hook(codec); in alc_suspend()
994 return 0; in alc_suspend()
997 static int alc_resume(struct hda_codec *codec) in alc_resume() argument
999 struct alc_spec *spec = codec->spec; in alc_resume()
1001 if (!spec->no_depop_delay) in alc_resume()
1003 codec->patch_ops.init(codec); in alc_resume()
1004 snd_hda_regmap_sync(codec); in alc_resume()
1005 hda_call_check_power_status(codec, 0x01); in alc_resume()
1006 return 0; in alc_resume()
1023 #define alc_codec_rename(codec, name) snd_hda_codec_set_name(codec, name) argument
1043 { 0x10ec0221, 0xf00f, 0x1003, "ALC231" },
1044 { 0x10ec0269, 0xfff0, 0x3010, "ALC277" },
1045 { 0x10ec0269, 0xf0f0, 0x2010, "ALC259" },
1046 { 0x10ec0269, 0xf0f0, 0x3010, "ALC258" },
1047 { 0x10ec0269, 0x00f0, 0x0010, "ALC269VB" },
1048 { 0x10ec0269, 0xffff, 0xa023, "ALC259" },
1049 { 0x10ec0269, 0xffff, 0x6023, "ALC281X" },
1050 { 0x10ec0269, 0x00f0, 0x0020, "ALC269VC" },
1051 { 0x10ec0269, 0x00f0, 0x0030, "ALC269VD" },
1052 { 0x10ec0662, 0xffff, 0x4020, "ALC656" },
1053 { 0x10ec0887, 0x00f0, 0x0030, "ALC887-VD" },
1054 { 0x10ec0888, 0x00f0, 0x0030, "ALC888-VD" },
1055 { 0x10ec0888, 0xf0f0, 0x3020, "ALC886" },
1056 { 0x10ec0899, 0x2000, 0x2000, "ALC899" },
1057 { 0x10ec0892, 0xffff, 0x8020, "ALC661" },
1058 { 0x10ec0892, 0xffff, 0x8011, "ALC661" },
1059 { 0x10ec0892, 0xffff, 0x4011, "ALC656" },
1064 { 0x10ec0280, 0x1028, 0, "ALC3220" },
1065 { 0x10ec0282, 0x1028, 0, "ALC3221" },
1066 { 0x10ec0283, 0x1028, 0, "ALC3223" },
1067 { 0x10ec0288, 0x1028, 0, "ALC3263" },
1068 { 0x10ec0292, 0x1028, 0, "ALC3226" },
1069 { 0x10ec0293, 0x1028, 0, "ALC3235" },
1070 { 0x10ec0255, 0x1028, 0, "ALC3234" },
1071 { 0x10ec0668, 0x1028, 0, "ALC3661" },
1072 { 0x10ec0275, 0x1028, 0, "ALC3260" },
1073 { 0x10ec0899, 0x1028, 0, "ALC3861" },
1074 { 0x10ec0298, 0x1028, 0, "ALC3266" },
1075 { 0x10ec0236, 0x1028, 0, "ALC3204" },
1076 { 0x10ec0256, 0x1028, 0, "ALC3246" },
1077 { 0x10ec0225, 0x1028, 0, "ALC3253" },
1078 { 0x10ec0295, 0x1028, 0, "ALC3254" },
1079 { 0x10ec0299, 0x1028, 0, "ALC3271" },
1080 { 0x10ec0670, 0x1025, 0, "ALC669X" },
1081 { 0x10ec0676, 0x1025, 0, "ALC679X" },
1082 { 0x10ec0282, 0x1043, 0, "ALC3229" },
1083 { 0x10ec0233, 0x1043, 0, "ALC3236" },
1084 { 0x10ec0280, 0x103c, 0, "ALC3228" },
1085 { 0x10ec0282, 0x103c, 0, "ALC3227" },
1086 { 0x10ec0286, 0x103c, 0, "ALC3242" },
1087 { 0x10ec0290, 0x103c, 0, "ALC3241" },
1088 { 0x10ec0668, 0x103c, 0, "ALC3662" },
1089 { 0x10ec0283, 0x17aa, 0, "ALC3239" },
1090 { 0x10ec0292, 0x17aa, 0, "ALC3232" },
1094 static int alc_codec_rename_from_preset(struct hda_codec *codec) in alc_codec_rename_from_preset() argument
1099 for (p = rename_tbl; p->vendor_id; p++) { in alc_codec_rename_from_preset()
1100 if (p->vendor_id != codec->core.vendor_id) in alc_codec_rename_from_preset()
1102 if ((alc_get_coef0(codec) & p->coef_mask) == p->coef_bits) in alc_codec_rename_from_preset()
1103 return alc_codec_rename(codec, p->name); in alc_codec_rename_from_preset()
1106 if (!codec->bus->pci) in alc_codec_rename_from_preset()
1107 return 0; in alc_codec_rename_from_preset()
1108 for (q = rename_pci_tbl; q->codec_vendor_id; q++) { in alc_codec_rename_from_preset()
1109 if (q->codec_vendor_id != codec->core.vendor_id) in alc_codec_rename_from_preset()
1111 if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) in alc_codec_rename_from_preset()
1113 if (!q->pci_subdevice || in alc_codec_rename_from_preset()
1114 q->pci_subdevice == codec->bus->pci->subsystem_device) in alc_codec_rename_from_preset()
1115 return alc_codec_rename(codec, q->name); in alc_codec_rename_from_preset()
1118 return 0; in alc_codec_rename_from_preset()
1123 * Digital-beep handlers
1129 HDA_CODEC_VOLUME("Beep Playback Volume", 0, 0, HDA_INPUT),
1130 HDA_CODEC_MUTE_BEEP("Beep Playback Switch", 0, 0, HDA_INPUT),
1141 for (i = 0; i < ARRAY_SIZE(alc_beep_mixer); i++) { in set_beep_amp()
1142 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
1145 return -ENOMEM; in set_beep_amp()
1146 knew->private_value = beep_amp; in set_beep_amp()
1148 return 0; in set_beep_amp()
1152 SND_PCI_QUIRK(0x1043, 0x103c, "ASUS", 1),
1153 SND_PCI_QUIRK(0x1043, 0x115d, "ASUS", 1),
1154 SND_PCI_QUIRK(0x1043, 0x829f, "ASUS", 1),
1155 SND_PCI_QUIRK(0x1043, 0x8376, "EeePC", 1),
1156 SND_PCI_QUIRK(0x1043, 0x83ce, "EeePC", 1),
1157 SND_PCI_QUIRK(0x1043, 0x831a, "EeePC", 1),
1158 SND_PCI_QUIRK(0x1043, 0x834a, "EeePC", 1),
1159 SND_PCI_QUIRK(0x1458, 0xa002, "GA-MA790X", 1),
1160 SND_PCI_QUIRK(0x8086, 0xd613, "Intel", 1),
1161 /* denylist -- no beep available */
1162 SND_PCI_QUIRK(0x17aa, 0x309e, "Lenovo ThinkCentre M73", 0),
1163 SND_PCI_QUIRK(0x17aa, 0x30a3, "Lenovo ThinkCentre M93", 0),
1167 static inline int has_cdefine_beep(struct hda_codec *codec) in has_cdefine_beep() argument
1169 struct alc_spec *spec = codec->spec; in has_cdefine_beep()
1171 q = snd_pci_quirk_lookup(codec->bus->pci, beep_allow_list); in has_cdefine_beep()
1173 return q->value; in has_cdefine_beep()
1174 return spec->cdefine.enable_pcbeep; in has_cdefine_beep()
1177 #define set_beep_amp(spec, nid, idx, dir) 0
1178 #define has_cdefine_beep(codec) 0 argument
1182 /* return 1 if successful, 0 if the proper config is not found,
1185 static int alc_parse_auto_config(struct hda_codec *codec, in alc_parse_auto_config() argument
1189 struct alc_spec *spec = codec->spec; in alc_parse_auto_config()
1190 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_parse_auto_config()
1193 err = snd_hda_parse_pin_defcfg(codec, cfg, ignore_nids, in alc_parse_auto_config()
1194 spec->parse_flags); in alc_parse_auto_config()
1195 if (err < 0) in alc_parse_auto_config()
1199 alc_ssid_check(codec, ssid_nids); in alc_parse_auto_config()
1201 err = snd_hda_gen_parse_auto_config(codec, cfg); in alc_parse_auto_config()
1202 if (err < 0) in alc_parse_auto_config()
1209 static int alc_alloc_spec(struct hda_codec *codec, hda_nid_t mixer_nid) in alc_alloc_spec() argument
1215 return -ENOMEM; in alc_alloc_spec()
1216 codec->spec = spec; in alc_alloc_spec()
1217 snd_hda_gen_spec_init(&spec->gen); in alc_alloc_spec()
1218 spec->gen.mixer_nid = mixer_nid; in alc_alloc_spec()
1219 spec->gen.own_eapd_ctl = 1; in alc_alloc_spec()
1220 codec->single_adc_amp = 1; in alc_alloc_spec()
1221 /* FIXME: do we need this for all Realtek codec models? */ in alc_alloc_spec()
1222 codec->spdif_status_reset = 1; in alc_alloc_spec()
1223 codec->forced_resume = 1; in alc_alloc_spec()
1224 codec->patch_ops = alc_patch_ops; in alc_alloc_spec()
1225 mutex_init(&spec->coef_mutex); in alc_alloc_spec()
1227 err = alc_codec_rename_from_preset(codec); in alc_alloc_spec()
1228 if (err < 0) { in alc_alloc_spec()
1232 return 0; in alc_alloc_spec()
1235 static int alc880_parse_auto_config(struct hda_codec *codec) in alc880_parse_auto_config() argument
1237 static const hda_nid_t alc880_ignore[] = { 0x1d, 0 }; in alc880_parse_auto_config()
1238 static const hda_nid_t alc880_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc880_parse_auto_config()
1239 return alc_parse_auto_config(codec, alc880_ignore, alc880_ssids); in alc880_parse_auto_config()
1243 * ALC880 fix-ups
1273 /* enable the volume-knob widget support on NID 0x21 */
1274 static void alc880_fixup_vol_knob(struct hda_codec *codec, in alc880_fixup_vol_knob() argument
1278 snd_hda_jack_detect_enable_callback(codec, 0x21, in alc880_fixup_vol_knob()
1294 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
1295 { 0x20, AC_VERB_SET_PROC_COEF, 0x3060 },
1305 { 0x16, 0x411111f0 },
1306 { 0x18, 0x411111f0 },
1307 { 0x1a, 0x411111f0 },
1314 { 0x1a, 0x0181344f }, /* line-in */
1315 { 0x1b, 0x0321403f }, /* headphone */
1323 { 0x17, 0x411111f0 },
1333 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
1334 { 0x20, AC_VERB_SET_PROC_COEF, 0x3060 },
1342 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
1343 { 0x20, AC_VERB_SET_PROC_COEF, 0x3070 },
1357 { 0x14, 0x0121401f }, /* HP */
1358 { 0x15, 0x99030120 }, /* speaker */
1359 { 0x16, 0x99030130 }, /* bass speaker */
1360 { 0x17, 0x411111f0 }, /* N/A */
1361 { 0x18, 0x411111f0 }, /* N/A */
1362 { 0x19, 0x01a19950 }, /* mic-in */
1363 { 0x1a, 0x411111f0 }, /* N/A */
1364 { 0x1b, 0x411111f0 }, /* N/A */
1365 { 0x1c, 0x411111f0 }, /* N/A */
1366 { 0x1d, 0x411111f0 }, /* N/A */
1367 { 0x1e, 0x01454140 }, /* SPDIF out */
1377 { 0x14, 0x0121401f }, /* HP */
1378 { 0x15, 0x99030120 }, /* speaker */
1379 { 0x16, 0x411111f0 }, /* N/A */
1380 { 0x17, 0x411111f0 }, /* N/A */
1381 { 0x18, 0x411111f0 }, /* N/A */
1382 { 0x19, 0x01a19950 }, /* mic-in */
1383 { 0x1a, 0x411111f0 }, /* N/A */
1384 { 0x1b, 0x411111f0 }, /* N/A */
1385 { 0x1c, 0x411111f0 }, /* N/A */
1386 { 0x1d, 0x411111f0 }, /* N/A */
1387 { 0x1e, 0x411111f0 }, /* N/A */
1397 { 0x14, 0x0121411f }, /* HP */
1398 { 0x15, 0x99030120 }, /* speaker */
1399 { 0x16, 0x99030130 }, /* bass speaker */
1407 { 0x17, 0x411111f0 },
1408 { 0x19, 0x411111f0 },
1409 { 0x1b, 0x411111f0 },
1410 { 0x1f, 0x411111f0 },
1418 { 0x14, 0x99030120 }, /* speaker */
1419 { 0x15, 0x0121411f }, /* HP */
1420 { 0x16, 0x411111f0 }, /* N/A */
1421 { 0x17, 0x411111f0 }, /* N/A */
1422 { 0x18, 0x01a19950 }, /* mic-in */
1423 { 0x19, 0x411111f0 }, /* N/A */
1424 { 0x1a, 0x01813031 }, /* line-in */
1425 { 0x1b, 0x411111f0 }, /* N/A */
1426 { 0x1c, 0x411111f0 }, /* N/A */
1427 { 0x1d, 0x411111f0 }, /* N/A */
1428 { 0x1e, 0x0144111e }, /* SPDIF */
1436 { 0x14, 0x0121411f }, /* HP */
1437 { 0x15, 0x411111f0 }, /* N/A */
1438 { 0x16, 0x411111f0 }, /* N/A */
1439 { 0x17, 0x411111f0 }, /* N/A */
1440 { 0x18, 0x90a60160 }, /* mic */
1441 { 0x19, 0x411111f0 }, /* N/A */
1442 { 0x1a, 0x411111f0 }, /* N/A */
1443 { 0x1b, 0x411111f0 }, /* N/A */
1444 { 0x1c, 0x411111f0 }, /* N/A */
1445 { 0x1d, 0x411111f0 }, /* N/A */
1446 { 0x1e, 0xb743111e }, /* SPDIF out */
1455 { 0x14, 0x01014010 }, /* line-out */
1456 { 0x15, 0x411111f0 }, /* N/A */
1457 { 0x16, 0x411111f0 }, /* N/A */
1458 { 0x17, 0x411111f0 }, /* N/A */
1459 { 0x18, 0x01a19c30 }, /* mic-in */
1460 { 0x19, 0x0121411f }, /* HP */
1461 { 0x1a, 0x01813031 }, /* line-in */
1462 { 0x1b, 0x02a19c40 }, /* front-mic */
1463 { 0x1c, 0x411111f0 }, /* N/A */
1464 { 0x1d, 0x411111f0 }, /* N/A */
1465 /* 0x1e is filled in below */
1466 { 0x1f, 0x411111f0 }, /* N/A */
1473 { 0x1e, 0x411111f0 }, /* N/A */
1482 { 0x1e, 0x0144111e }, /* SPDIF */
1491 { 0x14, 0x01014010 }, /* front */
1492 { 0x15, 0x411111f0 }, /* N/A */
1493 { 0x16, 0x01011411 }, /* CLFE */
1494 { 0x17, 0x01016412 }, /* surr */
1495 { 0x18, 0x01a19c30 }, /* mic-in */
1496 { 0x19, 0x0121411f }, /* HP */
1497 { 0x1a, 0x01813031 }, /* line-in */
1498 { 0x1b, 0x02a19c40 }, /* front-mic */
1499 { 0x1c, 0x411111f0 }, /* N/A */
1500 { 0x1d, 0x411111f0 }, /* N/A */
1501 /* 0x1e is filled in below */
1502 { 0x1f, 0x411111f0 }, /* N/A */
1509 { 0x1e, 0x411111f0 }, /* N/A */
1518 { 0x1e, 0x0144111e }, /* SPDIF */
1527 { 0x14, 0x01014010 }, /* front */
1528 { 0x15, 0x01016412 }, /* surr */
1529 { 0x16, 0x01011411 }, /* CLFE */
1530 { 0x17, 0x01012414 }, /* side */
1531 { 0x18, 0x01a19c30 }, /* mic-in */
1532 { 0x19, 0x02a19c40 }, /* front-mic */
1533 { 0x1a, 0x01813031 }, /* line-in */
1534 { 0x1b, 0x0121411f }, /* HP */
1535 { 0x1c, 0x411111f0 }, /* N/A */
1536 { 0x1d, 0x411111f0 }, /* N/A */
1537 /* 0x1e is filled in below */
1538 { 0x1f, 0x411111f0 }, /* N/A */
1545 { 0x1e, 0x411111f0 }, /* N/A */
1554 { 0x1e, 0x0144111e }, /* SPDIF */
1563 { 0x1b, 0x0121401f }, /* HP with jack detect */
1572 SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P", ALC880_FIXUP_W810),
1573 SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_ASUS_W5A),
1574 SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
1575 SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
1576 SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE", ALC880_FIXUP_6ST_AUTOMUTE),
1577 SND_PCI_QUIRK(0x1558, 0x5401, "Clevo GPIO2", ALC880_FIXUP_GPIO2),
1578 SND_PCI_QUIRK_VENDOR(0x1558, "Clevo", ALC880_FIXUP_EAPD_COEF),
1579 SND_PCI_QUIRK(0x1584, 0x9050, "Uniwill", ALC880_FIXUP_UNIWILL_DIG),
1580 SND_PCI_QUIRK(0x1584, 0x9054, "Uniwill", ALC880_FIXUP_F1734),
1581 SND_PCI_QUIRK(0x1584, 0x9070, "Uniwill", ALC880_FIXUP_UNIWILL),
1582 SND_PCI_QUIRK(0x1584, 0x9077, "Uniwill P53", ALC880_FIXUP_VOL_KNOB),
1583 SND_PCI_QUIRK(0x161f, 0x203d, "W810", ALC880_FIXUP_W810),
1584 SND_PCI_QUIRK(0x161f, 0x205d, "Medion Rim 2150", ALC880_FIXUP_MEDION_RIM),
1585 SND_PCI_QUIRK(0x1631, 0xe011, "PB 13201056", ALC880_FIXUP_6ST_AUTOMUTE),
1586 SND_PCI_QUIRK(0x1734, 0x107c, "FSC Amilo M1437", ALC880_FIXUP_FUJITSU),
1587 SND_PCI_QUIRK(0x1734, 0x1094, "FSC Amilo M1451G", ALC880_FIXUP_FUJITSU),
1588 SND_PCI_QUIRK(0x1734, 0x10ac, "FSC AMILO Xi 1526", ALC880_FIXUP_F1734),
1589 SND_PCI_QUIRK(0x1734, 0x10b0, "FSC Amilo Pi1556", ALC880_FIXUP_FUJITSU),
1590 SND_PCI_QUIRK(0x1854, 0x003b, "LG", ALC880_FIXUP_LG),
1591 SND_PCI_QUIRK(0x1854, 0x005f, "LG P1 Express", ALC880_FIXUP_LG),
1592 SND_PCI_QUIRK(0x1854, 0x0068, "LG w1", ALC880_FIXUP_LG),
1593 SND_PCI_QUIRK(0x1854, 0x0077, "LG LW25", ALC880_FIXUP_LG_LW25),
1594 SND_PCI_QUIRK(0x19db, 0x4188, "TCL S700", ALC880_FIXUP_TCL_S700),
1597 * It's not quite sure whether BIOS sets the correct pin-config table
1602 SND_PCI_QUIRK(0x1019, 0xa880, "ECS", ALC880_FIXUP_5ST_DIG),
1603 SND_PCI_QUIRK(0x1019, 0xa884, "Acer APFV", ALC880_FIXUP_6ST),
1604 SND_PCI_QUIRK(0x1025, 0x0070, "ULI", ALC880_FIXUP_3ST_DIG),
1605 SND_PCI_QUIRK(0x1025, 0x0077, "ULI", ALC880_FIXUP_6ST_DIG),
1606 SND_PCI_QUIRK(0x1025, 0x0078, "ULI", ALC880_FIXUP_6ST_DIG),
1607 SND_PCI_QUIRK(0x1025, 0x0087, "ULI", ALC880_FIXUP_6ST_DIG),
1608 SND_PCI_QUIRK(0x1025, 0xe309, "ULI", ALC880_FIXUP_3ST_DIG),
1609 SND_PCI_QUIRK(0x1025, 0xe310, "ULI", ALC880_FIXUP_3ST),
1610 SND_PCI_QUIRK(0x1039, 0x1234, NULL, ALC880_FIXUP_6ST_DIG),
1611 SND_PCI_QUIRK(0x104d, 0x81a0, "Sony", ALC880_FIXUP_3ST),
1612 SND_PCI_QUIRK(0x104d, 0x81d6, "Sony", ALC880_FIXUP_3ST),
1613 SND_PCI_QUIRK(0x107b, 0x3032, "Gateway", ALC880_FIXUP_5ST),
1614 SND_PCI_QUIRK(0x107b, 0x3033, "Gateway", ALC880_FIXUP_5ST),
1615 SND_PCI_QUIRK(0x107b, 0x4039, "Gateway", ALC880_FIXUP_5ST),
1616 SND_PCI_QUIRK(0x1297, 0xc790, "Shuttle ST20G5", ALC880_FIXUP_6ST_DIG),
1617 SND_PCI_QUIRK(0x1458, 0xa102, "Gigabyte K8", ALC880_FIXUP_6ST_DIG),
1618 SND_PCI_QUIRK(0x1462, 0x1150, "MSI", ALC880_FIXUP_6ST_DIG),
1619 SND_PCI_QUIRK(0x1509, 0x925d, "FIC P4M", ALC880_FIXUP_6ST_DIG),
1620 SND_PCI_QUIRK(0x1565, 0x8202, "Biostar", ALC880_FIXUP_5ST_DIG),
1621 SND_PCI_QUIRK(0x1695, 0x400d, "EPoX", ALC880_FIXUP_5ST_DIG),
1622 SND_PCI_QUIRK(0x1695, 0x4012, "EPox EP-5LDA", ALC880_FIXUP_5ST_DIG),
1623 SND_PCI_QUIRK(0x2668, 0x8086, NULL, ALC880_FIXUP_6ST_DIG), /* broken BIOS */
1624 SND_PCI_QUIRK(0x8086, 0x2668, NULL, ALC880_FIXUP_6ST_DIG),
1625 SND_PCI_QUIRK(0x8086, 0xa100, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1626 SND_PCI_QUIRK(0x8086, 0xd400, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1627 SND_PCI_QUIRK(0x8086, 0xd401, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1628 SND_PCI_QUIRK(0x8086, 0xd402, "Intel mobo", ALC880_FIXUP_3ST_DIG),
1629 SND_PCI_QUIRK(0x8086, 0xe224, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1630 SND_PCI_QUIRK(0x8086, 0xe305, "Intel mobo", ALC880_FIXUP_3ST_DIG),
1631 SND_PCI_QUIRK(0x8086, 0xe308, "Intel mobo", ALC880_FIXUP_3ST_DIG),
1632 SND_PCI_QUIRK(0x8086, 0xe400, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1633 SND_PCI_QUIRK(0x8086, 0xe401, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1634 SND_PCI_QUIRK(0x8086, 0xe402, "Intel mobo", ALC880_FIXUP_5ST_DIG),
1636 SND_PCI_QUIRK_VENDOR(0x8086, "Intel mobo", ALC880_FIXUP_3ST),
1637 SND_PCI_QUIRK(0xa0a0, 0x0560, "AOpen i915GMm-HFS", ALC880_FIXUP_5ST_DIG),
1638 SND_PCI_QUIRK(0xe803, 0x1019, NULL, ALC880_FIXUP_6ST_DIG),
1644 {.id = ALC880_FIXUP_3ST_DIG, .name = "3stack-digout"},
1646 {.id = ALC880_FIXUP_5ST_DIG, .name = "5stack-digout"},
1648 {.id = ALC880_FIXUP_6ST_DIG, .name = "6stack-digout"},
1649 {.id = ALC880_FIXUP_6ST_AUTOMUTE, .name = "6stack-automute"},
1657 static int patch_alc880(struct hda_codec *codec) in patch_alc880() argument
1662 err = alc_alloc_spec(codec, 0x0b); in patch_alc880()
1663 if (err < 0) in patch_alc880()
1666 spec = codec->spec; in patch_alc880()
1667 spec->gen.need_dac_fix = 1; in patch_alc880()
1668 spec->gen.beep_nid = 0x01; in patch_alc880()
1670 codec->patch_ops.unsol_event = alc880_unsol_event; in patch_alc880()
1672 alc_pre_init(codec); in patch_alc880()
1674 snd_hda_pick_fixup(codec, alc880_fixup_models, alc880_fixup_tbl, in patch_alc880()
1676 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc880()
1679 err = alc880_parse_auto_config(codec); in patch_alc880()
1680 if (err < 0) in patch_alc880()
1683 if (!spec->gen.no_analog) { in patch_alc880()
1684 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc880()
1685 if (err < 0) in patch_alc880()
1689 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc880()
1691 return 0; in patch_alc880()
1694 alc_free(codec); in patch_alc880()
1702 static int alc260_parse_auto_config(struct hda_codec *codec) in alc260_parse_auto_config() argument
1704 static const hda_nid_t alc260_ignore[] = { 0x17, 0 }; in alc260_parse_auto_config()
1705 static const hda_nid_t alc260_ssids[] = { 0x10, 0x15, 0x0f, 0 }; in alc260_parse_auto_config()
1706 return alc_parse_auto_config(codec, alc260_ignore, alc260_ssids); in alc260_parse_auto_config()
1726 static void alc260_gpio1_automute(struct hda_codec *codec) in alc260_gpio1_automute() argument
1728 struct alc_spec *spec = codec->spec; in alc260_gpio1_automute()
1730 alc_update_gpio_data(codec, 0x01, spec->gen.hp_jack_present); in alc260_gpio1_automute()
1733 static void alc260_fixup_gpio1_toggle(struct hda_codec *codec, in alc260_fixup_gpio1_toggle() argument
1736 struct alc_spec *spec = codec->spec; in alc260_fixup_gpio1_toggle()
1741 spec->gen.automute_hook = alc260_gpio1_automute; in alc260_fixup_gpio1_toggle()
1742 spec->gen.detect_hp = 1; in alc260_fixup_gpio1_toggle()
1743 spec->gen.automute_speaker = 1; in alc260_fixup_gpio1_toggle()
1744 spec->gen.autocfg.hp_pins[0] = 0x0f; /* copy it for automute */ in alc260_fixup_gpio1_toggle()
1745 snd_hda_jack_detect_enable_callback(codec, 0x0f, in alc260_fixup_gpio1_toggle()
1747 alc_setup_gpio(codec, 0x01); in alc260_fixup_gpio1_toggle()
1751 static void alc260_fixup_kn1(struct hda_codec *codec, in alc260_fixup_kn1() argument
1754 struct alc_spec *spec = codec->spec; in alc260_fixup_kn1()
1756 { 0x0f, 0x02214000 }, /* HP/speaker */ in alc260_fixup_kn1()
1757 { 0x12, 0x90a60160 }, /* int mic */ in alc260_fixup_kn1()
1758 { 0x13, 0x02a19000 }, /* ext mic */ in alc260_fixup_kn1()
1759 { 0x18, 0x01446000 }, /* SPDIF out */ in alc260_fixup_kn1()
1761 { 0x10, 0x411111f0 }, in alc260_fixup_kn1()
1762 { 0x11, 0x411111f0 }, in alc260_fixup_kn1()
1763 { 0x14, 0x411111f0 }, in alc260_fixup_kn1()
1764 { 0x15, 0x411111f0 }, in alc260_fixup_kn1()
1765 { 0x16, 0x411111f0 }, in alc260_fixup_kn1()
1766 { 0x17, 0x411111f0 }, in alc260_fixup_kn1()
1767 { 0x19, 0x411111f0 }, in alc260_fixup_kn1()
1773 snd_hda_apply_pincfgs(codec, pincfgs); in alc260_fixup_kn1()
1774 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_kn1()
1779 static void alc260_fixup_fsc_s7020(struct hda_codec *codec, in alc260_fixup_fsc_s7020() argument
1782 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020()
1784 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_fsc_s7020()
1787 static void alc260_fixup_fsc_s7020_jwse(struct hda_codec *codec, in alc260_fixup_fsc_s7020_jwse() argument
1790 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020_jwse()
1792 spec->gen.add_jack_modes = 1; in alc260_fixup_fsc_s7020_jwse()
1793 spec->gen.hp_mic = 1; in alc260_fixup_fsc_s7020_jwse()
1801 { 0x11, 0x90130110 }, /* speaker */
1808 { 0x0f, 0x01214000 }, /* HP */
1815 { 0x1a, AC_VERB_SET_COEF_INDEX, 0x07 },
1816 { 0x1a, AC_VERB_SET_PROC_COEF, 0x3040 },
1833 { 0x1a, AC_VERB_SET_COEF_INDEX, 0x07 },
1834 { 0x1a, AC_VERB_SET_PROC_COEF, 0x3050 },
1864 { 0x0f, 0x01211020 },
1865 { 0x10, 0x0001003f },
1866 { 0x11, 0x411111f0 },
1867 { 0x12, 0x01a15930 },
1868 { 0x13, 0x411111f0 },
1869 { 0x14, 0x411111f0 },
1870 { 0x15, 0x411111f0 },
1871 { 0x16, 0x411111f0 },
1872 { 0x17, 0x411111f0 },
1873 { 0x18, 0x411111f0 },
1874 { 0x19, 0x411111f0 },
1881 SND_PCI_QUIRK(0x1025, 0x007b, "Acer C20x", ALC260_FIXUP_GPIO1),
1882 SND_PCI_QUIRK(0x1025, 0x007f, "Acer Aspire 9500", ALC260_FIXUP_COEF),
1883 SND_PCI_QUIRK(0x1025, 0x008f, "Acer", ALC260_FIXUP_GPIO1),
1884 SND_PCI_QUIRK(0x103c, 0x280a, "HP dc5750", ALC260_FIXUP_HP_DC5750),
1885 SND_PCI_QUIRK(0x103c, 0x30ba, "HP Presario B1900", ALC260_FIXUP_HP_B1900),
1886 SND_PCI_QUIRK(0x104d, 0x81bb, "Sony VAIO", ALC260_FIXUP_VAIO_PINS),
1887 SND_PCI_QUIRK(0x104d, 0x81e2, "Sony VAIO TX", ALC260_FIXUP_HP_PIN_0F),
1888 SND_PCI_QUIRK(0x10cf, 0x1326, "FSC LifeBook S7020", ALC260_FIXUP_FSC_S7020),
1889 SND_PCI_QUIRK(0x1509, 0x4540, "Favorit 100XS", ALC260_FIXUP_GPIO1),
1890 SND_PCI_QUIRK(0x152d, 0x0729, "Quanta KN1", ALC260_FIXUP_KN1),
1891 SND_PCI_QUIRK(0x161f, 0x2057, "Replacer 672V", ALC260_FIXUP_REPLACER),
1892 SND_PCI_QUIRK(0x1631, 0xc017, "PB V7900", ALC260_FIXUP_COEF),
1900 {.id = ALC260_FIXUP_FSC_S7020_JWSE, .name = "fujitsu-jwse"},
1906 static int patch_alc260(struct hda_codec *codec) in patch_alc260() argument
1911 err = alc_alloc_spec(codec, 0x07); in patch_alc260()
1912 if (err < 0) in patch_alc260()
1915 spec = codec->spec; in patch_alc260()
1920 spec->gen.prefer_hp_amp = 1; in patch_alc260()
1921 spec->gen.beep_nid = 0x01; in patch_alc260()
1923 spec->shutup = alc_eapd_shutup; in patch_alc260()
1925 alc_pre_init(codec); in patch_alc260()
1927 snd_hda_pick_fixup(codec, alc260_fixup_models, alc260_fixup_tbl, in patch_alc260()
1929 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc260()
1932 err = alc260_parse_auto_config(codec); in patch_alc260()
1933 if (err < 0) in patch_alc260()
1936 if (!spec->gen.no_analog) { in patch_alc260()
1937 err = set_beep_amp(spec, 0x07, 0x05, HDA_INPUT); in patch_alc260()
1938 if (err < 0) in patch_alc260()
1942 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc260()
1944 return 0; in patch_alc260()
1947 alc_free(codec); in patch_alc260()
1958 * 6-channel independent captures.
1960 * In addition, an independent DAC for the multi-playback (not used in this
2012 static void alc889_fixup_coef(struct hda_codec *codec, in alc889_fixup_coef() argument
2017 alc_update_coef_idx(codec, 7, 0, 0x2030); in alc889_fixup_coef()
2021 static void alc885_fixup_macpro_gpio(struct hda_codec *codec, in alc885_fixup_macpro_gpio() argument
2024 struct alc_spec *spec = codec->spec; in alc885_fixup_macpro_gpio()
2026 spec->gpio_write_delay = true; in alc885_fixup_macpro_gpio()
2027 alc_fixup_gpio3(codec, fix, action); in alc885_fixup_macpro_gpio()
2034 static void alc889_fixup_dac_route(struct hda_codec *codec, in alc889_fixup_dac_route() argument
2039 static const hda_nid_t conn1[] = { 0x0c, 0x0d }; in alc889_fixup_dac_route()
2040 static const hda_nid_t conn2[] = { 0x0e, 0x0f }; in alc889_fixup_dac_route()
2041 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); in alc889_fixup_dac_route()
2042 snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn1), conn1); in alc889_fixup_dac_route()
2043 snd_hda_override_conn_list(codec, 0x18, ARRAY_SIZE(conn2), conn2); in alc889_fixup_dac_route()
2044 snd_hda_override_conn_list(codec, 0x1a, ARRAY_SIZE(conn2), conn2); in alc889_fixup_dac_route()
2047 static const hda_nid_t conn[] = { 0x0c, 0x0d, 0x0e, 0x0f, 0x26 }; in alc889_fixup_dac_route()
2048 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn), conn); in alc889_fixup_dac_route()
2049 snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn), conn); in alc889_fixup_dac_route()
2050 snd_hda_override_conn_list(codec, 0x18, ARRAY_SIZE(conn), conn); in alc889_fixup_dac_route()
2051 snd_hda_override_conn_list(codec, 0x1a, ARRAY_SIZE(conn), conn); in alc889_fixup_dac_route()
2056 static void alc889_fixup_mbp_vref(struct hda_codec *codec, in alc889_fixup_mbp_vref() argument
2059 static const hda_nid_t nids[] = { 0x14, 0x15, 0x19 }; in alc889_fixup_mbp_vref()
2060 struct alc_spec *spec = codec->spec; in alc889_fixup_mbp_vref()
2065 for (i = 0; i < ARRAY_SIZE(nids); i++) { in alc889_fixup_mbp_vref()
2066 unsigned int val = snd_hda_codec_get_pincfg(codec, nids[i]); in alc889_fixup_mbp_vref()
2069 val = snd_hda_codec_get_pin_target(codec, nids[i]); in alc889_fixup_mbp_vref()
2071 snd_hda_set_pin_ctl(codec, nids[i], val); in alc889_fixup_mbp_vref()
2072 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mbp_vref()
2077 static void alc889_fixup_mac_pins(struct hda_codec *codec, in alc889_fixup_mac_pins() argument
2080 struct alc_spec *spec = codec->spec; in alc889_fixup_mac_pins()
2083 for (i = 0; i < num_nids; i++) { in alc889_fixup_mac_pins()
2085 val = snd_hda_codec_get_pin_target(codec, nids[i]); in alc889_fixup_mac_pins()
2087 snd_hda_set_pin_ctl(codec, nids[i], val); in alc889_fixup_mac_pins()
2089 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mac_pins()
2093 static void alc889_fixup_imac91_vref(struct hda_codec *codec, in alc889_fixup_imac91_vref() argument
2096 static const hda_nid_t nids[] = { 0x18, 0x1a }; in alc889_fixup_imac91_vref()
2099 alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); in alc889_fixup_imac91_vref()
2103 static void alc889_fixup_mba11_vref(struct hda_codec *codec, in alc889_fixup_mba11_vref() argument
2106 static const hda_nid_t nids[] = { 0x18 }; in alc889_fixup_mba11_vref()
2109 alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); in alc889_fixup_mba11_vref()
2113 static void alc889_fixup_mba21_vref(struct hda_codec *codec, in alc889_fixup_mba21_vref() argument
2116 static const hda_nid_t nids[] = { 0x18, 0x19 }; in alc889_fixup_mba21_vref()
2119 alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); in alc889_fixup_mba21_vref()
2124 * all-in-one desktop PCs (for example VGC-LN51JGB) through DAC 0x05
2126 static void alc882_fixup_no_primary_hp(struct hda_codec *codec, in alc882_fixup_no_primary_hp() argument
2129 struct alc_spec *spec = codec->spec; in alc882_fixup_no_primary_hp()
2131 spec->gen.no_primary_hp = 1; in alc882_fixup_no_primary_hp()
2132 spec->gen.no_multi_io = 1; in alc882_fixup_no_primary_hp()
2136 static void alc_fixup_bass_chmap(struct hda_codec *codec,
2139 /* For dual-codec configuration, we need to disable some features to avoid
2142 static void alc_fixup_dual_codecs(struct hda_codec *codec, in alc_fixup_dual_codecs() argument
2145 struct alc_spec *spec = codec->spec; in alc_fixup_dual_codecs()
2150 spec->gen.suppress_vmaster = 1; in alc_fixup_dual_codecs()
2151 /* auto-mute and auto-mic switch don't work with multiple codecs */ in alc_fixup_dual_codecs()
2152 spec->gen.suppress_auto_mute = 1; in alc_fixup_dual_codecs()
2153 spec->gen.suppress_auto_mic = 1; in alc_fixup_dual_codecs()
2155 spec->gen.mixer_nid = 0; in alc_fixup_dual_codecs()
2157 codec->force_pin_prefix = 1; in alc_fixup_dual_codecs()
2160 static void rename_ctl(struct hda_codec *codec, const char *oldname, in rename_ctl() argument
2165 kctl = snd_hda_find_mixer_ctl(codec, oldname); in rename_ctl()
2167 snd_ctl_rename(codec->card, kctl, newname); in rename_ctl()
2170 static void alc1220_fixup_gb_dual_codecs(struct hda_codec *codec, in alc1220_fixup_gb_dual_codecs() argument
2174 alc_fixup_dual_codecs(codec, fix, action); in alc1220_fixup_gb_dual_codecs()
2178 strcpy(codec->card->longname, "HDAudio-Gigabyte-ALC1220DualCodecs"); in alc1220_fixup_gb_dual_codecs()
2181 /* rename Capture controls depending on the codec */ in alc1220_fixup_gb_dual_codecs()
2182 rename_ctl(codec, "Capture Volume", in alc1220_fixup_gb_dual_codecs()
2183 codec->addr == 0 ? in alc1220_fixup_gb_dual_codecs()
2184 "Rear-Panel Capture Volume" : in alc1220_fixup_gb_dual_codecs()
2185 "Front-Panel Capture Volume"); in alc1220_fixup_gb_dual_codecs()
2186 rename_ctl(codec, "Capture Switch", in alc1220_fixup_gb_dual_codecs()
2187 codec->addr == 0 ? in alc1220_fixup_gb_dual_codecs()
2188 "Rear-Panel Capture Switch" : in alc1220_fixup_gb_dual_codecs()
2189 "Front-Panel Capture Switch"); in alc1220_fixup_gb_dual_codecs()
2194 static void alc1220_fixup_gb_x570(struct hda_codec *codec, in alc1220_fixup_gb_x570() argument
2198 static const hda_nid_t conn1[] = { 0x0c }; in alc1220_fixup_gb_x570()
2200 WRITE_COEF(0x07, 0x03c0), in alc1220_fixup_gb_x570()
2201 WRITE_COEF(0x1a, 0x01c1), in alc1220_fixup_gb_x570()
2202 WRITE_COEF(0x1b, 0x0202), in alc1220_fixup_gb_x570()
2203 WRITE_COEF(0x43, 0x3005), in alc1220_fixup_gb_x570()
2209 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); in alc1220_fixup_gb_x570()
2210 snd_hda_override_conn_list(codec, 0x1b, ARRAY_SIZE(conn1), conn1); in alc1220_fixup_gb_x570()
2213 alc_process_coef_fw(codec, gb_x570_coefs); in alc1220_fixup_gb_x570()
2218 static void alc1220_fixup_clevo_p950(struct hda_codec *codec, in alc1220_fixup_clevo_p950() argument
2222 static const hda_nid_t conn1[] = { 0x0c }; in alc1220_fixup_clevo_p950()
2227 alc_update_coef_idx(codec, 0x7, 0, 0x3c3); in alc1220_fixup_clevo_p950()
2228 /* We therefore want to make sure 0x14 (front headphone) and in alc1220_fixup_clevo_p950()
2229 * 0x1b (speakers) use the stereo DAC 0x02 in alc1220_fixup_clevo_p950()
2231 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); in alc1220_fixup_clevo_p950()
2232 snd_hda_override_conn_list(codec, 0x1b, ARRAY_SIZE(conn1), conn1); in alc1220_fixup_clevo_p950()
2235 static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec,
2238 static void alc1220_fixup_clevo_pb51ed(struct hda_codec *codec, in alc1220_fixup_clevo_pb51ed() argument
2242 alc1220_fixup_clevo_p950(codec, fix, action); in alc1220_fixup_clevo_pb51ed()
2243 alc_fixup_headset_mode_no_hp_mic(codec, fix, action); in alc1220_fixup_clevo_pb51ed()
2246 static void alc887_asus_hp_automute_hook(struct hda_codec *codec, in alc887_asus_hp_automute_hook() argument
2249 struct alc_spec *spec = codec->spec; in alc887_asus_hp_automute_hook()
2252 snd_hda_gen_hp_automute(codec, jack); in alc887_asus_hp_automute_hook()
2254 if (spec->gen.hp_jack_present) in alc887_asus_hp_automute_hook()
2258 snd_hda_set_pin_ctl(codec, 0x19, PIN_HP | vref); in alc887_asus_hp_automute_hook()
2261 static void alc887_fixup_asus_jack(struct hda_codec *codec, in alc887_fixup_asus_jack() argument
2264 struct alc_spec *spec = codec->spec; in alc887_fixup_asus_jack()
2267 snd_hda_set_pin_ctl_cache(codec, 0x1b, PIN_HP); in alc887_fixup_asus_jack()
2268 spec->gen.hp_automute_hook = alc887_asus_hp_automute_hook; in alc887_fixup_asus_jack()
2275 { 0x15, 0x01080104 }, /* side */
2276 { 0x16, 0x01011012 }, /* rear */
2277 { 0x17, 0x01016011 }, /* clfe */
2284 { 0x15, 0x99130112 }, /* rear int speakers */
2285 { 0x16, 0x99130111 }, /* subwoofer */
2292 { 0x19, PIN_VREF50 },
2303 { 0x16, 0x99130110 }, /* fix sequence for CLFE */
2310 { 0x1c, 0x993301f0 }, /* CD */
2317 { 0x1b, 0x02214120 }, /* Front HP jack is flaky, disable jack detect */
2326 { 0x17, 0x90170111 }, /* hidden surround speaker */
2333 { 0x20, AC_VERB_SET_COEF_INDEX, 0x0b },
2334 { 0x20, AC_VERB_SET_PROC_COEF, 0x0838 },
2342 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2343 { 0x20, AC_VERB_SET_PROC_COEF, 0x0068 },
2351 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2352 { 0x20, AC_VERB_SET_PROC_COEF, 0x3060 },
2360 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2361 { 0x20, AC_VERB_SET_PROC_COEF, 0x3070 },
2369 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2370 { 0x20, AC_VERB_SET_PROC_COEF, 0x3050 },
2399 { 0x16, 0x99130111 }, /* CLFE speaker */
2400 { 0x17, 0x99130112 }, /* surround speaker */
2409 { 0x16, 0x99130111 }, /* CLFE speaker */
2410 { 0x1b, 0x99130112 }, /* surround speaker */
2422 /* setting bits 1-5 disables DAC nids 0x02-0x06
2423 * apparently. Init=0x38 */
2424 { 0x20, AC_VERB_SET_COEF_INDEX, 0x03 },
2425 { 0x20, AC_VERB_SET_PROC_COEF, 0x0000 },
2428 * Init=0x4900 */
2429 { 0x20, AC_VERB_SET_COEF_INDEX, 0x08 },
2430 { 0x20, AC_VERB_SET_PROC_COEF, 0x0000 },
2438 * codec replicate the sum signal to both channels,
2441 /* DMIC_CONTROL? Init value = 0x0001 */
2442 { 0x20, AC_VERB_SET_COEF_INDEX, 0x0b },
2443 { 0x20, AC_VERB_SET_PROC_COEF, 0x0003 },
2444 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2445 { 0x20, AC_VERB_SET_PROC_COEF, 0x3050 },
2506 {0x16, 0x99130130}, /* bass speaker */
2535 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
2544 { 0x15, 0x02a14150 }, /* use as headset mic, without its own jack detect */
2545 { 0x19, 0x22219420 },
2558 { 0x18, PIN_VREF50 }, /* rear mic */
2559 { 0x19, PIN_VREF50 }, /* front mic */
2566 { 0x18, PIN_VREF100 }, /* headset mic */
2573 SND_PCI_QUIRK(0x1025, 0x006c, "Acer Aspire 9810", ALC883_FIXUP_ACER_EAPD),
2574 SND_PCI_QUIRK(0x1025, 0x0090, "Acer Aspire", ALC883_FIXUP_ACER_EAPD),
2575 SND_PCI_QUIRK(0x1025, 0x0107, "Acer Aspire", ALC883_FIXUP_ACER_EAPD),
2576 SND_PCI_QUIRK(0x1025, 0x010a, "Acer Ferrari 5000", ALC883_FIXUP_ACER_EAPD),
2577 SND_PCI_QUIRK(0x1025, 0x0110, "Acer Aspire", ALC883_FIXUP_ACER_EAPD),
2578 SND_PCI_QUIRK(0x1025, 0x0112, "Acer Aspire 9303", ALC883_FIXUP_ACER_EAPD),
2579 SND_PCI_QUIRK(0x1025, 0x0121, "Acer Aspire 5920G", ALC883_FIXUP_ACER_EAPD),
2580 SND_PCI_QUIRK(0x1025, 0x013e, "Acer Aspire 4930G",
2582 SND_PCI_QUIRK(0x1025, 0x013f, "Acer Aspire 5930G",
2584 SND_PCI_QUIRK(0x1025, 0x0145, "Acer Aspire 8930G",
2586 SND_PCI_QUIRK(0x1025, 0x0146, "Acer Aspire 6935G",
2588 SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
2590 SND_PCI_QUIRK(0x1025, 0x0155, "Packard-Bell M5120", ALC882_FIXUP_PB_M5210),
2591 SND_PCI_QUIRK(0x1025, 0x015e, "Acer Aspire 6930G",
2593 SND_PCI_QUIRK(0x1025, 0x0166, "Acer Aspire 6530G",
2595 SND_PCI_QUIRK(0x1025, 0x021e, "Acer Aspire 5739G",
2597 SND_PCI_QUIRK(0x1025, 0x0259, "Acer Aspire 5935", ALC889_FIXUP_DAC_ROUTE),
2598 SND_PCI_QUIRK(0x1025, 0x026b, "Acer Aspire 8940G", ALC882_FIXUP_ACER_ASPIRE_8930G),
2599 SND_PCI_QUIRK(0x1025, 0x0296, "Acer Aspire 7736z", ALC882_FIXUP_ACER_ASPIRE_7736),
2600 SND_PCI_QUIRK(0x1043, 0x13c2, "Asus A7M", ALC882_FIXUP_EAPD),
2601 SND_PCI_QUIRK(0x1043, 0x1873, "ASUS W90V", ALC882_FIXUP_ASUS_W90V),
2602 SND_PCI_QUIRK(0x1043, 0x1971, "Asus W2JC", ALC882_FIXUP_ASUS_W2JC),
2603 SND_PCI_QUIRK(0x1043, 0x2390, "Asus D700SA", ALC887_FIXUP_ASUS_HMIC),
2604 SND_PCI_QUIRK(0x1043, 0x835f, "Asus Eee 1601", ALC888_FIXUP_EEE1601),
2605 SND_PCI_QUIRK(0x1043, 0x84bc, "ASUS ET2700", ALC887_FIXUP_ASUS_BASS),
2606 SND_PCI_QUIRK(0x1043, 0x8691, "ASUS ROG Ranger VIII", ALC882_FIXUP_GPIO3),
2607 SND_PCI_QUIRK(0x1043, 0x8797, "ASUS TUF B550M-PLUS", ALCS1200A_FIXUP_MIC_VREF),
2608 SND_PCI_QUIRK(0x104d, 0x9043, "Sony Vaio VGC-LN51JGB", ALC882_FIXUP_NO_PRIMARY_HP),
2609 SND_PCI_QUIRK(0x104d, 0x9044, "Sony VAIO AiO", ALC882_FIXUP_NO_PRIMARY_HP),
2610 SND_PCI_QUIRK(0x104d, 0x9047, "Sony Vaio TT", ALC889_FIXUP_VAIO_TT),
2611 SND_PCI_QUIRK(0x104d, 0x905a, "Sony Vaio Z", ALC882_FIXUP_NO_PRIMARY_HP),
2612 SND_PCI_QUIRK(0x104d, 0x9060, "Sony Vaio VPCL14M1R", ALC882_FIXUP_NO_PRIMARY_HP),
2614 /* All Apple entries are in codec SSIDs */
2615 SND_PCI_QUIRK(0x106b, 0x00a0, "MacBookPro 3,1", ALC889_FIXUP_MBP_VREF),
2616 SND_PCI_QUIRK(0x106b, 0x00a1, "Macbook", ALC889_FIXUP_MBP_VREF),
2617 SND_PCI_QUIRK(0x106b, 0x00a4, "MacbookPro 4,1", ALC889_FIXUP_MBP_VREF),
2618 SND_PCI_QUIRK(0x106b, 0x0c00, "Mac Pro", ALC889_FIXUP_MP11_VREF),
2619 SND_PCI_QUIRK(0x106b, 0x1000, "iMac 24", ALC885_FIXUP_MACPRO_GPIO),
2620 SND_PCI_QUIRK(0x106b, 0x2800, "AppleTV", ALC885_FIXUP_MACPRO_GPIO),
2621 SND_PCI_QUIRK(0x106b, 0x2c00, "MacbookPro rev3", ALC889_FIXUP_MBP_VREF),
2622 SND_PCI_QUIRK(0x106b, 0x3000, "iMac", ALC889_FIXUP_MBP_VREF),
2623 SND_PCI_QUIRK(0x106b, 0x3200, "iMac 7,1 Aluminum", ALC882_FIXUP_EAPD),
2624 SND_PCI_QUIRK(0x106b, 0x3400, "MacBookAir 1,1", ALC889_FIXUP_MBA11_VREF),
2625 SND_PCI_QUIRK(0x106b, 0x3500, "MacBookAir 2,1", ALC889_FIXUP_MBA21_VREF),
2626 SND_PCI_QUIRK(0x106b, 0x3600, "Macbook 3,1", ALC889_FIXUP_MBP_VREF),
2627 SND_PCI_QUIRK(0x106b, 0x3800, "MacbookPro 4,1", ALC889_FIXUP_MBP_VREF),
2628 SND_PCI_QUIRK(0x106b, 0x3e00, "iMac 24 Aluminum", ALC885_FIXUP_MACPRO_GPIO),
2629 SND_PCI_QUIRK(0x106b, 0x3f00, "Macbook 5,1", ALC889_FIXUP_IMAC91_VREF),
2630 SND_PCI_QUIRK(0x106b, 0x4000, "MacbookPro 5,1", ALC889_FIXUP_IMAC91_VREF),
2631 SND_PCI_QUIRK(0x106b, 0x4100, "Macmini 3,1", ALC889_FIXUP_IMAC91_VREF),
2632 SND_PCI_QUIRK(0x106b, 0x4200, "Mac Pro 4,1/5,1", ALC889_FIXUP_MP41_VREF),
2633 SND_PCI_QUIRK(0x106b, 0x4300, "iMac 9,1", ALC889_FIXUP_IMAC91_VREF),
2634 SND_PCI_QUIRK(0x106b, 0x4600, "MacbookPro 5,2", ALC889_FIXUP_IMAC91_VREF),
2635 SND_PCI_QUIRK(0x106b, 0x4900, "iMac 9,1 Aluminum", ALC889_FIXUP_IMAC91_VREF),
2636 SND_PCI_QUIRK(0x106b, 0x4a00, "Macbook 5,2", ALC889_FIXUP_MBA11_VREF),
2638 SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC882_FIXUP_EAPD),
2639 SND_PCI_QUIRK(0x10ec, 0x12d8, "iBase Elo Touch", ALC888VD_FIXUP_MIC_100VREF),
2640 SND_PCI_QUIRK(0x13fe, 0x1009, "Advantech MIT-W101", ALC886_FIXUP_EAPD),
2641 SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3/Z87X-UD3H", ALC889_FIXUP_FRONT_HP_NO_PRESENCE),
2642 SND_PCI_QUIRK(0x1458, 0xa0b8, "Gigabyte AZ370-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
2643 SND_PCI_QUIRK(0x1458, 0xa0cd, "Gigabyte X570 Aorus Master", ALC1220_FIXUP_GB_X570),
2644 SND_PCI_QUIRK(0x1458, 0xa0ce, "Gigabyte X570 Aorus Xtreme", ALC1220_FIXUP_GB_X570),
2645 SND_PCI_QUIRK(0x1458, 0xa0d5, "Gigabyte X570S Aorus Master", ALC1220_FIXUP_GB_X570),
2646 SND_PCI_QUIRK(0x1462, 0x11f7, "MSI-GE63", ALC1220_FIXUP_CLEVO_P950),
2647 SND_PCI_QUIRK(0x1462, 0x1228, "MSI-GP63", ALC1220_FIXUP_CLEVO_P950),
2648 SND_PCI_QUIRK(0x1462, 0x1229, "MSI-GP73", ALC1220_FIXUP_CLEVO_P950),
2649 SND_PCI_QUIRK(0x1462, 0x1275, "MSI-GL63", ALC1220_FIXUP_CLEVO_P950),
2650 SND_PCI_QUIRK(0x1462, 0x1276, "MSI-GL73", ALC1220_FIXUP_CLEVO_P950),
2651 SND_PCI_QUIRK(0x1462, 0x1293, "MSI-GP65", ALC1220_FIXUP_CLEVO_P950),
2652 SND_PCI_QUIRK(0x1462, 0x7350, "MSI-7350", ALC889_FIXUP_CD),
2653 SND_PCI_QUIRK(0x1462, 0xcc34, "MSI Godlike X570", ALC1220_FIXUP_GB_DUAL_CODECS),
2654 SND_PCI_QUIRK(0x1462, 0xda57, "MSI Z270-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
2655 SND_PCI_QUIRK_VENDOR(0x1462, "MSI", ALC882_FIXUP_GPIO3),
2656 SND_PCI_QUIRK(0x147b, 0x107a, "Abit AW9D-MAX", ALC882_FIXUP_ABIT_AW9D_MAX),
2657 SND_PCI_QUIRK(0x1558, 0x3702, "Clevo X370SN[VW]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2658 SND_PCI_QUIRK(0x1558, 0x50d3, "Clevo PC50[ER][CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2659 SND_PCI_QUIRK(0x1558, 0x5802, "Clevo X58[05]WN[RST]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2660 SND_PCI_QUIRK(0x1558, 0x65d1, "Clevo PB51[ER][CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2661 SND_PCI_QUIRK(0x1558, 0x65d2, "Clevo PB51R[CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2662 SND_PCI_QUIRK(0x1558, 0x65e1, "Clevo PB51[ED][DF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2663 SND_PCI_QUIRK(0x1558, 0x65e5, "Clevo PC50D[PRS](?:-D|-G)?", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2664 SND_PCI_QUIRK(0x1558, 0x65f1, "Clevo PC50HS", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2665 SND_PCI_QUIRK(0x1558, 0x65f5, "Clevo PD50PN[NRT]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2666 SND_PCI_QUIRK(0x1558, 0x66a2, "Clevo PE60RNE", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2667 SND_PCI_QUIRK(0x1558, 0x66a6, "Clevo PE60SN[CDE]-[GS]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2668 SND_PCI_QUIRK(0x1558, 0x67d1, "Clevo PB71[ER][CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2669 SND_PCI_QUIRK(0x1558, 0x67e1, "Clevo PB71[DE][CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2670 SND_PCI_QUIRK(0x1558, 0x67e5, "Clevo PC70D[PRS](?:-D|-G)?", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2671 SND_PCI_QUIRK(0x1558, 0x67f1, "Clevo PC70H[PRS]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2672 SND_PCI_QUIRK(0x1558, 0x67f5, "Clevo PD70PN[NRT]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2673 SND_PCI_QUIRK(0x1558, 0x70d1, "Clevo PC70[ER][CDF]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2674 SND_PCI_QUIRK(0x1558, 0x7714, "Clevo X170SM", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2675 SND_PCI_QUIRK(0x1558, 0x7715, "Clevo X170KM-G", ALC1220_FIXUP_CLEVO_PB51ED),
2676 SND_PCI_QUIRK(0x1558, 0x9501, "Clevo P950HR", ALC1220_FIXUP_CLEVO_P950),
2677 SND_PCI_QUIRK(0x1558, 0x9506, "Clevo P955HQ", ALC1220_FIXUP_CLEVO_P950),
2678 SND_PCI_QUIRK(0x1558, 0x950a, "Clevo P955H[PR]", ALC1220_FIXUP_CLEVO_P950),
2679 SND_PCI_QUIRK(0x1558, 0x95e1, "Clevo P95xER", ALC1220_FIXUP_CLEVO_P950),
2680 SND_PCI_QUIRK(0x1558, 0x95e2, "Clevo P950ER", ALC1220_FIXUP_CLEVO_P950),
2681 SND_PCI_QUIRK(0x1558, 0x95e3, "Clevo P955[ER]T", ALC1220_FIXUP_CLEVO_P950),
2682 SND_PCI_QUIRK(0x1558, 0x95e4, "Clevo P955ER", ALC1220_FIXUP_CLEVO_P950),
2683 SND_PCI_QUIRK(0x1558, 0x95e5, "Clevo P955EE6", ALC1220_FIXUP_CLEVO_P950),
2684 SND_PCI_QUIRK(0x1558, 0x95e6, "Clevo P950R[CDF]", ALC1220_FIXUP_CLEVO_P950),
2685 SND_PCI_QUIRK(0x1558, 0x96e1, "Clevo P960[ER][CDFN]-K", ALC1220_FIXUP_CLEVO_P950),
2686 SND_PCI_QUIRK(0x1558, 0x97e1, "Clevo P970[ER][CDFN]", ALC1220_FIXUP_CLEVO_P950),
2687 SND_PCI_QUIRK(0x1558, 0x97e2, "Clevo P970RC-M", ALC1220_FIXUP_CLEVO_P950),
2688 SND_PCI_QUIRK(0x1558, 0xd502, "Clevo PD50SNE", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2689 SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC882_FIXUP_EAPD),
2690 SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_FIXUP_EAPD),
2691 SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Y530", ALC882_FIXUP_LENOVO_Y530),
2692 SND_PCI_QUIRK(0x8086, 0x0022, "DX58SO", ALC889_FIXUP_COEF),
2697 {.id = ALC882_FIXUP_ABIT_AW9D_MAX, .name = "abit-aw9d"},
2698 {.id = ALC882_FIXUP_LENOVO_Y530, .name = "lenovo-y530"},
2699 {.id = ALC882_FIXUP_ACER_ASPIRE_7736, .name = "acer-aspire-7736"},
2700 {.id = ALC882_FIXUP_ASUS_W90V, .name = "asus-w90v"},
2702 {.id = ALC889_FIXUP_FRONT_HP_NO_PRESENCE, .name = "no-front-hp"},
2703 {.id = ALC889_FIXUP_VAIO_TT, .name = "vaio-tt"},
2705 {.id = ALC882_FIXUP_EAPD, .name = "alc882-eapd"},
2706 {.id = ALC883_FIXUP_EAPD, .name = "alc883-eapd"},
2710 {.id = ALC889_FIXUP_COEF, .name = "alc889-coef"},
2711 {.id = ALC882_FIXUP_ASUS_W2JC, .name = "asus-w2jc"},
2712 {.id = ALC882_FIXUP_ACER_ASPIRE_4930G, .name = "acer-aspire-4930g"},
2713 {.id = ALC882_FIXUP_ACER_ASPIRE_8930G, .name = "acer-aspire-8930g"},
2714 {.id = ALC883_FIXUP_ACER_EAPD, .name = "acer-aspire"},
2715 {.id = ALC885_FIXUP_MACPRO_GPIO, .name = "macpro-gpio"},
2716 {.id = ALC889_FIXUP_DAC_ROUTE, .name = "dac-route"},
2717 {.id = ALC889_FIXUP_MBP_VREF, .name = "mbp-vref"},
2718 {.id = ALC889_FIXUP_IMAC91_VREF, .name = "imac91-vref"},
2719 {.id = ALC889_FIXUP_MBA11_VREF, .name = "mba11-vref"},
2720 {.id = ALC889_FIXUP_MBA21_VREF, .name = "mba21-vref"},
2721 {.id = ALC889_FIXUP_MP11_VREF, .name = "mp11-vref"},
2722 {.id = ALC889_FIXUP_MP41_VREF, .name = "mp41-vref"},
2723 {.id = ALC882_FIXUP_INV_DMIC, .name = "inv-dmic"},
2724 {.id = ALC882_FIXUP_NO_PRIMARY_HP, .name = "no-primary-hp"},
2725 {.id = ALC887_FIXUP_ASUS_BASS, .name = "asus-bass"},
2726 {.id = ALC1220_FIXUP_GB_DUAL_CODECS, .name = "dual-codecs"},
2727 {.id = ALC1220_FIXUP_GB_X570, .name = "gb-x570"},
2728 {.id = ALC1220_FIXUP_CLEVO_P950, .name = "clevo-p950"},
2733 SND_HDA_PIN_QUIRK(0x10ec1220, 0x1043, "ASUS", ALC1220_FIXUP_CLEVO_P950,
2734 {0x14, 0x01014010},
2735 {0x15, 0x01011012},
2736 {0x16, 0x01016011},
2737 {0x18, 0x01a19040},
2738 {0x19, 0x02a19050},
2739 {0x1a, 0x0181304f},
2740 {0x1b, 0x0221401f},
2741 {0x1e, 0x01456130}),
2742 SND_HDA_PIN_QUIRK(0x10ec1220, 0x1462, "MS-7C35", ALC1220_FIXUP_CLEVO_P950,
2743 {0x14, 0x01015010},
2744 {0x15, 0x01011012},
2745 {0x16, 0x01011011},
2746 {0x18, 0x01a11040},
2747 {0x19, 0x02a19050},
2748 {0x1a, 0x0181104f},
2749 {0x1b, 0x0221401f},
2750 {0x1e, 0x01451130}),
2758 static int alc882_parse_auto_config(struct hda_codec *codec) in alc882_parse_auto_config() argument
2760 static const hda_nid_t alc882_ignore[] = { 0x1d, 0 }; in alc882_parse_auto_config()
2761 static const hda_nid_t alc882_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc882_parse_auto_config()
2762 return alc_parse_auto_config(codec, alc882_ignore, alc882_ssids); in alc882_parse_auto_config()
2767 static int patch_alc882(struct hda_codec *codec) in patch_alc882() argument
2772 err = alc_alloc_spec(codec, 0x0b); in patch_alc882()
2773 if (err < 0) in patch_alc882()
2776 spec = codec->spec; in patch_alc882()
2778 switch (codec->core.vendor_id) { in patch_alc882()
2779 case 0x10ec0882: in patch_alc882()
2780 case 0x10ec0885: in patch_alc882()
2781 case 0x10ec0900: in patch_alc882()
2782 case 0x10ec0b00: in patch_alc882()
2783 case 0x10ec1220: in patch_alc882()
2787 alc_fix_pll_init(codec, 0x20, 0x0a, 10); in patch_alc882()
2791 alc_pre_init(codec); in patch_alc882()
2793 snd_hda_pick_fixup(codec, alc882_fixup_models, alc882_fixup_tbl, in patch_alc882()
2795 snd_hda_pick_pin_fixup(codec, alc882_pin_fixup_tbl, alc882_fixups, true); in patch_alc882()
2796 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc882()
2798 alc_auto_parse_customize_define(codec); in patch_alc882()
2800 if (has_cdefine_beep(codec)) in patch_alc882()
2801 spec->gen.beep_nid = 0x01; in patch_alc882()
2804 err = alc882_parse_auto_config(codec); in patch_alc882()
2805 if (err < 0) in patch_alc882()
2808 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc882()
2809 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc882()
2810 if (err < 0) in patch_alc882()
2814 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc882()
2816 return 0; in patch_alc882()
2819 alc_free(codec); in patch_alc882()
2827 static int alc262_parse_auto_config(struct hda_codec *codec) in alc262_parse_auto_config() argument
2829 static const hda_nid_t alc262_ignore[] = { 0x1d, 0 }; in alc262_parse_auto_config()
2830 static const hda_nid_t alc262_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc262_parse_auto_config()
2831 return alc_parse_auto_config(codec, alc262_ignore, alc262_ssids); in alc262_parse_auto_config()
2853 { 0x14, 0x99130110 }, /* speaker */
2854 { 0x15, 0x0221142f }, /* front HP */
2855 { 0x1b, 0x0121141f }, /* rear HP */
2862 { 0x15, 0x90170110 }, /* speaker */
2871 { 0x16, 0x99130120 }, /* internal speaker */
2878 { 0x14, 0x1993e1f0 }, /* int AUX */
2885 { 0x19, PIN_VREF50 },
2894 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2895 { 0x20, AC_VERB_SET_PROC_COEF, 0x3070 },
2902 { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 },
2903 { 0x20, AC_VERB_SET_PROC_COEF, 0x3050 },
2918 SND_PCI_QUIRK(0x103c, 0x170b, "HP Z200", ALC262_FIXUP_HP_Z200),
2919 SND_PCI_QUIRK(0x10cf, 0x1397, "Fujitsu Lifebook S7110", ALC262_FIXUP_FSC_S7110),
2920 SND_PCI_QUIRK(0x10cf, 0x142d, "Fujitsu Lifebook E8410", ALC262_FIXUP_BENQ),
2921 SND_PCI_QUIRK(0x10f1, 0x2915, "Tyan Thunder n6650W", ALC262_FIXUP_TYAN),
2922 SND_PCI_QUIRK(0x1734, 0x1141, "FSC ESPRIMO U9210", ALC262_FIXUP_FSC_H270),
2923 SND_PCI_QUIRK(0x1734, 0x1147, "FSC Celsius H270", ALC262_FIXUP_FSC_H270),
2924 SND_PCI_QUIRK(0x17aa, 0x384e, "Lenovo 3000", ALC262_FIXUP_LENOVO_3000),
2925 SND_PCI_QUIRK(0x17ff, 0x0560, "Benq ED8", ALC262_FIXUP_BENQ),
2926 SND_PCI_QUIRK(0x17ff, 0x058d, "Benq T31-16", ALC262_FIXUP_BENQ_T31),
2927 SND_PCI_QUIRK(0x8086, 0x7270, "BayleyBay", ALC262_FIXUP_INTEL_BAYLEYBAY),
2932 {.id = ALC262_FIXUP_INV_DMIC, .name = "inv-dmic"},
2933 {.id = ALC262_FIXUP_FSC_H270, .name = "fsc-h270"},
2934 {.id = ALC262_FIXUP_FSC_S7110, .name = "fsc-s7110"},
2935 {.id = ALC262_FIXUP_HP_Z200, .name = "hp-z200"},
2937 {.id = ALC262_FIXUP_LENOVO_3000, .name = "lenovo-3000"},
2939 {.id = ALC262_FIXUP_BENQ_T31, .name = "benq-t31"},
2946 static int patch_alc262(struct hda_codec *codec) in patch_alc262() argument
2951 err = alc_alloc_spec(codec, 0x0b); in patch_alc262()
2952 if (err < 0) in patch_alc262()
2955 spec = codec->spec; in patch_alc262()
2956 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc262()
2958 spec->shutup = alc_eapd_shutup; in patch_alc262()
2960 #if 0 in patch_alc262()
2962 * under-run in patch_alc262()
2964 alc_update_coefex_idx(codec, 0x1a, 7, 0, 0x80); in patch_alc262()
2966 alc_fix_pll_init(codec, 0x20, 0x0a, 10); in patch_alc262()
2968 alc_pre_init(codec); in patch_alc262()
2970 snd_hda_pick_fixup(codec, alc262_fixup_models, alc262_fixup_tbl, in patch_alc262()
2972 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc262()
2974 alc_auto_parse_customize_define(codec); in patch_alc262()
2976 if (has_cdefine_beep(codec)) in patch_alc262()
2977 spec->gen.beep_nid = 0x01; in patch_alc262()
2980 err = alc262_parse_auto_config(codec); in patch_alc262()
2981 if (err < 0) in patch_alc262()
2984 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc262()
2985 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc262()
2986 if (err < 0) in patch_alc262()
2990 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc262()
2992 return 0; in patch_alc262()
2995 alc_free(codec); in patch_alc262()
3002 /* bind Beep switches of both NID 0x0f and 0x10 */
3006 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in alc268_beep_switch_put() local
3010 mutex_lock(&codec->control_mutex); in alc268_beep_switch_put()
3011 pval = kcontrol->private_value; in alc268_beep_switch_put()
3012 kcontrol->private_value = (pval & ~0xff) | 0x0f; in alc268_beep_switch_put()
3014 if (err >= 0) { in alc268_beep_switch_put()
3015 kcontrol->private_value = (pval & ~0xff) | 0x10; in alc268_beep_switch_put()
3018 kcontrol->private_value = pval; in alc268_beep_switch_put()
3019 mutex_unlock(&codec->control_mutex); in alc268_beep_switch_put()
3024 HDA_CODEC_VOLUME("Beep Playback Volume", 0x1d, 0x0, HDA_INPUT),
3032 .private_value = HDA_COMPOSE_AMP_VAL(0x0f, 3, 1, HDA_INPUT)
3036 /* set PCBEEP vol = 0, mute connections */
3038 {0x1d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
3039 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
3040 {0x10, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
3058 {0x15, AC_VERB_SET_EAPD_BTLENABLE, 0},
3065 { 0x1e, 0x014b1180 }, /* enable SPDIF out */
3072 {.id = ALC268_FIXUP_INV_DMIC, .name = "inv-dmic"},
3073 {.id = ALC268_FIXUP_HP_EAPD, .name = "hp-eapd"},
3079 SND_PCI_QUIRK(0x1025, 0x0139, "Acer TravelMate 6293", ALC268_FIXUP_SPDIF),
3080 SND_PCI_QUIRK(0x1025, 0x015b, "Acer AOA 150 (ZG5)", ALC268_FIXUP_INV_DMIC),
3081 /* below is codec SSID since multiple Toshiba laptops have the
3084 SND_PCI_QUIRK(0x1179, 0xff06, "Toshiba P200", ALC268_FIXUP_HP_EAPD),
3091 static int alc268_parse_auto_config(struct hda_codec *codec) in alc268_parse_auto_config() argument
3093 static const hda_nid_t alc268_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc268_parse_auto_config()
3094 return alc_parse_auto_config(codec, NULL, alc268_ssids); in alc268_parse_auto_config()
3099 static int patch_alc268(struct hda_codec *codec) in patch_alc268() argument
3104 /* ALC268 has no aa-loopback mixer */ in patch_alc268()
3105 err = alc_alloc_spec(codec, 0); in patch_alc268()
3106 if (err < 0) in patch_alc268()
3109 spec = codec->spec; in patch_alc268()
3110 if (has_cdefine_beep(codec)) in patch_alc268()
3111 spec->gen.beep_nid = 0x01; in patch_alc268()
3113 spec->shutup = alc_eapd_shutup; in patch_alc268()
3115 alc_pre_init(codec); in patch_alc268()
3117 snd_hda_pick_fixup(codec, alc268_fixup_models, alc268_fixup_tbl, alc268_fixups); in patch_alc268()
3118 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc268()
3121 err = alc268_parse_auto_config(codec); in patch_alc268()
3122 if (err < 0) in patch_alc268()
3125 if (err > 0 && !spec->gen.no_analog && in patch_alc268()
3126 spec->gen.autocfg.speaker_pins[0] != 0x1d) { in patch_alc268()
3127 for (i = 0; i < ARRAY_SIZE(alc268_beep_mixer); i++) { in patch_alc268()
3128 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, in patch_alc268()
3130 err = -ENOMEM; in patch_alc268()
3134 snd_hda_add_verbs(codec, alc268_beep_init_verbs); in patch_alc268()
3135 if (!query_amp_caps(codec, 0x1d, HDA_INPUT)) in patch_alc268()
3137 snd_hda_override_amp_caps(codec, 0x1d, HDA_INPUT, in patch_alc268()
3138 (0x0c << AC_AMPCAP_OFFSET_SHIFT) | in patch_alc268()
3139 (0x0c << AC_AMPCAP_NUM_STEPS_SHIFT) | in patch_alc268()
3140 (0x07 << AC_AMPCAP_STEP_SIZE_SHIFT) | in patch_alc268()
3141 (0 << AC_AMPCAP_MUTE_SHIFT)); in patch_alc268()
3144 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc268()
3146 return 0; in patch_alc268()
3149 alc_free(codec); in patch_alc268()
3165 /* different alc269-variants */
3194 static int alc269_parse_auto_config(struct hda_codec *codec) in alc269_parse_auto_config() argument
3196 static const hda_nid_t alc269_ignore[] = { 0x1d, 0 }; in alc269_parse_auto_config()
3197 static const hda_nid_t alc269_ssids[] = { 0, 0x1b, 0x14, 0x21 }; in alc269_parse_auto_config()
3198 static const hda_nid_t alc269va_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc269_parse_auto_config()
3199 struct alc_spec *spec = codec->spec; in alc269_parse_auto_config()
3202 switch (spec->codec_variant) { in alc269_parse_auto_config()
3234 return alc_parse_auto_config(codec, alc269_ignore, ssids); in alc269_parse_auto_config()
3245 static void alc_headset_btn_callback(struct hda_codec *codec, in alc_headset_btn_callback() argument
3248 int report = 0; in alc_headset_btn_callback()
3250 if (jack->unsol_res & (7 << 13)) in alc_headset_btn_callback()
3253 if (jack->unsol_res & (1 << 16 | 3 << 8)) in alc_headset_btn_callback()
3257 if (jack->unsol_res & (7 << 23)) in alc_headset_btn_callback()
3261 if (jack->unsol_res & (7 << 10)) in alc_headset_btn_callback()
3264 snd_hda_jack_set_button_state(codec, jack->nid, report); in alc_headset_btn_callback()
3267 static void alc_disable_headset_jack_key(struct hda_codec *codec) in alc_disable_headset_jack_key() argument
3269 struct alc_spec *spec = codec->spec; in alc_disable_headset_jack_key()
3271 if (!spec->has_hs_key) in alc_disable_headset_jack_key()
3274 switch (codec->core.vendor_id) { in alc_disable_headset_jack_key()
3275 case 0x10ec0215: in alc_disable_headset_jack_key()
3276 case 0x10ec0225: in alc_disable_headset_jack_key()
3277 case 0x10ec0285: in alc_disable_headset_jack_key()
3278 case 0x10ec0287: in alc_disable_headset_jack_key()
3279 case 0x10ec0295: in alc_disable_headset_jack_key()
3280 case 0x10ec0289: in alc_disable_headset_jack_key()
3281 case 0x10ec0299: in alc_disable_headset_jack_key()
3282 alc_write_coef_idx(codec, 0x48, 0x0); in alc_disable_headset_jack_key()
3283 alc_update_coef_idx(codec, 0x49, 0x0045, 0x0); in alc_disable_headset_jack_key()
3284 alc_update_coef_idx(codec, 0x44, 0x0045 << 8, 0x0); in alc_disable_headset_jack_key()
3286 case 0x10ec0230: in alc_disable_headset_jack_key()
3287 case 0x10ec0236: in alc_disable_headset_jack_key()
3288 case 0x10ec0256: in alc_disable_headset_jack_key()
3289 case 0x10ec0257: in alc_disable_headset_jack_key()
3290 case 0x19e58326: in alc_disable_headset_jack_key()
3291 alc_write_coef_idx(codec, 0x48, 0x0); in alc_disable_headset_jack_key()
3292 alc_update_coef_idx(codec, 0x49, 0x0045, 0x0); in alc_disable_headset_jack_key()
3297 static void alc_enable_headset_jack_key(struct hda_codec *codec) in alc_enable_headset_jack_key() argument
3299 struct alc_spec *spec = codec->spec; in alc_enable_headset_jack_key()
3301 if (!spec->has_hs_key) in alc_enable_headset_jack_key()
3304 switch (codec->core.vendor_id) { in alc_enable_headset_jack_key()
3305 case 0x10ec0215: in alc_enable_headset_jack_key()
3306 case 0x10ec0225: in alc_enable_headset_jack_key()
3307 case 0x10ec0285: in alc_enable_headset_jack_key()
3308 case 0x10ec0287: in alc_enable_headset_jack_key()
3309 case 0x10ec0295: in alc_enable_headset_jack_key()
3310 case 0x10ec0289: in alc_enable_headset_jack_key()
3311 case 0x10ec0299: in alc_enable_headset_jack_key()
3312 alc_write_coef_idx(codec, 0x48, 0xd011); in alc_enable_headset_jack_key()
3313 alc_update_coef_idx(codec, 0x49, 0x007f, 0x0045); in alc_enable_headset_jack_key()
3314 alc_update_coef_idx(codec, 0x44, 0x007f << 8, 0x0045 << 8); in alc_enable_headset_jack_key()
3316 case 0x10ec0230: in alc_enable_headset_jack_key()
3317 case 0x10ec0236: in alc_enable_headset_jack_key()
3318 case 0x10ec0256: in alc_enable_headset_jack_key()
3319 case 0x10ec0257: in alc_enable_headset_jack_key()
3320 case 0x19e58326: in alc_enable_headset_jack_key()
3321 alc_write_coef_idx(codec, 0x48, 0xd011); in alc_enable_headset_jack_key()
3322 alc_update_coef_idx(codec, 0x49, 0x007f, 0x0045); in alc_enable_headset_jack_key()
3327 static void alc_fixup_headset_jack(struct hda_codec *codec, in alc_fixup_headset_jack() argument
3330 struct alc_spec *spec = codec->spec; in alc_fixup_headset_jack()
3335 spec->has_hs_key = 1; in alc_fixup_headset_jack()
3336 snd_hda_jack_detect_enable_callback(codec, 0x55, in alc_fixup_headset_jack()
3341 if (!hp_pin || snd_hda_jack_bind_keymap(codec, 0x55, in alc_fixup_headset_jack()
3344 snd_hda_jack_add_kctl(codec, 0x55, "Headset Jack", in alc_fixup_headset_jack()
3348 alc_enable_headset_jack_key(codec); in alc_fixup_headset_jack()
3353 static void alc269vb_toggle_power_output(struct hda_codec *codec, int power_up) in alc269vb_toggle_power_output() argument
3355 alc_update_coef_idx(codec, 0x04, 1 << 11, power_up ? (1 << 11) : 0); in alc269vb_toggle_power_output()
3358 static void alc269_shutup(struct hda_codec *codec) in alc269_shutup() argument
3360 struct alc_spec *spec = codec->spec; in alc269_shutup()
3362 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_shutup()
3363 alc269vb_toggle_power_output(codec, 0); in alc269_shutup()
3364 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_shutup()
3365 (alc_get_coef0(codec) & 0x00ff) == 0x018) { in alc269_shutup()
3368 alc_shutup_pins(codec); in alc269_shutup()
3372 WRITE_COEF(0x03, 0x0002), /* Power Down Control */
3373 UPDATE_COEF(0x05, 0xff3f, 0x0700), /* FIFO and filter clock */
3374 WRITE_COEF(0x07, 0x0200), /* DMIC control */
3375 UPDATE_COEF(0x06, 0x00f0, 0), /* Analog clock */
3376 UPDATE_COEF(0x08, 0xfffc, 0x0c2c), /* JD */
3377 WRITE_COEF(0x0a, 0xcccc), /* JD offset1 */
3378 WRITE_COEF(0x0b, 0xcccc), /* JD offset2 */
3379 WRITE_COEF(0x0e, 0x6e00), /* LDO1/2/3, DAC/ADC */
3380 UPDATE_COEF(0x0f, 0xf800, 0x1000), /* JD */
3381 UPDATE_COEF(0x10, 0xfc00, 0x0c00), /* Capless */
3382 WRITE_COEF(0x6f, 0x0), /* Class D test 4 */
3383 UPDATE_COEF(0x0c, 0xfe00, 0), /* IO power down directly */
3384 WRITE_COEF(0x34, 0xa0c0), /* ANC */
3385 UPDATE_COEF(0x16, 0x0008, 0), /* AGC MUX */
3386 UPDATE_COEF(0x1d, 0x00e0, 0), /* DAC simple content protection */
3387 UPDATE_COEF(0x1f, 0x00e0, 0), /* ADC simple content protection */
3388 WRITE_COEF(0x21, 0x8804), /* DAC ADC Zero Detection */
3389 WRITE_COEF(0x63, 0x2902), /* PLL */
3390 WRITE_COEF(0x68, 0xa080), /* capless control 2 */
3391 WRITE_COEF(0x69, 0x3400), /* capless control 3 */
3392 WRITE_COEF(0x6a, 0x2f3e), /* capless control 4 */
3393 WRITE_COEF(0x6b, 0x0), /* capless control 5 */
3394 UPDATE_COEF(0x6d, 0x0fff, 0x0900), /* class D test 2 */
3395 WRITE_COEF(0x6e, 0x110a), /* class D test 3 */
3396 UPDATE_COEF(0x70, 0x00f8, 0x00d8), /* class D test 5 */
3397 WRITE_COEF(0x71, 0x0014), /* class D test 6 */
3398 WRITE_COEF(0x72, 0xc2ba), /* classD OCP */
3399 UPDATE_COEF(0x77, 0x0f80, 0), /* classD pure DC test */
3400 WRITE_COEF(0x6c, 0xfc06), /* Class D amp control */
3404 static void alc282_restore_default_value(struct hda_codec *codec) in alc282_restore_default_value() argument
3406 alc_process_coef_fw(codec, alc282_coefs); in alc282_restore_default_value()
3409 static void alc282_init(struct hda_codec *codec) in alc282_init() argument
3411 struct alc_spec *spec = codec->spec; in alc282_init()
3416 alc282_restore_default_value(codec); in alc282_init()
3420 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc282_init()
3421 coef78 = alc_read_coef_idx(codec, 0x78); in alc282_init()
3423 /* Index 0x78 Direct Drive HP AMP LPM Control 1 */ in alc282_init()
3425 alc_write_coef_idx(codec, 0x78, 0x9004); in alc282_init()
3430 snd_hda_codec_write(codec, hp_pin, 0, in alc282_init()
3436 snd_hda_codec_write(codec, hp_pin, 0, in alc282_init()
3443 alc_write_coef_idx(codec, 0x78, coef78); in alc282_init()
3446 static void alc282_shutup(struct hda_codec *codec) in alc282_shutup() argument
3448 struct alc_spec *spec = codec->spec; in alc282_shutup()
3454 alc269_shutup(codec); in alc282_shutup()
3458 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc282_shutup()
3459 coef78 = alc_read_coef_idx(codec, 0x78); in alc282_shutup()
3460 alc_write_coef_idx(codec, 0x78, 0x9004); in alc282_shutup()
3465 snd_hda_codec_write(codec, hp_pin, 0, in alc282_shutup()
3471 if (!spec->no_shutup_pins) in alc282_shutup()
3472 snd_hda_codec_write(codec, hp_pin, 0, in alc282_shutup()
3473 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc282_shutup()
3478 alc_auto_setup_eapd(codec, false); in alc282_shutup()
3479 alc_shutup_pins(codec); in alc282_shutup()
3480 alc_write_coef_idx(codec, 0x78, coef78); in alc282_shutup()
3484 WRITE_COEF(0x03, 0x0002), /* Power Down Control */
3485 UPDATE_COEF(0x05, 0xff3f, 0x0700), /* FIFO and filter clock */
3486 WRITE_COEF(0x07, 0x0200), /* DMIC control */
3487 UPDATE_COEF(0x06, 0x00f0, 0), /* Analog clock */
3488 UPDATE_COEF(0x08, 0xfffc, 0x0c2c), /* JD */
3489 WRITE_COEF(0x0a, 0xcccc), /* JD offset1 */
3490 WRITE_COEF(0x0b, 0xcccc), /* JD offset2 */
3491 WRITE_COEF(0x0e, 0x6fc0), /* LDO1/2/3, DAC/ADC */
3492 UPDATE_COEF(0x0f, 0xf800, 0x1000), /* JD */
3493 UPDATE_COEF(0x10, 0xfc00, 0x0c00), /* Capless */
3494 WRITE_COEF(0x3a, 0x0), /* Class D test 4 */
3495 UPDATE_COEF(0x0c, 0xfe00, 0x0), /* IO power down directly */
3496 WRITE_COEF(0x22, 0xa0c0), /* ANC */
3497 UPDATE_COEFEX(0x53, 0x01, 0x000f, 0x0008), /* AGC MUX */
3498 UPDATE_COEF(0x1d, 0x00e0, 0), /* DAC simple content protection */
3499 UPDATE_COEF(0x1f, 0x00e0, 0), /* ADC simple content protection */
3500 WRITE_COEF(0x21, 0x8804), /* DAC ADC Zero Detection */
3501 WRITE_COEF(0x2e, 0x2902), /* PLL */
3502 WRITE_COEF(0x33, 0xa080), /* capless control 2 */
3503 WRITE_COEF(0x34, 0x3400), /* capless control 3 */
3504 WRITE_COEF(0x35, 0x2f3e), /* capless control 4 */
3505 WRITE_COEF(0x36, 0x0), /* capless control 5 */
3506 UPDATE_COEF(0x38, 0x0fff, 0x0900), /* class D test 2 */
3507 WRITE_COEF(0x39, 0x110a), /* class D test 3 */
3508 UPDATE_COEF(0x3b, 0x00f8, 0x00d8), /* class D test 5 */
3509 WRITE_COEF(0x3c, 0x0014), /* class D test 6 */
3510 WRITE_COEF(0x3d, 0xc2ba), /* classD OCP */
3511 UPDATE_COEF(0x42, 0x0f80, 0x0), /* classD pure DC test */
3512 WRITE_COEF(0x49, 0x0), /* test mode */
3513 UPDATE_COEF(0x40, 0xf800, 0x9800), /* Class D DC enable */
3514 UPDATE_COEF(0x42, 0xf000, 0x2000), /* DC offset */
3515 WRITE_COEF(0x37, 0xfc06), /* Class D amp control */
3516 UPDATE_COEF(0x1b, 0x8000, 0), /* HP JD control */
3520 static void alc283_restore_default_value(struct hda_codec *codec) in alc283_restore_default_value() argument
3522 alc_process_coef_fw(codec, alc283_coefs); in alc283_restore_default_value()
3525 static void alc283_init(struct hda_codec *codec) in alc283_init() argument
3527 struct alc_spec *spec = codec->spec; in alc283_init()
3531 alc283_restore_default_value(codec); in alc283_init()
3537 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc283_init()
3539 /* Index 0x43 Direct Drive HP AMP LPM Control 1 */ in alc283_init()
3541 alc_write_coef_idx(codec, 0x43, 0x9004); in alc283_init()
3543 snd_hda_codec_write(codec, hp_pin, 0, in alc283_init()
3549 snd_hda_codec_write(codec, hp_pin, 0, in alc283_init()
3554 /* Index 0x46 Combo jack auto switch control 2 */ in alc283_init()
3556 alc_update_coef_idx(codec, 0x46, 3 << 12, 0); in alc283_init()
3558 alc_write_coef_idx(codec, 0x43, 0x9614); in alc283_init()
3561 static void alc283_shutup(struct hda_codec *codec) in alc283_shutup() argument
3563 struct alc_spec *spec = codec->spec; in alc283_shutup()
3568 alc269_shutup(codec); in alc283_shutup()
3572 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc283_shutup()
3574 alc_write_coef_idx(codec, 0x43, 0x9004); in alc283_shutup()
3577 alc_write_coef_idx(codec, 0x06, 0x2100); in alc283_shutup()
3579 snd_hda_codec_write(codec, hp_pin, 0, in alc283_shutup()
3585 if (!spec->no_shutup_pins) in alc283_shutup()
3586 snd_hda_codec_write(codec, hp_pin, 0, in alc283_shutup()
3587 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc283_shutup()
3589 alc_update_coef_idx(codec, 0x46, 0, 3 << 12); in alc283_shutup()
3593 alc_auto_setup_eapd(codec, false); in alc283_shutup()
3594 alc_shutup_pins(codec); in alc283_shutup()
3595 alc_write_coef_idx(codec, 0x43, 0x9614); in alc283_shutup()
3598 static void alc256_init(struct hda_codec *codec) in alc256_init() argument
3600 struct alc_spec *spec = codec->spec; in alc256_init()
3604 if (spec->ultra_low_power) { in alc256_init()
3605 alc_update_coef_idx(codec, 0x03, 1<<1, 1<<1); in alc256_init()
3606 alc_update_coef_idx(codec, 0x08, 3<<2, 3<<2); in alc256_init()
3607 alc_update_coef_idx(codec, 0x08, 7<<4, 0); in alc256_init()
3608 alc_update_coef_idx(codec, 0x3b, 1<<15, 0); in alc256_init()
3609 alc_update_coef_idx(codec, 0x0e, 7<<6, 7<<6); in alc256_init()
3614 hp_pin = 0x21; in alc256_init()
3618 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc256_init()
3622 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ in alc256_init()
3624 snd_hda_codec_write(codec, hp_pin, 0, in alc256_init()
3629 snd_hda_codec_write(codec, hp_pin, 0, in alc256_init()
3633 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ in alc256_init()
3635 alc_update_coef_idx(codec, 0x46, 3 << 12, 0); in alc256_init()
3636 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */ in alc256_init()
3637 alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15); in alc256_init()
3641 * Documentation/sound/hd-audio/realtek-pc-beep.rst for details of in alc256_init()
3644 alc_write_coef_idx(codec, 0x36, 0x5757); in alc256_init()
3647 static void alc256_shutup(struct hda_codec *codec) in alc256_shutup() argument
3649 struct alc_spec *spec = codec->spec; in alc256_shutup()
3654 hp_pin = 0x21; in alc256_shutup()
3656 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ in alc256_shutup()
3657 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc256_shutup()
3662 snd_hda_codec_write(codec, hp_pin, 0, in alc256_shutup()
3668 /* NOTE: call this before clearing the pin, otherwise codec stalls */ in alc256_shutup()
3670 * when booting with headset plugged. So skip setting it for the codec alc257 in alc256_shutup()
3672 if (spec->en_3kpull_low) in alc256_shutup()
3673 alc_update_coef_idx(codec, 0x46, 0, 3 << 12); in alc256_shutup()
3675 if (!spec->no_shutup_pins) in alc256_shutup()
3676 snd_hda_codec_write(codec, hp_pin, 0, in alc256_shutup()
3677 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc256_shutup()
3682 alc_auto_setup_eapd(codec, false); in alc256_shutup()
3683 alc_shutup_pins(codec); in alc256_shutup()
3684 if (spec->ultra_low_power) { in alc256_shutup()
3686 alc_update_coef_idx(codec, 0x03, 1<<1, 0); in alc256_shutup()
3687 alc_update_coef_idx(codec, 0x08, 7<<4, 7<<4); in alc256_shutup()
3688 alc_update_coef_idx(codec, 0x08, 3<<2, 0); in alc256_shutup()
3689 alc_update_coef_idx(codec, 0x3b, 1<<15, 1<<15); in alc256_shutup()
3690 alc_update_coef_idx(codec, 0x0e, 7<<6, 0); in alc256_shutup()
3695 static void alc285_hp_init(struct hda_codec *codec) in alc285_hp_init() argument
3697 struct alc_spec *spec = codec->spec; in alc285_hp_init()
3702 alc_write_coefex_idx(codec, 0x58, 0x00, 0x1888); /* write default value */ in alc285_hp_init()
3703 alc_update_coef_idx(codec, 0x4a, 1<<15, 1<<15); /* Reset HP JD */ in alc285_hp_init()
3704 coef38 = alc_read_coef_idx(codec, 0x38); /* Amp control */ in alc285_hp_init()
3705 coef0d = alc_read_coef_idx(codec, 0x0d); /* Digital Misc control */ in alc285_hp_init()
3706 coef36 = alc_read_coef_idx(codec, 0x36); /* Passthrough Control */ in alc285_hp_init()
3707 alc_update_coef_idx(codec, 0x38, 1<<4, 0x0); in alc285_hp_init()
3708 alc_update_coef_idx(codec, 0x0d, 0x110, 0x0); in alc285_hp_init()
3710 alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); in alc285_hp_init()
3713 snd_hda_codec_write(codec, hp_pin, 0, in alc285_hp_init()
3717 alc_update_coef_idx(codec, 0x36, 1<<14, 1<<14); in alc285_hp_init()
3718 alc_update_coef_idx(codec, 0x36, 1<<13, 0x0); in alc285_hp_init()
3721 snd_hda_codec_write(codec, hp_pin, 0, in alc285_hp_init()
3722 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc285_hp_init()
3724 alc_write_coef_idx(codec, 0x67, 0x0); /* Set HP depop to manual mode */ in alc285_hp_init()
3725 alc_write_coefex_idx(codec, 0x58, 0x00, 0x7880); in alc285_hp_init()
3726 alc_write_coefex_idx(codec, 0x58, 0x0f, 0xf049); in alc285_hp_init()
3727 alc_update_coefex_idx(codec, 0x58, 0x03, 0x00f0, 0x00c0); in alc285_hp_init()
3729 alc_write_coefex_idx(codec, 0x58, 0x00, 0xf888); /* HP depop procedure start */ in alc285_hp_init()
3730 val = alc_read_coefex_idx(codec, 0x58, 0x00); in alc285_hp_init()
3731 for (i = 0; i < 20 && val & 0x8000; i++) { in alc285_hp_init()
3733 val = alc_read_coefex_idx(codec, 0x58, 0x00); in alc285_hp_init()
3736 alc_write_coefex_idx(codec, 0x58, 0x00, val); /* write back the result */ in alc285_hp_init()
3737 alc_update_coef_idx(codec, 0x38, 1<<4, coef38); in alc285_hp_init()
3738 alc_update_coef_idx(codec, 0x0d, 0x110, coef0d); in alc285_hp_init()
3739 alc_update_coef_idx(codec, 0x36, 3<<13, coef36); in alc285_hp_init()
3742 alc_update_coef_idx(codec, 0x4a, 1<<15, 0); in alc285_hp_init()
3745 static void alc225_init(struct hda_codec *codec) in alc225_init() argument
3747 struct alc_spec *spec = codec->spec; in alc225_init()
3751 if (spec->ultra_low_power) { in alc225_init()
3752 alc_update_coef_idx(codec, 0x08, 0x0f << 2, 3<<2); in alc225_init()
3753 alc_update_coef_idx(codec, 0x0e, 7<<6, 7<<6); in alc225_init()
3754 alc_update_coef_idx(codec, 0x33, 1<<11, 0); in alc225_init()
3758 if (spec->codec_variant != ALC269_TYPE_ALC287 && in alc225_init()
3759 spec->codec_variant != ALC269_TYPE_ALC245) in alc225_init()
3761 if (!spec->done_hp_init || in alc225_init()
3762 is_s3_resume(codec) || in alc225_init()
3763 is_s4_resume(codec)) { in alc225_init()
3764 alc285_hp_init(codec); in alc225_init()
3765 spec->done_hp_init = true; in alc225_init()
3769 hp_pin = 0x21; in alc225_init()
3772 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc225_init()
3773 hp2_pin_sense = snd_hda_jack_detect(codec, 0x16); in alc225_init()
3777 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ in alc225_init()
3780 snd_hda_codec_write(codec, hp_pin, 0, in alc225_init()
3783 snd_hda_codec_write(codec, 0x16, 0, in alc225_init()
3788 snd_hda_codec_write(codec, hp_pin, 0, in alc225_init()
3791 snd_hda_codec_write(codec, 0x16, 0, in alc225_init()
3795 alc_update_coef_idx(codec, 0x4a, 3 << 10, 0); in alc225_init()
3796 alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ in alc225_init()
3800 static void alc225_shutup(struct hda_codec *codec) in alc225_shutup() argument
3802 struct alc_spec *spec = codec->spec; in alc225_shutup()
3807 hp_pin = 0x21; in alc225_shutup()
3809 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc225_shutup()
3810 hp2_pin_sense = snd_hda_jack_detect(codec, 0x16); in alc225_shutup()
3813 alc_disable_headset_jack_key(codec); in alc225_shutup()
3815 alc_update_coef_idx(codec, 0x4a, 0, 3 << 10); in alc225_shutup()
3819 snd_hda_codec_write(codec, hp_pin, 0, in alc225_shutup()
3822 snd_hda_codec_write(codec, 0x16, 0, in alc225_shutup()
3828 snd_hda_codec_write(codec, hp_pin, 0, in alc225_shutup()
3829 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc225_shutup()
3831 snd_hda_codec_write(codec, 0x16, 0, in alc225_shutup()
3832 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc225_shutup()
3835 alc_update_coef_idx(codec, 0x4a, 3 << 10, 0); in alc225_shutup()
3836 alc_enable_headset_jack_key(codec); in alc225_shutup()
3838 alc_auto_setup_eapd(codec, false); in alc225_shutup()
3839 alc_shutup_pins(codec); in alc225_shutup()
3840 if (spec->ultra_low_power) { in alc225_shutup()
3842 alc_update_coef_idx(codec, 0x08, 0x0f << 2, 0x0c << 2); in alc225_shutup()
3843 alc_update_coef_idx(codec, 0x0e, 7<<6, 0); in alc225_shutup()
3844 alc_update_coef_idx(codec, 0x33, 1<<11, 1<<11); in alc225_shutup()
3845 alc_update_coef_idx(codec, 0x4a, 3<<4, 2<<4); in alc225_shutup()
3850 static void alc222_init(struct hda_codec *codec) in alc222_init() argument
3852 struct alc_spec *spec = codec->spec; in alc222_init()
3861 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc222_init()
3862 hp2_pin_sense = snd_hda_jack_detect(codec, 0x14); in alc222_init()
3868 snd_hda_codec_write(codec, hp_pin, 0, in alc222_init()
3871 snd_hda_codec_write(codec, 0x14, 0, in alc222_init()
3876 snd_hda_codec_write(codec, hp_pin, 0, in alc222_init()
3879 snd_hda_codec_write(codec, 0x14, 0, in alc222_init()
3886 static void alc222_shutup(struct hda_codec *codec) in alc222_shutup() argument
3888 struct alc_spec *spec = codec->spec; in alc222_shutup()
3893 hp_pin = 0x21; in alc222_shutup()
3895 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc222_shutup()
3896 hp2_pin_sense = snd_hda_jack_detect(codec, 0x14); in alc222_shutup()
3902 snd_hda_codec_write(codec, hp_pin, 0, in alc222_shutup()
3905 snd_hda_codec_write(codec, 0x14, 0, in alc222_shutup()
3911 snd_hda_codec_write(codec, hp_pin, 0, in alc222_shutup()
3912 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc222_shutup()
3914 snd_hda_codec_write(codec, 0x14, 0, in alc222_shutup()
3915 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc222_shutup()
3919 alc_auto_setup_eapd(codec, false); in alc222_shutup()
3920 alc_shutup_pins(codec); in alc222_shutup()
3923 static void alc_default_init(struct hda_codec *codec) in alc_default_init() argument
3925 struct alc_spec *spec = codec->spec; in alc_default_init()
3934 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc_default_init()
3939 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_init()
3944 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_init()
3950 static void alc_default_shutup(struct hda_codec *codec) in alc_default_shutup() argument
3952 struct alc_spec *spec = codec->spec; in alc_default_shutup()
3957 alc269_shutup(codec); in alc_default_shutup()
3961 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc_default_shutup()
3966 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_shutup()
3971 if (!spec->no_shutup_pins) in alc_default_shutup()
3972 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_shutup()
3973 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc_default_shutup()
3977 alc_auto_setup_eapd(codec, false); in alc_default_shutup()
3978 alc_shutup_pins(codec); in alc_default_shutup()
3981 static void alc294_hp_init(struct hda_codec *codec) in alc294_hp_init() argument
3983 struct alc_spec *spec = codec->spec; in alc294_hp_init()
3990 snd_hda_codec_write(codec, hp_pin, 0, in alc294_hp_init()
3995 if (!spec->no_shutup_pins) in alc294_hp_init()
3996 snd_hda_codec_write(codec, hp_pin, 0, in alc294_hp_init()
3997 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc294_hp_init()
3999 alc_update_coef_idx(codec, 0x6f, 0x000f, 0);/* Set HP depop to manual mode */ in alc294_hp_init()
4000 alc_update_coefex_idx(codec, 0x58, 0x00, 0x8000, 0x8000); /* HP depop procedure start */ in alc294_hp_init()
4003 val = alc_read_coefex_idx(codec, 0x58, 0x01); in alc294_hp_init()
4004 for (i = 0; i < 20 && val & 0x0080; i++) { in alc294_hp_init()
4006 val = alc_read_coefex_idx(codec, 0x58, 0x01); in alc294_hp_init()
4009 alc_update_coef_idx(codec, 0x6f, 0x000f, 0x000b); in alc294_hp_init()
4013 static void alc294_init(struct hda_codec *codec) in alc294_init() argument
4015 struct alc_spec *spec = codec->spec; in alc294_init()
4018 if (!spec->done_hp_init || in alc294_init()
4019 codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) { in alc294_init()
4020 alc294_hp_init(codec); in alc294_init()
4021 spec->done_hp_init = true; in alc294_init()
4023 alc_default_init(codec); in alc294_init()
4026 static void alc5505_coef_set(struct hda_codec *codec, unsigned int index_reg, in alc5505_coef_set() argument
4029 snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_COEF_INDEX, index_reg >> 1); in alc5505_coef_set()
4030 snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_PROC_COEF, val & 0xffff); /* LSB */ in alc5505_coef_set()
4031 snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_PROC_COEF, val >> 16); /* MSB */ in alc5505_coef_set()
4034 static int alc5505_coef_get(struct hda_codec *codec, unsigned int index_reg) in alc5505_coef_get() argument
4038 snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_COEF_INDEX, index_reg >> 1); in alc5505_coef_get()
4039 val = snd_hda_codec_read(codec, 0x51, 0, AC_VERB_GET_PROC_COEF, 0) in alc5505_coef_get()
4040 & 0xffff; in alc5505_coef_get()
4041 val |= snd_hda_codec_read(codec, 0x51, 0, AC_VERB_GET_PROC_COEF, 0) in alc5505_coef_get()
4046 static void alc5505_dsp_halt(struct hda_codec *codec) in alc5505_dsp_halt() argument
4050 alc5505_coef_set(codec, 0x3000, 0x000c); /* DSP CPU stop */ in alc5505_dsp_halt()
4051 alc5505_coef_set(codec, 0x880c, 0x0008); /* DDR enter self refresh */ in alc5505_dsp_halt()
4052 alc5505_coef_set(codec, 0x61c0, 0x11110080); /* Clock control for PLL and CPU */ in alc5505_dsp_halt()
4053 alc5505_coef_set(codec, 0x6230, 0xfc0d4011); /* Disable Input OP */ in alc5505_dsp_halt()
4054 alc5505_coef_set(codec, 0x61b4, 0x040a2b03); /* Stop PLL2 */ in alc5505_dsp_halt()
4055 alc5505_coef_set(codec, 0x61b0, 0x00005b17); /* Stop PLL1 */ in alc5505_dsp_halt()
4056 alc5505_coef_set(codec, 0x61b8, 0x04133303); /* Stop PLL3 */ in alc5505_dsp_halt()
4057 val = alc5505_coef_get(codec, 0x6220); in alc5505_dsp_halt()
4058 alc5505_coef_set(codec, 0x6220, (val | 0x3000)); /* switch Ringbuffer clock to DBUS clock */ in alc5505_dsp_halt()
4061 static void alc5505_dsp_back_from_halt(struct hda_codec *codec) in alc5505_dsp_back_from_halt() argument
4063 alc5505_coef_set(codec, 0x61b8, 0x04133302); in alc5505_dsp_back_from_halt()
4064 alc5505_coef_set(codec, 0x61b0, 0x00005b16); in alc5505_dsp_back_from_halt()
4065 alc5505_coef_set(codec, 0x61b4, 0x040a2b02); in alc5505_dsp_back_from_halt()
4066 alc5505_coef_set(codec, 0x6230, 0xf80d4011); in alc5505_dsp_back_from_halt()
4067 alc5505_coef_set(codec, 0x6220, 0x2002010f); in alc5505_dsp_back_from_halt()
4068 alc5505_coef_set(codec, 0x880c, 0x00000004); in alc5505_dsp_back_from_halt()
4071 static void alc5505_dsp_init(struct hda_codec *codec) in alc5505_dsp_init() argument
4075 alc5505_dsp_halt(codec); in alc5505_dsp_init()
4076 alc5505_dsp_back_from_halt(codec); in alc5505_dsp_init()
4077 alc5505_coef_set(codec, 0x61b0, 0x5b14); /* PLL1 control */ in alc5505_dsp_init()
4078 alc5505_coef_set(codec, 0x61b0, 0x5b16); in alc5505_dsp_init()
4079 alc5505_coef_set(codec, 0x61b4, 0x04132b00); /* PLL2 control */ in alc5505_dsp_init()
4080 alc5505_coef_set(codec, 0x61b4, 0x04132b02); in alc5505_dsp_init()
4081 alc5505_coef_set(codec, 0x61b8, 0x041f3300); /* PLL3 control*/ in alc5505_dsp_init()
4082 alc5505_coef_set(codec, 0x61b8, 0x041f3302); in alc5505_dsp_init()
4083 snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_CODEC_RESET, 0); /* Function reset */ in alc5505_dsp_init()
4084 alc5505_coef_set(codec, 0x61b8, 0x041b3302); in alc5505_dsp_init()
4085 alc5505_coef_set(codec, 0x61b8, 0x04173302); in alc5505_dsp_init()
4086 alc5505_coef_set(codec, 0x61b8, 0x04163302); in alc5505_dsp_init()
4087 alc5505_coef_set(codec, 0x8800, 0x348b328b); /* DRAM control */ in alc5505_dsp_init()
4088 alc5505_coef_set(codec, 0x8808, 0x00020022); /* DRAM control */ in alc5505_dsp_init()
4089 alc5505_coef_set(codec, 0x8818, 0x00000400); /* DRAM control */ in alc5505_dsp_init()
4091 val = alc5505_coef_get(codec, 0x6200) >> 16; /* Read revision ID */ in alc5505_dsp_init()
4093 alc5505_coef_set(codec, 0x6220, 0x2002010f); /* I/O PAD Configuration */ in alc5505_dsp_init()
4095 alc5505_coef_set(codec, 0x6220, 0x6002018f); in alc5505_dsp_init()
4097 alc5505_coef_set(codec, 0x61ac, 0x055525f0); /**/ in alc5505_dsp_init()
4098 alc5505_coef_set(codec, 0x61c0, 0x12230080); /* Clock control */ in alc5505_dsp_init()
4099 alc5505_coef_set(codec, 0x61b4, 0x040e2b02); /* PLL2 control */ in alc5505_dsp_init()
4100 alc5505_coef_set(codec, 0x61bc, 0x010234f8); /* OSC Control */ in alc5505_dsp_init()
4101 alc5505_coef_set(codec, 0x880c, 0x00000004); /* DRAM Function control */ in alc5505_dsp_init()
4102 alc5505_coef_set(codec, 0x880c, 0x00000003); in alc5505_dsp_init()
4103 alc5505_coef_set(codec, 0x880c, 0x00000010); in alc5505_dsp_init()
4106 alc5505_dsp_halt(codec); in alc5505_dsp_init()
4111 #define alc5505_dsp_suspend(codec) do { } while (0) /* NOP */ argument
4112 #define alc5505_dsp_resume(codec) do { } while (0) /* NOP */ argument
4114 #define alc5505_dsp_suspend(codec) alc5505_dsp_halt(codec) argument
4115 #define alc5505_dsp_resume(codec) alc5505_dsp_back_from_halt(codec) argument
4118 static int alc269_suspend(struct hda_codec *codec) in alc269_suspend() argument
4120 struct alc_spec *spec = codec->spec; in alc269_suspend()
4122 if (spec->has_alc5505_dsp) in alc269_suspend()
4123 alc5505_dsp_suspend(codec); in alc269_suspend()
4125 return alc_suspend(codec); in alc269_suspend()
4128 static int alc269_resume(struct hda_codec *codec) in alc269_resume() argument
4130 struct alc_spec *spec = codec->spec; in alc269_resume()
4132 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
4133 alc269vb_toggle_power_output(codec, 0); in alc269_resume()
4134 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
4135 (alc_get_coef0(codec) & 0x00ff) == 0x018) { in alc269_resume()
4139 codec->patch_ops.init(codec); in alc269_resume()
4141 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
4142 alc269vb_toggle_power_output(codec, 1); in alc269_resume()
4143 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
4144 (alc_get_coef0(codec) & 0x00ff) == 0x017) { in alc269_resume()
4148 snd_hda_regmap_sync(codec); in alc269_resume()
4149 hda_call_check_power_status(codec, 0x01); in alc269_resume()
4151 /* on some machine, the BIOS will clear the codec gpio data when enter in alc269_resume()
4155 if (spec->gpio_data) in alc269_resume()
4156 alc_write_gpio_data(codec); in alc269_resume()
4158 if (spec->has_alc5505_dsp) in alc269_resume()
4159 alc5505_dsp_resume(codec); in alc269_resume()
4161 return 0; in alc269_resume()
4164 static void alc269_fixup_pincfg_no_hp_to_lineout(struct hda_codec *codec, in alc269_fixup_pincfg_no_hp_to_lineout() argument
4167 struct alc_spec *spec = codec->spec; in alc269_fixup_pincfg_no_hp_to_lineout()
4170 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc269_fixup_pincfg_no_hp_to_lineout()
4173 static void alc269_fixup_pincfg_U7x7_headset_mic(struct hda_codec *codec, in alc269_fixup_pincfg_U7x7_headset_mic() argument
4177 unsigned int cfg_headphone = snd_hda_codec_get_pincfg(codec, 0x21); in alc269_fixup_pincfg_U7x7_headset_mic()
4178 unsigned int cfg_headset_mic = snd_hda_codec_get_pincfg(codec, 0x19); in alc269_fixup_pincfg_U7x7_headset_mic()
4180 if (cfg_headphone && cfg_headset_mic == 0x411111f0) in alc269_fixup_pincfg_U7x7_headset_mic()
4181 snd_hda_codec_set_pincfg(codec, 0x19, in alc269_fixup_pincfg_U7x7_headset_mic()
4186 static void alc269_fixup_hweq(struct hda_codec *codec, in alc269_fixup_hweq() argument
4190 alc_update_coef_idx(codec, 0x1e, 0, 0x80); in alc269_fixup_hweq()
4193 static void alc269_fixup_headset_mic(struct hda_codec *codec, in alc269_fixup_headset_mic() argument
4196 struct alc_spec *spec = codec->spec; in alc269_fixup_headset_mic()
4199 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_headset_mic()
4202 static void alc271_fixup_dmic(struct hda_codec *codec, in alc271_fixup_dmic() argument
4206 {0x20, AC_VERB_SET_COEF_INDEX, 0x0d}, in alc271_fixup_dmic()
4207 {0x20, AC_VERB_SET_PROC_COEF, 0x4000}, in alc271_fixup_dmic()
4212 if (strcmp(codec->core.chip_name, "ALC271X") && in alc271_fixup_dmic()
4213 strcmp(codec->core.chip_name, "ALC269VB")) in alc271_fixup_dmic()
4215 cfg = snd_hda_codec_get_pincfg(codec, 0x12); in alc271_fixup_dmic()
4217 snd_hda_sequence_write(codec, verbs); in alc271_fixup_dmic()
4221 static void alc269vb_fixup_aspire_e1_coef(struct hda_codec *codec, in alc269vb_fixup_aspire_e1_coef() argument
4226 alc_update_coef_idx(codec, 0x0d, 0x6000, 0x6000); in alc269vb_fixup_aspire_e1_coef()
4229 static void alc269_fixup_pcm_44k(struct hda_codec *codec, in alc269_fixup_pcm_44k() argument
4232 struct alc_spec *spec = codec->spec; in alc269_fixup_pcm_44k()
4240 spec->gen.stream_analog_playback = &alc269_44k_pcm_analog_playback; in alc269_fixup_pcm_44k()
4241 spec->gen.stream_analog_capture = &alc269_44k_pcm_analog_capture; in alc269_fixup_pcm_44k()
4244 static void alc269_fixup_stereo_dmic(struct hda_codec *codec, in alc269_fixup_stereo_dmic() argument
4247 /* The digital-mic unit sends PDM (differential signal) instead of in alc269_fixup_stereo_dmic()
4253 alc_update_coef_idx(codec, 0x07, 0, 0x80); in alc269_fixup_stereo_dmic()
4256 static void alc269_quanta_automute(struct hda_codec *codec) in alc269_quanta_automute() argument
4258 snd_hda_gen_update_outputs(codec); in alc269_quanta_automute()
4260 alc_write_coef_idx(codec, 0x0c, 0x680); in alc269_quanta_automute()
4261 alc_write_coef_idx(codec, 0x0c, 0x480); in alc269_quanta_automute()
4264 static void alc269_fixup_quanta_mute(struct hda_codec *codec, in alc269_fixup_quanta_mute() argument
4267 struct alc_spec *spec = codec->spec; in alc269_fixup_quanta_mute()
4270 spec->gen.automute_hook = alc269_quanta_automute; in alc269_fixup_quanta_mute()
4273 static void alc269_x101_hp_automute_hook(struct hda_codec *codec, in alc269_x101_hp_automute_hook() argument
4276 struct alc_spec *spec = codec->spec; in alc269_x101_hp_automute_hook()
4279 snd_hda_gen_hp_automute(codec, jack); in alc269_x101_hp_automute_hook()
4281 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc269_x101_hp_automute_hook()
4283 snd_hda_codec_write(codec, 0x18, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in alc269_x101_hp_automute_hook()
4286 snd_hda_codec_write(codec, 0x18, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in alc269_x101_hp_automute_hook()
4298 static void alc298_huawei_mbx_stereo_seq(struct hda_codec *codec, in alc298_huawei_mbx_stereo_seq() argument
4302 snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x0); in alc298_huawei_mbx_stereo_seq()
4303 alc_write_coef_idx(codec, 0x26, 0xb000); in alc298_huawei_mbx_stereo_seq()
4306 snd_hda_codec_write(codec, 0x21, 0, AC_VERB_GET_PIN_SENSE, 0x0); in alc298_huawei_mbx_stereo_seq()
4308 snd_hda_codec_write(codec, 0x6, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x80); in alc298_huawei_mbx_stereo_seq()
4309 alc_write_coef_idx(codec, 0x26, 0xf000); in alc298_huawei_mbx_stereo_seq()
4310 alc_write_coef_idx(codec, 0x23, initval->value_0x23); in alc298_huawei_mbx_stereo_seq()
4312 if (initval->value_0x23 != 0x1e) in alc298_huawei_mbx_stereo_seq()
4313 alc_write_coef_idx(codec, 0x25, initval->value_0x25); in alc298_huawei_mbx_stereo_seq()
4315 snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_COEF_INDEX, 0x26); in alc298_huawei_mbx_stereo_seq()
4316 snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_PROC_COEF, 0xb010); in alc298_huawei_mbx_stereo_seq()
4319 static void alc298_fixup_huawei_mbx_stereo(struct hda_codec *codec, in alc298_fixup_huawei_mbx_stereo() argument
4325 {0x0c, 0x00}, {0x0d, 0x00}, {0x0e, 0x00}, {0x0f, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4326 {0x10, 0x00}, {0x1a, 0x40}, {0x1b, 0x82}, {0x1c, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4327 {0x1d, 0x00}, {0x1e, 0x00}, {0x1f, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4328 {0x20, 0xc2}, {0x21, 0xc8}, {0x22, 0x26}, {0x23, 0x24}, in alc298_fixup_huawei_mbx_stereo()
4329 {0x27, 0xff}, {0x28, 0xff}, {0x29, 0xff}, {0x2a, 0x8f}, in alc298_fixup_huawei_mbx_stereo()
4330 {0x2b, 0x02}, {0x2c, 0x48}, {0x2d, 0x34}, {0x2e, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4331 {0x2f, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4332 {0x30, 0x00}, {0x31, 0x00}, {0x32, 0x00}, {0x33, 0x00}, in alc298_fixup_huawei_mbx_stereo()
4333 {0x34, 0x00}, {0x35, 0x01}, {0x36, 0x93}, {0x37, 0x0c}, in alc298_fixup_huawei_mbx_stereo()
4334 {0x38, 0x00}, {0x39, 0x00}, {0x3a, 0xf8}, {0x38, 0x80}, in alc298_fixup_huawei_mbx_stereo()
4343 snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x00); in alc298_fixup_huawei_mbx_stereo()
4344 snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x80); in alc298_fixup_huawei_mbx_stereo()
4345 alc_write_coef_idx(codec, 0x26, 0xf000); in alc298_fixup_huawei_mbx_stereo()
4346 alc_write_coef_idx(codec, 0x22, 0x31); in alc298_fixup_huawei_mbx_stereo()
4347 alc_write_coef_idx(codec, 0x23, 0x0b); in alc298_fixup_huawei_mbx_stereo()
4348 alc_write_coef_idx(codec, 0x25, 0x00); in alc298_fixup_huawei_mbx_stereo()
4349 snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_COEF_INDEX, 0x26); in alc298_fixup_huawei_mbx_stereo()
4350 snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_PROC_COEF, 0xb010); in alc298_fixup_huawei_mbx_stereo()
4352 for (seq = dac_init; seq->value_0x23; seq++) in alc298_fixup_huawei_mbx_stereo()
4353 alc298_huawei_mbx_stereo_seq(codec, seq, seq == dac_init); in alc298_fixup_huawei_mbx_stereo()
4356 static void alc269_fixup_x101_headset_mic(struct hda_codec *codec, in alc269_fixup_x101_headset_mic() argument
4359 struct alc_spec *spec = codec->spec; in alc269_fixup_x101_headset_mic()
4361 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_x101_headset_mic()
4362 spec->gen.hp_automute_hook = alc269_x101_hp_automute_hook; in alc269_fixup_x101_headset_mic()
4366 static void alc_update_vref_led(struct hda_codec *codec, hda_nid_t pin, in alc_update_vref_led() argument
4375 pinval = snd_hda_codec_get_pin_target(codec, pin); in alc_update_vref_led()
4379 snd_hda_power_up_pm(codec); in alc_update_vref_led()
4380 snd_hda_set_pin_ctl_cache(codec, pin, pinval); in alc_update_vref_led()
4381 snd_hda_power_down_pm(codec); in alc_update_vref_led()
4384 /* update mute-LED according to the speaker mute state via mic VREF pin */
4388 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in vref_mute_led_set() local
4389 struct alc_spec *spec = codec->spec; in vref_mute_led_set()
4391 alc_update_vref_led(codec, spec->mute_led_nid, in vref_mute_led_set()
4392 spec->mute_led_polarity, brightness); in vref_mute_led_set()
4393 return 0; in vref_mute_led_set()
4397 static unsigned int led_power_filter(struct hda_codec *codec, in led_power_filter() argument
4401 struct alc_spec *spec = codec->spec; in led_power_filter()
4403 if (power_state != AC_PWRST_D3 || nid == 0 || in led_power_filter()
4404 (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid)) in led_power_filter()
4407 /* Set pin ctl again, it might have just been set to 0 */ in led_power_filter()
4408 snd_hda_set_pin_ctl(codec, nid, in led_power_filter()
4409 snd_hda_codec_get_pin_target(codec, nid)); in led_power_filter()
4411 return snd_hda_gen_path_power_filter(codec, nid, power_state); in led_power_filter()
4414 static void alc269_fixup_hp_mute_led(struct hda_codec *codec, in alc269_fixup_hp_mute_led() argument
4417 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led()
4425 if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) != 2) in alc269_fixup_hp_mute_led()
4427 if (pin < 0x0a || pin >= 0x10) in alc269_fixup_hp_mute_led()
4429 spec->mute_led_polarity = pol; in alc269_fixup_hp_mute_led()
4430 spec->mute_led_nid = pin - 0x0a + 0x18; in alc269_fixup_hp_mute_led()
4431 snd_hda_gen_add_mute_led_cdev(codec, vref_mute_led_set); in alc269_fixup_hp_mute_led()
4432 codec->power_filter = led_power_filter; in alc269_fixup_hp_mute_led()
4433 codec_dbg(codec, in alc269_fixup_hp_mute_led()
4434 "Detected mute LED for %x:%d\n", spec->mute_led_nid, in alc269_fixup_hp_mute_led()
4435 spec->mute_led_polarity); in alc269_fixup_hp_mute_led()
4440 static void alc269_fixup_hp_mute_led_micx(struct hda_codec *codec, in alc269_fixup_hp_mute_led_micx() argument
4444 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led_micx()
4447 spec->mute_led_polarity = 0; in alc269_fixup_hp_mute_led_micx()
4448 spec->mute_led_nid = pin; in alc269_fixup_hp_mute_led_micx()
4449 snd_hda_gen_add_mute_led_cdev(codec, vref_mute_led_set); in alc269_fixup_hp_mute_led_micx()
4450 codec->power_filter = led_power_filter; in alc269_fixup_hp_mute_led_micx()
4454 static void alc269_fixup_hp_mute_led_mic1(struct hda_codec *codec, in alc269_fixup_hp_mute_led_mic1() argument
4457 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x18); in alc269_fixup_hp_mute_led_mic1()
4460 static void alc269_fixup_hp_mute_led_mic2(struct hda_codec *codec, in alc269_fixup_hp_mute_led_mic2() argument
4463 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x19); in alc269_fixup_hp_mute_led_mic2()
4466 static void alc269_fixup_hp_mute_led_mic3(struct hda_codec *codec, in alc269_fixup_hp_mute_led_mic3() argument
4469 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1b); in alc269_fixup_hp_mute_led_mic3()
4473 static void alc_update_gpio_led(struct hda_codec *codec, unsigned int mask, in alc_update_gpio_led() argument
4478 alc_update_gpio_data(codec, mask, !enabled); /* muted -> LED on */ in alc_update_gpio_led()
4485 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in gpio_mute_led_set() local
4486 struct alc_spec *spec = codec->spec; in gpio_mute_led_set()
4488 alc_update_gpio_led(codec, spec->gpio_mute_led_mask, in gpio_mute_led_set()
4489 spec->mute_led_polarity, !brightness); in gpio_mute_led_set()
4490 return 0; in gpio_mute_led_set()
4493 /* turn on/off mic-mute LED via GPIO per capture hook */
4497 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in micmute_led_set() local
4498 struct alc_spec *spec = codec->spec; in micmute_led_set()
4500 alc_update_gpio_led(codec, spec->gpio_mic_led_mask, in micmute_led_set()
4501 spec->micmute_led_polarity, !brightness); in micmute_led_set()
4502 return 0; in micmute_led_set()
4505 /* setup mute and mic-mute GPIO bits, add hooks appropriately */
4506 static void alc_fixup_hp_gpio_led(struct hda_codec *codec, in alc_fixup_hp_gpio_led() argument
4511 struct alc_spec *spec = codec->spec; in alc_fixup_hp_gpio_led()
4513 alc_fixup_gpio(codec, action, mute_mask | micmute_mask); in alc_fixup_hp_gpio_led()
4518 spec->gpio_mute_led_mask = mute_mask; in alc_fixup_hp_gpio_led()
4519 snd_hda_gen_add_mute_led_cdev(codec, gpio_mute_led_set); in alc_fixup_hp_gpio_led()
4522 spec->gpio_mic_led_mask = micmute_mask; in alc_fixup_hp_gpio_led()
4523 snd_hda_gen_add_micmute_led_cdev(codec, micmute_led_set); in alc_fixup_hp_gpio_led()
4527 static void alc236_fixup_hp_gpio_led(struct hda_codec *codec, in alc236_fixup_hp_gpio_led() argument
4530 alc_fixup_hp_gpio_led(codec, action, 0x02, 0x01); in alc236_fixup_hp_gpio_led()
4533 static void alc269_fixup_hp_gpio_led(struct hda_codec *codec, in alc269_fixup_hp_gpio_led() argument
4536 alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10); in alc269_fixup_hp_gpio_led()
4539 static void alc285_fixup_hp_gpio_led(struct hda_codec *codec, in alc285_fixup_hp_gpio_led() argument
4542 alc_fixup_hp_gpio_led(codec, action, 0x04, 0x01); in alc285_fixup_hp_gpio_led()
4545 static void alc286_fixup_hp_gpio_led(struct hda_codec *codec, in alc286_fixup_hp_gpio_led() argument
4548 alc_fixup_hp_gpio_led(codec, action, 0x02, 0x20); in alc286_fixup_hp_gpio_led()
4551 static void alc287_fixup_hp_gpio_led(struct hda_codec *codec, in alc287_fixup_hp_gpio_led() argument
4554 alc_fixup_hp_gpio_led(codec, action, 0x10, 0); in alc287_fixup_hp_gpio_led()
4557 static void alc245_fixup_hp_gpio_led(struct hda_codec *codec, in alc245_fixup_hp_gpio_led() argument
4560 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_gpio_led()
4563 spec->micmute_led_polarity = 1; in alc245_fixup_hp_gpio_led()
4564 alc_fixup_hp_gpio_led(codec, action, 0, 0x04); in alc245_fixup_hp_gpio_led()
4567 /* turn on/off mic-mute LED per capture hook via VREF change */
4571 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in vref_micmute_led_set() local
4572 struct alc_spec *spec = codec->spec; in vref_micmute_led_set()
4574 alc_update_vref_led(codec, spec->cap_mute_led_nid, in vref_micmute_led_set()
4575 spec->micmute_led_polarity, brightness); in vref_micmute_led_set()
4576 return 0; in vref_micmute_led_set()
4579 static void alc269_fixup_hp_gpio_mic1_led(struct hda_codec *codec, in alc269_fixup_hp_gpio_mic1_led() argument
4582 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_gpio_mic1_led()
4584 alc_fixup_hp_gpio_led(codec, action, 0x08, 0); in alc269_fixup_hp_gpio_mic1_led()
4589 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4590 spec->gpio_dir |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4591 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_gpio_mic1_led()
4592 snd_hda_gen_add_micmute_led_cdev(codec, vref_micmute_led_set); in alc269_fixup_hp_gpio_mic1_led()
4593 codec->power_filter = led_power_filter; in alc269_fixup_hp_gpio_mic1_led()
4597 static void alc280_fixup_hp_gpio4(struct hda_codec *codec, in alc280_fixup_hp_gpio4() argument
4600 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio4()
4602 alc_fixup_hp_gpio_led(codec, action, 0x08, 0); in alc280_fixup_hp_gpio4()
4604 spec->cap_mute_led_nid = 0x18; in alc280_fixup_hp_gpio4()
4605 snd_hda_gen_add_micmute_led_cdev(codec, vref_micmute_led_set); in alc280_fixup_hp_gpio4()
4606 codec->power_filter = led_power_filter; in alc280_fixup_hp_gpio4()
4613 static void alc245_fixup_hp_x360_amp(struct hda_codec *codec, in alc245_fixup_hp_x360_amp() argument
4616 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_x360_amp()
4620 spec->gpio_mask |= 0x01; in alc245_fixup_hp_x360_amp()
4621 spec->gpio_dir |= 0x01; in alc245_fixup_hp_x360_amp()
4625 alc_update_gpio_data(codec, 0x01, true); in alc245_fixup_hp_x360_amp()
4627 alc_update_gpio_data(codec, 0x01, false); in alc245_fixup_hp_x360_amp()
4634 struct hda_codec *codec, in alc274_hp_envy_pcm_hook() argument
4640 alc_update_gpio_data(codec, 0x04, true); in alc274_hp_envy_pcm_hook()
4643 alc_update_gpio_data(codec, 0x04, false); in alc274_hp_envy_pcm_hook()
4648 static void alc274_fixup_hp_envy_gpio(struct hda_codec *codec, in alc274_fixup_hp_envy_gpio() argument
4652 struct alc_spec *spec = codec->spec; in alc274_fixup_hp_envy_gpio()
4655 spec->gpio_mask |= 0x04; in alc274_fixup_hp_envy_gpio()
4656 spec->gpio_dir |= 0x04; in alc274_fixup_hp_envy_gpio()
4657 spec->gen.pcm_playback_hook = alc274_hp_envy_pcm_hook; in alc274_fixup_hp_envy_gpio()
4661 static void alc_update_coef_led(struct hda_codec *codec, in alc_update_coef_led() argument
4668 alc_update_coef_idx(codec, led->idx, led->mask, in alc_update_coef_led()
4669 on ? led->on : led->off); in alc_update_coef_led()
4672 /* update mute-LED according to the speaker mute state via COEF bit */
4676 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in coef_mute_led_set() local
4677 struct alc_spec *spec = codec->spec; in coef_mute_led_set()
4679 alc_update_coef_led(codec, &spec->mute_led_coef, in coef_mute_led_set()
4680 spec->mute_led_polarity, brightness); in coef_mute_led_set()
4681 return 0; in coef_mute_led_set()
4684 static void alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec, in alc285_fixup_hp_mute_led_coefbit() argument
4688 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_mute_led_coefbit()
4691 spec->mute_led_polarity = 0; in alc285_fixup_hp_mute_led_coefbit()
4692 spec->mute_led_coef.idx = 0x0b; in alc285_fixup_hp_mute_led_coefbit()
4693 spec->mute_led_coef.mask = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4694 spec->mute_led_coef.on = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4695 spec->mute_led_coef.off = 0; in alc285_fixup_hp_mute_led_coefbit()
4696 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc285_fixup_hp_mute_led_coefbit()
4700 static void alc236_fixup_hp_mute_led_coefbit(struct hda_codec *codec, in alc236_fixup_hp_mute_led_coefbit() argument
4704 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_mute_led_coefbit()
4707 spec->mute_led_polarity = 0; in alc236_fixup_hp_mute_led_coefbit()
4708 spec->mute_led_coef.idx = 0x34; in alc236_fixup_hp_mute_led_coefbit()
4709 spec->mute_led_coef.mask = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4710 spec->mute_led_coef.on = 0; in alc236_fixup_hp_mute_led_coefbit()
4711 spec->mute_led_coef.off = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4712 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc236_fixup_hp_mute_led_coefbit()
4716 static void alc236_fixup_hp_mute_led_coefbit2(struct hda_codec *codec, in alc236_fixup_hp_mute_led_coefbit2() argument
4719 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_mute_led_coefbit2()
4722 spec->mute_led_polarity = 0; in alc236_fixup_hp_mute_led_coefbit2()
4723 spec->mute_led_coef.idx = 0x07; in alc236_fixup_hp_mute_led_coefbit2()
4724 spec->mute_led_coef.mask = 1; in alc236_fixup_hp_mute_led_coefbit2()
4725 spec->mute_led_coef.on = 1; in alc236_fixup_hp_mute_led_coefbit2()
4726 spec->mute_led_coef.off = 0; in alc236_fixup_hp_mute_led_coefbit2()
4727 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc236_fixup_hp_mute_led_coefbit2()
4731 static void alc245_fixup_hp_mute_led_coefbit(struct hda_codec *codec, in alc245_fixup_hp_mute_led_coefbit() argument
4735 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_mute_led_coefbit()
4738 spec->mute_led_polarity = 0; in alc245_fixup_hp_mute_led_coefbit()
4739 spec->mute_led_coef.idx = 0x0b; in alc245_fixup_hp_mute_led_coefbit()
4740 spec->mute_led_coef.mask = 3 << 2; in alc245_fixup_hp_mute_led_coefbit()
4741 spec->mute_led_coef.on = 2 << 2; in alc245_fixup_hp_mute_led_coefbit()
4742 spec->mute_led_coef.off = 1 << 2; in alc245_fixup_hp_mute_led_coefbit()
4743 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc245_fixup_hp_mute_led_coefbit()
4747 static void alc245_fixup_hp_mute_led_v1_coefbit(struct hda_codec *codec, in alc245_fixup_hp_mute_led_v1_coefbit() argument
4751 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_mute_led_v1_coefbit()
4754 spec->mute_led_polarity = 0; in alc245_fixup_hp_mute_led_v1_coefbit()
4755 spec->mute_led_coef.idx = 0x0b; in alc245_fixup_hp_mute_led_v1_coefbit()
4756 spec->mute_led_coef.mask = 1 << 3; in alc245_fixup_hp_mute_led_v1_coefbit()
4757 spec->mute_led_coef.on = 1 << 3; in alc245_fixup_hp_mute_led_v1_coefbit()
4758 spec->mute_led_coef.off = 0; in alc245_fixup_hp_mute_led_v1_coefbit()
4759 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc245_fixup_hp_mute_led_v1_coefbit()
4763 /* turn on/off mic-mute LED per capture hook by coef bit */
4767 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in coef_micmute_led_set() local
4768 struct alc_spec *spec = codec->spec; in coef_micmute_led_set()
4770 alc_update_coef_led(codec, &spec->mic_led_coef, in coef_micmute_led_set()
4771 spec->micmute_led_polarity, brightness); in coef_micmute_led_set()
4772 return 0; in coef_micmute_led_set()
4775 static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, in alc285_fixup_hp_coef_micmute_led() argument
4778 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_coef_micmute_led()
4781 spec->mic_led_coef.idx = 0x19; in alc285_fixup_hp_coef_micmute_led()
4782 spec->mic_led_coef.mask = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4783 spec->mic_led_coef.on = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4784 spec->mic_led_coef.off = 0; in alc285_fixup_hp_coef_micmute_led()
4785 snd_hda_gen_add_micmute_led_cdev(codec, coef_micmute_led_set); in alc285_fixup_hp_coef_micmute_led()
4789 static void alc285_fixup_hp_gpio_micmute_led(struct hda_codec *codec, in alc285_fixup_hp_gpio_micmute_led() argument
4792 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_gpio_micmute_led()
4795 spec->micmute_led_polarity = 1; in alc285_fixup_hp_gpio_micmute_led()
4796 alc_fixup_hp_gpio_led(codec, action, 0, 0x04); in alc285_fixup_hp_gpio_micmute_led()
4799 static void alc236_fixup_hp_coef_micmute_led(struct hda_codec *codec, in alc236_fixup_hp_coef_micmute_led() argument
4802 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_coef_micmute_led()
4805 spec->mic_led_coef.idx = 0x35; in alc236_fixup_hp_coef_micmute_led()
4806 spec->mic_led_coef.mask = 3 << 2; in alc236_fixup_hp_coef_micmute_led()
4807 spec->mic_led_coef.on = 2 << 2; in alc236_fixup_hp_coef_micmute_led()
4808 spec->mic_led_coef.off = 1 << 2; in alc236_fixup_hp_coef_micmute_led()
4809 snd_hda_gen_add_micmute_led_cdev(codec, coef_micmute_led_set); in alc236_fixup_hp_coef_micmute_led()
4813 static void alc295_fixup_hp_mute_led_coefbit11(struct hda_codec *codec, in alc295_fixup_hp_mute_led_coefbit11() argument
4816 struct alc_spec *spec = codec->spec; in alc295_fixup_hp_mute_led_coefbit11()
4819 spec->mute_led_polarity = 0; in alc295_fixup_hp_mute_led_coefbit11()
4820 spec->mute_led_coef.idx = 0xb; in alc295_fixup_hp_mute_led_coefbit11()
4821 spec->mute_led_coef.mask = 3 << 3; in alc295_fixup_hp_mute_led_coefbit11()
4822 spec->mute_led_coef.on = 1 << 3; in alc295_fixup_hp_mute_led_coefbit11()
4823 spec->mute_led_coef.off = 1 << 4; in alc295_fixup_hp_mute_led_coefbit11()
4824 snd_hda_gen_add_mute_led_cdev(codec, coef_mute_led_set); in alc295_fixup_hp_mute_led_coefbit11()
4828 static void alc285_fixup_hp_mute_led(struct hda_codec *codec, in alc285_fixup_hp_mute_led() argument
4831 alc285_fixup_hp_mute_led_coefbit(codec, fix, action); in alc285_fixup_hp_mute_led()
4832 alc285_fixup_hp_coef_micmute_led(codec, fix, action); in alc285_fixup_hp_mute_led()
4835 static void alc285_fixup_hp_spectre_x360_mute_led(struct hda_codec *codec, in alc285_fixup_hp_spectre_x360_mute_led() argument
4838 alc285_fixup_hp_mute_led_coefbit(codec, fix, action); in alc285_fixup_hp_spectre_x360_mute_led()
4839 alc285_fixup_hp_gpio_micmute_led(codec, fix, action); in alc285_fixup_hp_spectre_x360_mute_led()
4842 static void alc236_fixup_hp_mute_led(struct hda_codec *codec, in alc236_fixup_hp_mute_led() argument
4845 alc236_fixup_hp_mute_led_coefbit(codec, fix, action); in alc236_fixup_hp_mute_led()
4846 alc236_fixup_hp_coef_micmute_led(codec, fix, action); in alc236_fixup_hp_mute_led()
4849 static void alc236_fixup_hp_micmute_led_vref(struct hda_codec *codec, in alc236_fixup_hp_micmute_led_vref() argument
4852 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_micmute_led_vref()
4855 spec->cap_mute_led_nid = 0x1a; in alc236_fixup_hp_micmute_led_vref()
4856 snd_hda_gen_add_micmute_led_cdev(codec, vref_micmute_led_set); in alc236_fixup_hp_micmute_led_vref()
4857 codec->power_filter = led_power_filter; in alc236_fixup_hp_micmute_led_vref()
4861 static void alc236_fixup_hp_mute_led_micmute_vref(struct hda_codec *codec, in alc236_fixup_hp_mute_led_micmute_vref() argument
4864 alc236_fixup_hp_mute_led_coefbit(codec, fix, action); in alc236_fixup_hp_mute_led_micmute_vref()
4865 alc236_fixup_hp_micmute_led_vref(codec, fix, action); in alc236_fixup_hp_mute_led_micmute_vref()
4868 static inline void alc298_samsung_write_coef_pack(struct hda_codec *codec, in alc298_samsung_write_coef_pack() argument
4871 alc_write_coef_idx(codec, 0x23, coefs[0]); in alc298_samsung_write_coef_pack()
4872 alc_write_coef_idx(codec, 0x25, coefs[1]); in alc298_samsung_write_coef_pack()
4873 alc_write_coef_idx(codec, 0x26, 0xb011); in alc298_samsung_write_coef_pack()
4881 static void alc298_fixup_samsung_amp(struct hda_codec *codec, in alc298_fixup_samsung_amp() argument
4886 { 0x19, 0x00 }, { 0x20, 0xc0 }, { 0x22, 0x44 }, { 0x23, 0x08 }, in alc298_fixup_samsung_amp()
4887 { 0x24, 0x85 }, { 0x25, 0x41 }, { 0x35, 0x40 }, { 0x36, 0x01 }, in alc298_fixup_samsung_amp()
4888 { 0x38, 0x81 }, { 0x3a, 0x03 }, { 0x3b, 0x81 }, { 0x40, 0x3e }, in alc298_fixup_samsung_amp()
4889 { 0x41, 0x07 }, { 0x400, 0x1 } in alc298_fixup_samsung_amp()
4892 { 0x3a, { { 0x18, 0x1 }, { 0x26, 0x0 } } }, in alc298_fixup_samsung_amp()
4893 { 0x39, { { 0x18, 0x2 }, { 0x26, 0x1 } } } in alc298_fixup_samsung_amp()
4899 for (i = 0; i < ARRAY_SIZE(amps); i++) { in alc298_fixup_samsung_amp()
4900 alc_write_coef_idx(codec, 0x22, amps[i].nid); in alc298_fixup_samsung_amp()
4902 for (j = 0; j < ARRAY_SIZE(amps[i].init_seq); j++) in alc298_fixup_samsung_amp()
4903 alc298_samsung_write_coef_pack(codec, amps[i].init_seq[j]); in alc298_fixup_samsung_amp()
4905 for (j = 0; j < ARRAY_SIZE(init_seq); j++) in alc298_fixup_samsung_amp()
4906 alc298_samsung_write_coef_pack(codec, init_seq[j]); in alc298_fixup_samsung_amp()
4918 { 0x38, 18, {
4919 { 0x23e1, 0x0000 }, { 0x2012, 0x006f }, { 0x2014, 0x0000 },
4920 { 0x201b, 0x0001 }, { 0x201d, 0x0001 }, { 0x201f, 0x00fe },
4921 { 0x2021, 0x0000 }, { 0x2022, 0x0010 }, { 0x203d, 0x0005 },
4922 { 0x203f, 0x0003 }, { 0x2050, 0x002c }, { 0x2076, 0x000e },
4923 { 0x207c, 0x004a }, { 0x2081, 0x0003 }, { 0x2399, 0x0003 },
4924 { 0x23a4, 0x00b5 }, { 0x23a5, 0x0001 }, { 0x23ba, 0x0094 }
4926 { 0x39, 18, {
4927 { 0x23e1, 0x0000 }, { 0x2012, 0x006f }, { 0x2014, 0x0000 },
4928 { 0x201b, 0x0002 }, { 0x201d, 0x0002 }, { 0x201f, 0x00fd },
4929 { 0x2021, 0x0001 }, { 0x2022, 0x0010 }, { 0x203d, 0x0005 },
4930 { 0x203f, 0x0003 }, { 0x2050, 0x002c }, { 0x2076, 0x000e },
4931 { 0x207c, 0x004a }, { 0x2081, 0x0003 }, { 0x2399, 0x0003 },
4932 { 0x23a4, 0x00b5 }, { 0x23a5, 0x0001 }, { 0x23ba, 0x0094 }
4934 { 0x3c, 15, {
4935 { 0x23e1, 0x0000 }, { 0x2012, 0x006f }, { 0x2014, 0x0000 },
4936 { 0x201b, 0x0001 }, { 0x201d, 0x0001 }, { 0x201f, 0x00fe },
4937 { 0x2021, 0x0000 }, { 0x2022, 0x0010 }, { 0x203d, 0x0005 },
4938 { 0x203f, 0x0003 }, { 0x2050, 0x002c }, { 0x2076, 0x000e },
4939 { 0x207c, 0x004a }, { 0x2081, 0x0003 }, { 0x23ba, 0x008d }
4941 { 0x3d, 15, {
4942 { 0x23e1, 0x0000 }, { 0x2012, 0x006f }, { 0x2014, 0x0000 },
4943 { 0x201b, 0x0002 }, { 0x201d, 0x0002 }, { 0x201f, 0x00fd },
4944 { 0x2021, 0x0001 }, { 0x2022, 0x0010 }, { 0x203d, 0x0005 },
4945 { 0x203f, 0x0003 }, { 0x2050, 0x002c }, { 0x2076, 0x000e },
4946 { 0x207c, 0x004a }, { 0x2081, 0x0003 }, { 0x23ba, 0x008d }
4950 static void alc298_samsung_v2_enable_amps(struct hda_codec *codec) in alc298_samsung_v2_enable_amps() argument
4952 struct alc_spec *spec = codec->spec; in alc298_samsung_v2_enable_amps()
4954 { 0x203a, 0x0081 }, { 0x23ff, 0x0001 }, in alc298_samsung_v2_enable_amps()
4958 for (i = 0; i < spec->num_speaker_amps; i++) { in alc298_samsung_v2_enable_amps()
4959 alc_write_coef_idx(codec, 0x22, alc298_samsung_v2_amp_desc_tbl[i].nid); in alc298_samsung_v2_enable_amps()
4960 for (j = 0; j < ARRAY_SIZE(enable_seq); j++) in alc298_samsung_v2_enable_amps()
4961 alc298_samsung_write_coef_pack(codec, enable_seq[j]); in alc298_samsung_v2_enable_amps()
4962 codec_dbg(codec, "alc298_samsung_v2: Enabled speaker amp 0x%02x\n", in alc298_samsung_v2_enable_amps()
4967 static void alc298_samsung_v2_disable_amps(struct hda_codec *codec) in alc298_samsung_v2_disable_amps() argument
4969 struct alc_spec *spec = codec->spec; in alc298_samsung_v2_disable_amps()
4971 { 0x23ff, 0x0000 }, { 0x203a, 0x0080 }, in alc298_samsung_v2_disable_amps()
4975 for (i = 0; i < spec->num_speaker_amps; i++) { in alc298_samsung_v2_disable_amps()
4976 alc_write_coef_idx(codec, 0x22, alc298_samsung_v2_amp_desc_tbl[i].nid); in alc298_samsung_v2_disable_amps()
4977 for (j = 0; j < ARRAY_SIZE(disable_seq); j++) in alc298_samsung_v2_disable_amps()
4978 alc298_samsung_write_coef_pack(codec, disable_seq[j]); in alc298_samsung_v2_disable_amps()
4979 codec_dbg(codec, "alc298_samsung_v2: Disabled speaker amp 0x%02x\n", in alc298_samsung_v2_disable_amps()
4985 struct hda_codec *codec, in alc298_samsung_v2_playback_hook() argument
4991 alc298_samsung_v2_enable_amps(codec); in alc298_samsung_v2_playback_hook()
4993 alc298_samsung_v2_disable_amps(codec); in alc298_samsung_v2_playback_hook()
4996 static void alc298_samsung_v2_init_amps(struct hda_codec *codec, in alc298_samsung_v2_init_amps() argument
4999 struct alc_spec *spec = codec->spec; in alc298_samsung_v2_init_amps()
5003 spec->num_speaker_amps = num_speaker_amps; in alc298_samsung_v2_init_amps()
5006 alc298_samsung_v2_disable_amps(codec); in alc298_samsung_v2_init_amps()
5009 for (i = 0; i < spec->num_speaker_amps; i++) { in alc298_samsung_v2_init_amps()
5010 alc_write_coef_idx(codec, 0x22, alc298_samsung_v2_amp_desc_tbl[i].nid); in alc298_samsung_v2_init_amps()
5011 for (j = 0; j < alc298_samsung_v2_amp_desc_tbl[i].init_seq_size; j++) { in alc298_samsung_v2_init_amps()
5012 alc298_samsung_write_coef_pack(codec, in alc298_samsung_v2_init_amps()
5015 alc_write_coef_idx(codec, 0x89, 0x0); in alc298_samsung_v2_init_amps()
5016 codec_dbg(codec, "alc298_samsung_v2: Initialized speaker amp 0x%02x\n", in alc298_samsung_v2_init_amps()
5021 spec->gen.pcm_playback_hook = alc298_samsung_v2_playback_hook; in alc298_samsung_v2_init_amps()
5024 static void alc298_fixup_samsung_amp_v2_2_amps(struct hda_codec *codec, in alc298_fixup_samsung_amp_v2_2_amps() argument
5028 alc298_samsung_v2_init_amps(codec, 2); in alc298_fixup_samsung_amp_v2_2_amps()
5031 static void alc298_fixup_samsung_amp_v2_4_amps(struct hda_codec *codec, in alc298_fixup_samsung_amp_v2_4_amps() argument
5035 alc298_samsung_v2_init_amps(codec, 4); in alc298_fixup_samsung_amp_v2_4_amps()
5038 static void gpio2_mic_hotkey_event(struct hda_codec *codec, in gpio2_mic_hotkey_event() argument
5041 struct alc_spec *spec = codec->spec; in gpio2_mic_hotkey_event()
5045 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); in gpio2_mic_hotkey_event()
5046 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
5047 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); in gpio2_mic_hotkey_event()
5048 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
5051 static int alc_register_micmute_input_device(struct hda_codec *codec) in alc_register_micmute_input_device() argument
5053 struct alc_spec *spec = codec->spec; in alc_register_micmute_input_device()
5056 spec->kb_dev = input_allocate_device(); in alc_register_micmute_input_device()
5057 if (!spec->kb_dev) { in alc_register_micmute_input_device()
5058 codec_err(codec, "Out of memory (input_allocate_device)\n"); in alc_register_micmute_input_device()
5059 return -ENOMEM; in alc_register_micmute_input_device()
5062 spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX] = KEY_MICMUTE; in alc_register_micmute_input_device()
5064 spec->kb_dev->name = "Microphone Mute Button"; in alc_register_micmute_input_device()
5065 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); in alc_register_micmute_input_device()
5066 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); in alc_register_micmute_input_device()
5067 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); in alc_register_micmute_input_device()
5068 spec->kb_dev->keycode = spec->alc_mute_keycode_map; in alc_register_micmute_input_device()
5069 for (i = 0; i < ARRAY_SIZE(spec->alc_mute_keycode_map); i++) in alc_register_micmute_input_device()
5070 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); in alc_register_micmute_input_device()
5072 if (input_register_device(spec->kb_dev)) { in alc_register_micmute_input_device()
5073 codec_err(codec, "input_register_device failed\n"); in alc_register_micmute_input_device()
5074 input_free_device(spec->kb_dev); in alc_register_micmute_input_device()
5075 spec->kb_dev = NULL; in alc_register_micmute_input_device()
5076 return -ENOMEM; in alc_register_micmute_input_device()
5079 return 0; in alc_register_micmute_input_device()
5087 static void alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec *codec, in alc280_fixup_hp_gpio2_mic_hotkey() argument
5090 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio2_mic_hotkey()
5092 alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10); in alc280_fixup_hp_gpio2_mic_hotkey()
5094 spec->init_amp = ALC_INIT_DEFAULT; in alc280_fixup_hp_gpio2_mic_hotkey()
5095 if (alc_register_micmute_input_device(codec) != 0) in alc280_fixup_hp_gpio2_mic_hotkey()
5098 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey()
5099 spec->gpio_dir |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
5100 spec->gpio_data |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
5101 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc280_fixup_hp_gpio2_mic_hotkey()
5102 AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, 0x04); in alc280_fixup_hp_gpio2_mic_hotkey()
5103 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc280_fixup_hp_gpio2_mic_hotkey()
5108 if (!spec->kb_dev) in alc280_fixup_hp_gpio2_mic_hotkey()
5113 input_unregister_device(spec->kb_dev); in alc280_fixup_hp_gpio2_mic_hotkey()
5114 spec->kb_dev = NULL; in alc280_fixup_hp_gpio2_mic_hotkey()
5121 static void alc233_fixup_lenovo_line2_mic_hotkey(struct hda_codec *codec, in alc233_fixup_lenovo_line2_mic_hotkey() argument
5124 struct alc_spec *spec = codec->spec; in alc233_fixup_lenovo_line2_mic_hotkey()
5126 alc_fixup_hp_gpio_led(codec, action, 0, 0x04); in alc233_fixup_lenovo_line2_mic_hotkey()
5128 spec->init_amp = ALC_INIT_DEFAULT; in alc233_fixup_lenovo_line2_mic_hotkey()
5129 if (alc_register_micmute_input_device(codec) != 0) in alc233_fixup_lenovo_line2_mic_hotkey()
5132 snd_hda_jack_detect_enable_callback(codec, 0x1b, in alc233_fixup_lenovo_line2_mic_hotkey()
5137 if (!spec->kb_dev) in alc233_fixup_lenovo_line2_mic_hotkey()
5142 input_unregister_device(spec->kb_dev); in alc233_fixup_lenovo_line2_mic_hotkey()
5143 spec->kb_dev = NULL; in alc233_fixup_lenovo_line2_mic_hotkey()
5147 static void alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec, in alc269_fixup_hp_line1_mic1_led() argument
5150 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_line1_mic1_led()
5152 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1a); in alc269_fixup_hp_line1_mic1_led()
5154 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_line1_mic1_led()
5155 snd_hda_gen_add_micmute_led_cdev(codec, vref_micmute_led_set); in alc269_fixup_hp_line1_mic1_led()
5159 static void alc233_fixup_lenovo_low_en_micmute_led(struct hda_codec *codec, in alc233_fixup_lenovo_low_en_micmute_led() argument
5162 struct alc_spec *spec = codec->spec; in alc233_fixup_lenovo_low_en_micmute_led()
5165 spec->micmute_led_polarity = 1; in alc233_fixup_lenovo_low_en_micmute_led()
5166 alc233_fixup_lenovo_line2_mic_hotkey(codec, fix, action); in alc233_fixup_lenovo_low_en_micmute_led()
5169 static void alc_hp_mute_disable(struct hda_codec *codec, unsigned int delay) in alc_hp_mute_disable() argument
5171 if (delay <= 0) in alc_hp_mute_disable()
5173 snd_hda_codec_write(codec, 0x21, 0, in alc_hp_mute_disable()
5176 snd_hda_codec_write(codec, 0x21, 0, in alc_hp_mute_disable()
5177 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc_hp_mute_disable()
5181 static void alc_hp_enable_unmute(struct hda_codec *codec, unsigned int delay) in alc_hp_enable_unmute() argument
5183 if (delay <= 0) in alc_hp_enable_unmute()
5185 snd_hda_codec_write(codec, 0x21, 0, in alc_hp_enable_unmute()
5188 snd_hda_codec_write(codec, 0x21, 0, in alc_hp_enable_unmute()
5194 UPDATE_COEF(0x4a, 1<<8, 0),
5195 UPDATE_COEFEX(0x57, 0x05, 1<<14, 0),
5196 UPDATE_COEF(0x63, 3<<14, 3<<14),
5197 UPDATE_COEF(0x4a, 3<<4, 2<<4),
5198 UPDATE_COEF(0x4a, 3<<10, 3<<10),
5199 UPDATE_COEF(0x45, 0x3f<<10, 0x34<<10),
5200 UPDATE_COEF(0x4a, 3<<10, 0),
5204 static void alc_headset_mode_unplugged(struct hda_codec *codec) in alc_headset_mode_unplugged() argument
5206 struct alc_spec *spec = codec->spec; in alc_headset_mode_unplugged()
5208 WRITE_COEF(0x1b, 0x0c0b), /* LDO and MISC control */ in alc_headset_mode_unplugged()
5209 WRITE_COEF(0x45, 0xd089), /* UAJ function set to menual mode */ in alc_headset_mode_unplugged()
5210 UPDATE_COEFEX(0x57, 0x05, 1<<14, 0), /* Direct Drive HP Amp control(Set to verb control)*/ in alc_headset_mode_unplugged()
5211 WRITE_COEF(0x06, 0x6104), /* Set MIC2 Vref gate with HP */ in alc_headset_mode_unplugged()
5212 WRITE_COEFEX(0x57, 0x03, 0x8aa6), /* Direct Drive HP Amp control */ in alc_headset_mode_unplugged()
5216 WRITE_COEF(0x1b, 0x0c4b), /* LDO and MISC control */ in alc_headset_mode_unplugged()
5217 WRITE_COEF(0x45, 0xd089), /* UAJ function set to menual mode */ in alc_headset_mode_unplugged()
5218 WRITE_COEF(0x06, 0x6104), /* Set MIC2 Vref gate with HP */ in alc_headset_mode_unplugged()
5219 WRITE_COEFEX(0x57, 0x03, 0x09a3), /* Direct Drive HP Amp control */ in alc_headset_mode_unplugged()
5220 UPDATE_COEFEX(0x57, 0x05, 1<<14, 0), /* Direct Drive HP Amp control(Set to verb control)*/ in alc_headset_mode_unplugged()
5224 WRITE_COEF(0x1b, 0x0c0b), in alc_headset_mode_unplugged()
5225 WRITE_COEF(0x45, 0xc429), in alc_headset_mode_unplugged()
5226 UPDATE_COEF(0x35, 0x4000, 0), in alc_headset_mode_unplugged()
5227 WRITE_COEF(0x06, 0x2104), in alc_headset_mode_unplugged()
5228 WRITE_COEF(0x1a, 0x0001), in alc_headset_mode_unplugged()
5229 WRITE_COEF(0x26, 0x0004), in alc_headset_mode_unplugged()
5230 WRITE_COEF(0x32, 0x42a3), in alc_headset_mode_unplugged()
5234 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), in alc_headset_mode_unplugged()
5235 UPDATE_COEF(0x50, 0x2000, 0x2000), in alc_headset_mode_unplugged()
5236 UPDATE_COEF(0x56, 0x0006, 0x0006), in alc_headset_mode_unplugged()
5237 UPDATE_COEF(0x66, 0x0008, 0), in alc_headset_mode_unplugged()
5238 UPDATE_COEF(0x67, 0x2000, 0), in alc_headset_mode_unplugged()
5242 UPDATE_COEF(0x19, 0x1300, 0x0300), in alc_headset_mode_unplugged()
5246 WRITE_COEF(0x76, 0x000e), in alc_headset_mode_unplugged()
5247 WRITE_COEF(0x6c, 0x2400), in alc_headset_mode_unplugged()
5248 WRITE_COEF(0x18, 0x7308), in alc_headset_mode_unplugged()
5249 WRITE_COEF(0x6b, 0xc429), in alc_headset_mode_unplugged()
5253 UPDATE_COEF(0x10, 7<<8, 6<<8), /* SET Line1 JD to 0 */ in alc_headset_mode_unplugged()
5254 UPDATE_COEFEX(0x57, 0x05, 1<<15|1<<13, 0x0), /* SET charge pump by verb */ in alc_headset_mode_unplugged()
5255 UPDATE_COEFEX(0x57, 0x03, 1<<10, 1<<10), /* SET EN_OSW to 1 */ in alc_headset_mode_unplugged()
5256 UPDATE_COEF(0x1a, 1<<3, 1<<3), /* Combo JD gating with LINE1-VREFO */ in alc_headset_mode_unplugged()
5257 WRITE_COEF(0x45, 0xc429), /* Set to TRS type */ in alc_headset_mode_unplugged()
5258 UPDATE_COEF(0x4a, 0x000f, 0x000e), /* Combo Jack auto detect */ in alc_headset_mode_unplugged()
5262 WRITE_COEF(0x15, 0x0d40), in alc_headset_mode_unplugged()
5263 WRITE_COEF(0xb7, 0x802b), in alc_headset_mode_unplugged()
5267 UPDATE_COEF(0x63, 3<<14, 0), in alc_headset_mode_unplugged()
5271 UPDATE_COEF(0x4a, 0x0100, 0), in alc_headset_mode_unplugged()
5272 UPDATE_COEFEX(0x57, 0x05, 0x4000, 0), in alc_headset_mode_unplugged()
5273 UPDATE_COEF(0x6b, 0xf000, 0x5000), in alc_headset_mode_unplugged()
5274 UPDATE_COEF(0x4a, 0x0010, 0), in alc_headset_mode_unplugged()
5275 UPDATE_COEF(0x4a, 0x0c00, 0x0c00), in alc_headset_mode_unplugged()
5276 WRITE_COEF(0x45, 0x5289), in alc_headset_mode_unplugged()
5277 UPDATE_COEF(0x4a, 0x0c00, 0), in alc_headset_mode_unplugged()
5281 if (spec->no_internal_mic_pin) { in alc_headset_mode_unplugged()
5282 alc_update_coef_idx(codec, 0x45, 0xf<<12 | 1<<10, 5<<12); in alc_headset_mode_unplugged()
5286 switch (codec->core.vendor_id) { in alc_headset_mode_unplugged()
5287 case 0x10ec0255: in alc_headset_mode_unplugged()
5288 alc_process_coef_fw(codec, coef0255); in alc_headset_mode_unplugged()
5290 case 0x10ec0230: in alc_headset_mode_unplugged()
5291 case 0x10ec0236: in alc_headset_mode_unplugged()
5292 case 0x10ec0256: in alc_headset_mode_unplugged()
5293 case 0x19e58326: in alc_headset_mode_unplugged()
5294 alc_hp_mute_disable(codec, 75); in alc_headset_mode_unplugged()
5295 alc_process_coef_fw(codec, coef0256); in alc_headset_mode_unplugged()
5297 case 0x10ec0234: in alc_headset_mode_unplugged()
5298 case 0x10ec0274: in alc_headset_mode_unplugged()
5299 case 0x10ec0294: in alc_headset_mode_unplugged()
5300 alc_process_coef_fw(codec, coef0274); in alc_headset_mode_unplugged()
5302 case 0x10ec0233: in alc_headset_mode_unplugged()
5303 case 0x10ec0283: in alc_headset_mode_unplugged()
5304 alc_process_coef_fw(codec, coef0233); in alc_headset_mode_unplugged()
5306 case 0x10ec0286: in alc_headset_mode_unplugged()
5307 case 0x10ec0288: in alc_headset_mode_unplugged()
5308 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_unplugged()
5310 case 0x10ec0298: in alc_headset_mode_unplugged()
5311 alc_process_coef_fw(codec, coef0298); in alc_headset_mode_unplugged()
5312 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_unplugged()
5314 case 0x10ec0292: in alc_headset_mode_unplugged()
5315 alc_process_coef_fw(codec, coef0292); in alc_headset_mode_unplugged()
5317 case 0x10ec0293: in alc_headset_mode_unplugged()
5318 alc_process_coef_fw(codec, coef0293); in alc_headset_mode_unplugged()
5320 case 0x10ec0668: in alc_headset_mode_unplugged()
5321 alc_process_coef_fw(codec, coef0668); in alc_headset_mode_unplugged()
5323 case 0x10ec0215: in alc_headset_mode_unplugged()
5324 case 0x10ec0225: in alc_headset_mode_unplugged()
5325 case 0x10ec0285: in alc_headset_mode_unplugged()
5326 case 0x10ec0295: in alc_headset_mode_unplugged()
5327 case 0x10ec0289: in alc_headset_mode_unplugged()
5328 case 0x10ec0299: in alc_headset_mode_unplugged()
5329 alc_hp_mute_disable(codec, 75); in alc_headset_mode_unplugged()
5330 alc_process_coef_fw(codec, alc225_pre_hsmode); in alc_headset_mode_unplugged()
5331 alc_process_coef_fw(codec, coef0225); in alc_headset_mode_unplugged()
5333 case 0x10ec0867: in alc_headset_mode_unplugged()
5334 alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); in alc_headset_mode_unplugged()
5337 codec_dbg(codec, "Headset jack set to unplugged mode.\n"); in alc_headset_mode_unplugged()
5341 static void alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin, in alc_headset_mode_mic_in() argument
5345 WRITE_COEFEX(0x57, 0x03, 0x8aa6), in alc_headset_mode_mic_in()
5346 WRITE_COEF(0x06, 0x6100), /* Set MIC2 Vref gate to normal */ in alc_headset_mode_mic_in()
5350 UPDATE_COEFEX(0x57, 0x05, 1<<14, 1<<14), /* Direct Drive HP Amp control(Set to verb control)*/ in alc_headset_mode_mic_in()
5351 WRITE_COEFEX(0x57, 0x03, 0x09a3), in alc_headset_mode_mic_in()
5352 WRITE_COEF(0x06, 0x6100), /* Set MIC2 Vref gate to normal */ in alc_headset_mode_mic_in()
5356 UPDATE_COEF(0x35, 0, 1<<14), in alc_headset_mode_mic_in()
5357 WRITE_COEF(0x06, 0x2100), in alc_headset_mode_mic_in()
5358 WRITE_COEF(0x1a, 0x0021), in alc_headset_mode_mic_in()
5359 WRITE_COEF(0x26, 0x008c), in alc_headset_mode_mic_in()
5363 UPDATE_COEF(0x4f, 0x00c0, 0), in alc_headset_mode_mic_in()
5364 UPDATE_COEF(0x50, 0x2000, 0), in alc_headset_mode_mic_in()
5365 UPDATE_COEF(0x56, 0x0006, 0), in alc_headset_mode_mic_in()
5366 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), in alc_headset_mode_mic_in()
5367 UPDATE_COEF(0x66, 0x0008, 0x0008), in alc_headset_mode_mic_in()
5368 UPDATE_COEF(0x67, 0x2000, 0x2000), in alc_headset_mode_mic_in()
5372 WRITE_COEF(0x19, 0xa208), in alc_headset_mode_mic_in()
5373 WRITE_COEF(0x2e, 0xacf0), in alc_headset_mode_mic_in()
5377 UPDATE_COEFEX(0x57, 0x05, 0, 1<<15|1<<13), /* SET charge pump by verb */ in alc_headset_mode_mic_in()
5378 UPDATE_COEFEX(0x57, 0x03, 1<<10, 0), /* SET EN_OSW to 0 */ in alc_headset_mode_mic_in()
5379 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ in alc_headset_mode_mic_in()
5383 WRITE_COEF(0xb7, 0x802b), in alc_headset_mode_mic_in()
5384 WRITE_COEF(0xb5, 0x1040), in alc_headset_mode_mic_in()
5385 UPDATE_COEF(0xc3, 0, 1<<12), in alc_headset_mode_mic_in()
5389 UPDATE_COEFEX(0x57, 0x05, 1<<14, 1<<14), in alc_headset_mode_mic_in()
5390 UPDATE_COEF(0x4a, 3<<4, 2<<4), in alc_headset_mode_mic_in()
5391 UPDATE_COEF(0x63, 3<<14, 0), in alc_headset_mode_mic_in()
5395 UPDATE_COEFEX(0x57, 0x05, 0x4000, 0x4000), in alc_headset_mode_mic_in()
5396 UPDATE_COEF(0x4a, 0x0010, 0), in alc_headset_mode_mic_in()
5397 UPDATE_COEF(0x6b, 0xf000, 0), in alc_headset_mode_mic_in()
5401 switch (codec->core.vendor_id) { in alc_headset_mode_mic_in()
5402 case 0x10ec0255: in alc_headset_mode_mic_in()
5403 alc_write_coef_idx(codec, 0x45, 0xc489); in alc_headset_mode_mic_in()
5404 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5405 alc_process_coef_fw(codec, coef0255); in alc_headset_mode_mic_in()
5406 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5408 case 0x10ec0230: in alc_headset_mode_mic_in()
5409 case 0x10ec0236: in alc_headset_mode_mic_in()
5410 case 0x10ec0256: in alc_headset_mode_mic_in()
5411 case 0x19e58326: in alc_headset_mode_mic_in()
5412 alc_write_coef_idx(codec, 0x45, 0xc489); in alc_headset_mode_mic_in()
5413 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5414 alc_process_coef_fw(codec, coef0256); in alc_headset_mode_mic_in()
5415 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5417 case 0x10ec0234: in alc_headset_mode_mic_in()
5418 case 0x10ec0274: in alc_headset_mode_mic_in()
5419 case 0x10ec0294: in alc_headset_mode_mic_in()
5420 alc_write_coef_idx(codec, 0x45, 0x4689); in alc_headset_mode_mic_in()
5421 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5422 alc_process_coef_fw(codec, coef0274); in alc_headset_mode_mic_in()
5423 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5425 case 0x10ec0233: in alc_headset_mode_mic_in()
5426 case 0x10ec0283: in alc_headset_mode_mic_in()
5427 alc_write_coef_idx(codec, 0x45, 0xc429); in alc_headset_mode_mic_in()
5428 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5429 alc_process_coef_fw(codec, coef0233); in alc_headset_mode_mic_in()
5430 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5432 case 0x10ec0286: in alc_headset_mode_mic_in()
5433 case 0x10ec0288: in alc_headset_mode_mic_in()
5434 case 0x10ec0298: in alc_headset_mode_mic_in()
5435 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5436 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_mic_in()
5437 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5439 case 0x10ec0292: in alc_headset_mode_mic_in()
5440 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5441 alc_process_coef_fw(codec, coef0292); in alc_headset_mode_mic_in()
5443 case 0x10ec0293: in alc_headset_mode_mic_in()
5445 alc_write_coef_idx(codec, 0x45, 0xc429); in alc_headset_mode_mic_in()
5446 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5447 alc_process_coef_fw(codec, coef0293); in alc_headset_mode_mic_in()
5448 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5450 case 0x10ec0867: in alc_headset_mode_mic_in()
5451 alc_update_coefex_idx(codec, 0x57, 0x5, 0, 1<<14); in alc_headset_mode_mic_in()
5453 case 0x10ec0221: in alc_headset_mode_mic_in()
5454 case 0x10ec0662: in alc_headset_mode_mic_in()
5455 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5456 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5458 case 0x10ec0668: in alc_headset_mode_mic_in()
5459 alc_write_coef_idx(codec, 0x11, 0x0001); in alc_headset_mode_mic_in()
5460 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5461 alc_process_coef_fw(codec, coef0688); in alc_headset_mode_mic_in()
5462 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5464 case 0x10ec0215: in alc_headset_mode_mic_in()
5465 case 0x10ec0225: in alc_headset_mode_mic_in()
5466 case 0x10ec0285: in alc_headset_mode_mic_in()
5467 case 0x10ec0295: in alc_headset_mode_mic_in()
5468 case 0x10ec0289: in alc_headset_mode_mic_in()
5469 case 0x10ec0299: in alc_headset_mode_mic_in()
5470 alc_process_coef_fw(codec, alc225_pre_hsmode); in alc_headset_mode_mic_in()
5471 alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x31<<10); in alc_headset_mode_mic_in()
5472 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5473 alc_process_coef_fw(codec, coef0225); in alc_headset_mode_mic_in()
5474 snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); in alc_headset_mode_mic_in()
5477 codec_dbg(codec, "Headset jack set to mic-in mode.\n"); in alc_headset_mode_mic_in()
5480 static void alc_headset_mode_default(struct hda_codec *codec) in alc_headset_mode_default() argument
5483 UPDATE_COEF(0x45, 0x3f<<10, 0x30<<10), in alc_headset_mode_default()
5484 UPDATE_COEF(0x45, 0x3f<<10, 0x31<<10), in alc_headset_mode_default()
5485 UPDATE_COEF(0x49, 3<<8, 0<<8), in alc_headset_mode_default()
5486 UPDATE_COEF(0x4a, 3<<4, 3<<4), in alc_headset_mode_default()
5487 UPDATE_COEF(0x63, 3<<14, 0), in alc_headset_mode_default()
5488 UPDATE_COEF(0x67, 0xf000, 0x3000), in alc_headset_mode_default()
5492 WRITE_COEF(0x45, 0xc089), in alc_headset_mode_default()
5493 WRITE_COEF(0x45, 0xc489), in alc_headset_mode_default()
5494 WRITE_COEFEX(0x57, 0x03, 0x8ea6), in alc_headset_mode_default()
5495 WRITE_COEF(0x49, 0x0049), in alc_headset_mode_default()
5499 WRITE_COEF(0x45, 0xc489), in alc_headset_mode_default()
5500 WRITE_COEFEX(0x57, 0x03, 0x0da3), in alc_headset_mode_default()
5501 WRITE_COEF(0x49, 0x0049), in alc_headset_mode_default()
5502 UPDATE_COEFEX(0x57, 0x05, 1<<14, 0), /* Direct Drive HP Amp control(Set to verb control)*/ in alc_headset_mode_default()
5503 WRITE_COEF(0x06, 0x6100), in alc_headset_mode_default()
5507 WRITE_COEF(0x06, 0x2100), in alc_headset_mode_default()
5508 WRITE_COEF(0x32, 0x4ea3), in alc_headset_mode_default()
5512 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), /* Set to TRS type */ in alc_headset_mode_default()
5513 UPDATE_COEF(0x50, 0x2000, 0x2000), in alc_headset_mode_default()
5514 UPDATE_COEF(0x56, 0x0006, 0x0006), in alc_headset_mode_default()
5515 UPDATE_COEF(0x66, 0x0008, 0), in alc_headset_mode_default()
5516 UPDATE_COEF(0x67, 0x2000, 0), in alc_headset_mode_default()
5520 WRITE_COEF(0x76, 0x000e), in alc_headset_mode_default()
5521 WRITE_COEF(0x6c, 0x2400), in alc_headset_mode_default()
5522 WRITE_COEF(0x6b, 0xc429), in alc_headset_mode_default()
5523 WRITE_COEF(0x18, 0x7308), in alc_headset_mode_default()
5527 UPDATE_COEF(0x4a, 0x000f, 0x000e), /* Combo Jack auto detect */ in alc_headset_mode_default()
5528 WRITE_COEF(0x45, 0xC429), /* Set to TRS type */ in alc_headset_mode_default()
5529 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ in alc_headset_mode_default()
5533 WRITE_COEF(0x11, 0x0041), in alc_headset_mode_default()
5534 WRITE_COEF(0x15, 0x0d40), in alc_headset_mode_default()
5535 WRITE_COEF(0xb7, 0x802b), in alc_headset_mode_default()
5539 WRITE_COEF(0x45, 0x4289), in alc_headset_mode_default()
5540 UPDATE_COEF(0x4a, 0x0010, 0x0010), in alc_headset_mode_default()
5541 UPDATE_COEF(0x6b, 0x0f00, 0), in alc_headset_mode_default()
5542 UPDATE_COEF(0x49, 0x0300, 0x0300), in alc_headset_mode_default()
5546 switch (codec->core.vendor_id) { in alc_headset_mode_default()
5547 case 0x10ec0215: in alc_headset_mode_default()
5548 case 0x10ec0225: in alc_headset_mode_default()
5549 case 0x10ec0285: in alc_headset_mode_default()
5550 case 0x10ec0295: in alc_headset_mode_default()
5551 case 0x10ec0289: in alc_headset_mode_default()
5552 case 0x10ec0299: in alc_headset_mode_default()
5553 alc_process_coef_fw(codec, alc225_pre_hsmode); in alc_headset_mode_default()
5554 alc_process_coef_fw(codec, coef0225); in alc_headset_mode_default()
5555 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_default()
5557 case 0x10ec0255: in alc_headset_mode_default()
5558 alc_process_coef_fw(codec, coef0255); in alc_headset_mode_default()
5560 case 0x10ec0230: in alc_headset_mode_default()
5561 case 0x10ec0236: in alc_headset_mode_default()
5562 case 0x10ec0256: in alc_headset_mode_default()
5563 case 0x19e58326: in alc_headset_mode_default()
5564 alc_write_coef_idx(codec, 0x1b, 0x0e4b); in alc_headset_mode_default()
5565 alc_write_coef_idx(codec, 0x45, 0xc089); in alc_headset_mode_default()
5567 alc_process_coef_fw(codec, coef0256); in alc_headset_mode_default()
5568 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_default()
5570 case 0x10ec0234: in alc_headset_mode_default()
5571 case 0x10ec0274: in alc_headset_mode_default()
5572 case 0x10ec0294: in alc_headset_mode_default()
5573 alc_process_coef_fw(codec, coef0274); in alc_headset_mode_default()
5575 case 0x10ec0233: in alc_headset_mode_default()
5576 case 0x10ec0283: in alc_headset_mode_default()
5577 alc_process_coef_fw(codec, coef0233); in alc_headset_mode_default()
5579 case 0x10ec0286: in alc_headset_mode_default()
5580 case 0x10ec0288: in alc_headset_mode_default()
5581 case 0x10ec0298: in alc_headset_mode_default()
5582 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_default()
5584 case 0x10ec0292: in alc_headset_mode_default()
5585 alc_process_coef_fw(codec, coef0292); in alc_headset_mode_default()
5587 case 0x10ec0293: in alc_headset_mode_default()
5588 alc_process_coef_fw(codec, coef0293); in alc_headset_mode_default()
5590 case 0x10ec0668: in alc_headset_mode_default()
5591 alc_process_coef_fw(codec, coef0688); in alc_headset_mode_default()
5593 case 0x10ec0867: in alc_headset_mode_default()
5594 alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); in alc_headset_mode_default()
5597 codec_dbg(codec, "Headset jack set to headphone (default) mode.\n"); in alc_headset_mode_default()
5601 static void alc_headset_mode_ctia(struct hda_codec *codec) in alc_headset_mode_ctia() argument
5606 WRITE_COEF(0x45, 0xd489), /* Set to CTIA type */ in alc_headset_mode_ctia()
5607 WRITE_COEF(0x1b, 0x0c2b), in alc_headset_mode_ctia()
5608 WRITE_COEFEX(0x57, 0x03, 0x8ea6), in alc_headset_mode_ctia()
5612 WRITE_COEF(0x45, 0xd489), /* Set to CTIA type */ in alc_headset_mode_ctia()
5613 WRITE_COEF(0x1b, 0x0e6b), in alc_headset_mode_ctia()
5617 WRITE_COEF(0x45, 0xd429), in alc_headset_mode_ctia()
5618 WRITE_COEF(0x1b, 0x0c2b), in alc_headset_mode_ctia()
5619 WRITE_COEF(0x32, 0x4ea3), in alc_headset_mode_ctia()
5623 UPDATE_COEF(0x50, 0x2000, 0x2000), in alc_headset_mode_ctia()
5624 UPDATE_COEF(0x56, 0x0006, 0x0006), in alc_headset_mode_ctia()
5625 UPDATE_COEF(0x66, 0x0008, 0), in alc_headset_mode_ctia()
5626 UPDATE_COEF(0x67, 0x2000, 0), in alc_headset_mode_ctia()
5630 WRITE_COEF(0x6b, 0xd429), in alc_headset_mode_ctia()
5631 WRITE_COEF(0x76, 0x0008), in alc_headset_mode_ctia()
5632 WRITE_COEF(0x18, 0x7388), in alc_headset_mode_ctia()
5636 WRITE_COEF(0x45, 0xd429), /* Set to ctia type */ in alc_headset_mode_ctia()
5637 UPDATE_COEF(0x10, 7<<8, 7<<8), /* SET Line1 JD to 1 */ in alc_headset_mode_ctia()
5641 WRITE_COEF(0x11, 0x0001), in alc_headset_mode_ctia()
5642 WRITE_COEF(0x15, 0x0d60), in alc_headset_mode_ctia()
5643 WRITE_COEF(0xc3, 0x0000), in alc_headset_mode_ctia()
5647 UPDATE_COEF(0x45, 0x3f<<10, 0x35<<10), in alc_headset_mode_ctia()
5648 UPDATE_COEF(0x63, 3<<14, 2<<14), in alc_headset_mode_ctia()
5652 UPDATE_COEF(0x45, 0x3f<<10, 0x35<<10), in alc_headset_mode_ctia()
5653 UPDATE_COEF(0x63, 3<<14, 1<<14), in alc_headset_mode_ctia()
5657 switch (codec->core.vendor_id) { in alc_headset_mode_ctia()
5658 case 0x10ec0255: in alc_headset_mode_ctia()
5659 alc_process_coef_fw(codec, coef0255); in alc_headset_mode_ctia()
5661 case 0x10ec0230: in alc_headset_mode_ctia()
5662 case 0x10ec0236: in alc_headset_mode_ctia()
5663 case 0x10ec0256: in alc_headset_mode_ctia()
5664 case 0x19e58326: in alc_headset_mode_ctia()
5665 alc_process_coef_fw(codec, coef0256); in alc_headset_mode_ctia()
5666 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_ctia()
5668 case 0x10ec0234: in alc_headset_mode_ctia()
5669 case 0x10ec0274: in alc_headset_mode_ctia()
5670 case 0x10ec0294: in alc_headset_mode_ctia()
5671 alc_write_coef_idx(codec, 0x45, 0xd689); in alc_headset_mode_ctia()
5673 case 0x10ec0233: in alc_headset_mode_ctia()
5674 case 0x10ec0283: in alc_headset_mode_ctia()
5675 alc_process_coef_fw(codec, coef0233); in alc_headset_mode_ctia()
5677 case 0x10ec0298: in alc_headset_mode_ctia()
5678 val = alc_read_coef_idx(codec, 0x50); in alc_headset_mode_ctia()
5680 alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0020); in alc_headset_mode_ctia()
5681 alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); in alc_headset_mode_ctia()
5684 alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010); in alc_headset_mode_ctia()
5685 alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); in alc_headset_mode_ctia()
5689 case 0x10ec0286: in alc_headset_mode_ctia()
5690 case 0x10ec0288: in alc_headset_mode_ctia()
5691 alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); in alc_headset_mode_ctia()
5693 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_ctia()
5695 case 0x10ec0292: in alc_headset_mode_ctia()
5696 alc_process_coef_fw(codec, coef0292); in alc_headset_mode_ctia()
5698 case 0x10ec0293: in alc_headset_mode_ctia()
5699 alc_process_coef_fw(codec, coef0293); in alc_headset_mode_ctia()
5701 case 0x10ec0668: in alc_headset_mode_ctia()
5702 alc_process_coef_fw(codec, coef0688); in alc_headset_mode_ctia()
5704 case 0x10ec0215: in alc_headset_mode_ctia()
5705 case 0x10ec0225: in alc_headset_mode_ctia()
5706 case 0x10ec0285: in alc_headset_mode_ctia()
5707 case 0x10ec0295: in alc_headset_mode_ctia()
5708 case 0x10ec0289: in alc_headset_mode_ctia()
5709 case 0x10ec0299: in alc_headset_mode_ctia()
5710 val = alc_read_coef_idx(codec, 0x45); in alc_headset_mode_ctia()
5712 alc_process_coef_fw(codec, coef0225_2); in alc_headset_mode_ctia()
5714 alc_process_coef_fw(codec, coef0225_1); in alc_headset_mode_ctia()
5715 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_ctia()
5717 case 0x10ec0867: in alc_headset_mode_ctia()
5718 alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); in alc_headset_mode_ctia()
5721 codec_dbg(codec, "Headset jack set to iPhone-style headset mode.\n"); in alc_headset_mode_ctia()
5725 static void alc_headset_mode_omtp(struct hda_codec *codec) in alc_headset_mode_omtp() argument
5728 WRITE_COEF(0x45, 0xe489), /* Set to OMTP Type */ in alc_headset_mode_omtp()
5729 WRITE_COEF(0x1b, 0x0c2b), in alc_headset_mode_omtp()
5730 WRITE_COEFEX(0x57, 0x03, 0x8ea6), in alc_headset_mode_omtp()
5734 WRITE_COEF(0x45, 0xe489), /* Set to OMTP Type */ in alc_headset_mode_omtp()
5735 WRITE_COEF(0x1b, 0x0e6b), in alc_headset_mode_omtp()
5739 WRITE_COEF(0x45, 0xe429), in alc_headset_mode_omtp()
5740 WRITE_COEF(0x1b, 0x0c2b), in alc_headset_mode_omtp()
5741 WRITE_COEF(0x32, 0x4ea3), in alc_headset_mode_omtp()
5745 UPDATE_COEF(0x50, 0x2000, 0x2000), in alc_headset_mode_omtp()
5746 UPDATE_COEF(0x56, 0x0006, 0x0006), in alc_headset_mode_omtp()
5747 UPDATE_COEF(0x66, 0x0008, 0), in alc_headset_mode_omtp()
5748 UPDATE_COEF(0x67, 0x2000, 0), in alc_headset_mode_omtp()
5752 WRITE_COEF(0x6b, 0xe429), in alc_headset_mode_omtp()
5753 WRITE_COEF(0x76, 0x0008), in alc_headset_mode_omtp()
5754 WRITE_COEF(0x18, 0x7388), in alc_headset_mode_omtp()
5758 WRITE_COEF(0x45, 0xe429), /* Set to omtp type */ in alc_headset_mode_omtp()
5759 UPDATE_COEF(0x10, 7<<8, 7<<8), /* SET Line1 JD to 1 */ in alc_headset_mode_omtp()
5763 WRITE_COEF(0x11, 0x0001), in alc_headset_mode_omtp()
5764 WRITE_COEF(0x15, 0x0d50), in alc_headset_mode_omtp()
5765 WRITE_COEF(0xc3, 0x0000), in alc_headset_mode_omtp()
5769 UPDATE_COEF(0x45, 0x3f<<10, 0x39<<10), in alc_headset_mode_omtp()
5770 UPDATE_COEF(0x63, 3<<14, 2<<14), in alc_headset_mode_omtp()
5774 switch (codec->core.vendor_id) { in alc_headset_mode_omtp()
5775 case 0x10ec0255: in alc_headset_mode_omtp()
5776 alc_process_coef_fw(codec, coef0255); in alc_headset_mode_omtp()
5778 case 0x10ec0230: in alc_headset_mode_omtp()
5779 case 0x10ec0236: in alc_headset_mode_omtp()
5780 case 0x10ec0256: in alc_headset_mode_omtp()
5781 case 0x19e58326: in alc_headset_mode_omtp()
5782 alc_process_coef_fw(codec, coef0256); in alc_headset_mode_omtp()
5783 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_omtp()
5785 case 0x10ec0234: in alc_headset_mode_omtp()
5786 case 0x10ec0274: in alc_headset_mode_omtp()
5787 case 0x10ec0294: in alc_headset_mode_omtp()
5788 alc_write_coef_idx(codec, 0x45, 0xe689); in alc_headset_mode_omtp()
5790 case 0x10ec0233: in alc_headset_mode_omtp()
5791 case 0x10ec0283: in alc_headset_mode_omtp()
5792 alc_process_coef_fw(codec, coef0233); in alc_headset_mode_omtp()
5794 case 0x10ec0298: in alc_headset_mode_omtp()
5795 alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010);/* Headset output enable */ in alc_headset_mode_omtp()
5796 alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xe400); in alc_headset_mode_omtp()
5799 case 0x10ec0286: in alc_headset_mode_omtp()
5800 case 0x10ec0288: in alc_headset_mode_omtp()
5801 alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xe400); in alc_headset_mode_omtp()
5803 alc_process_coef_fw(codec, coef0288); in alc_headset_mode_omtp()
5805 case 0x10ec0292: in alc_headset_mode_omtp()
5806 alc_process_coef_fw(codec, coef0292); in alc_headset_mode_omtp()
5808 case 0x10ec0293: in alc_headset_mode_omtp()
5809 alc_process_coef_fw(codec, coef0293); in alc_headset_mode_omtp()
5811 case 0x10ec0668: in alc_headset_mode_omtp()
5812 alc_process_coef_fw(codec, coef0688); in alc_headset_mode_omtp()
5814 case 0x10ec0215: in alc_headset_mode_omtp()
5815 case 0x10ec0225: in alc_headset_mode_omtp()
5816 case 0x10ec0285: in alc_headset_mode_omtp()
5817 case 0x10ec0295: in alc_headset_mode_omtp()
5818 case 0x10ec0289: in alc_headset_mode_omtp()
5819 case 0x10ec0299: in alc_headset_mode_omtp()
5820 alc_process_coef_fw(codec, coef0225); in alc_headset_mode_omtp()
5821 alc_hp_enable_unmute(codec, 75); in alc_headset_mode_omtp()
5824 codec_dbg(codec, "Headset jack set to Nokia-style headset mode.\n"); in alc_headset_mode_omtp()
5827 static void alc_determine_headset_type(struct hda_codec *codec) in alc_determine_headset_type() argument
5831 struct alc_spec *spec = codec->spec; in alc_determine_headset_type()
5833 WRITE_COEF(0x45, 0xd089), /* combo jack auto switch control(Check type)*/ in alc_determine_headset_type()
5834 WRITE_COEF(0x49, 0x0149), /* combo jack auto switch control(Vref in alc_determine_headset_type()
5839 UPDATE_COEF(0x4f, 0xfcc0, 0xd400), /* Check Type */ in alc_determine_headset_type()
5843 UPDATE_COEF(0x50, 0x2000, 0x2000), in alc_determine_headset_type()
5844 UPDATE_COEF(0x56, 0x0006, 0x0006), in alc_determine_headset_type()
5845 UPDATE_COEF(0x66, 0x0008, 0), in alc_determine_headset_type()
5846 UPDATE_COEF(0x67, 0x2000, 0), in alc_determine_headset_type()
5847 UPDATE_COEF(0x19, 0x1300, 0x1300), in alc_determine_headset_type()
5851 UPDATE_COEF(0x4a, 0x000f, 0x0008), /* Combo Jack auto detect */ in alc_determine_headset_type()
5852 WRITE_COEF(0x45, 0xD429), /* Set to ctia type */ in alc_determine_headset_type()
5856 WRITE_COEF(0x11, 0x0001), in alc_determine_headset_type()
5857 WRITE_COEF(0xb7, 0x802b), in alc_determine_headset_type()
5858 WRITE_COEF(0x15, 0x0d60), in alc_determine_headset_type()
5859 WRITE_COEF(0xc3, 0x0c00), in alc_determine_headset_type()
5863 UPDATE_COEF(0x4a, 0x0010, 0), in alc_determine_headset_type()
5864 UPDATE_COEF(0x4a, 0x8000, 0), in alc_determine_headset_type()
5865 WRITE_COEF(0x45, 0xd289), in alc_determine_headset_type()
5866 UPDATE_COEF(0x49, 0x0300, 0x0300), in alc_determine_headset_type()
5870 if (spec->no_internal_mic_pin) { in alc_determine_headset_type()
5871 alc_update_coef_idx(codec, 0x45, 0xf<<12 | 1<<10, 5<<12); in alc_determine_headset_type()
5875 switch (codec->core.vendor_id) { in alc_determine_headset_type()
5876 case 0x10ec0255: in alc_determine_headset_type()
5877 alc_process_coef_fw(codec, coef0255); in alc_determine_headset_type()
5879 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5880 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5882 case 0x10ec0230: in alc_determine_headset_type()
5883 case 0x10ec0236: in alc_determine_headset_type()
5884 case 0x10ec0256: in alc_determine_headset_type()
5885 case 0x19e58326: in alc_determine_headset_type()
5886 alc_write_coef_idx(codec, 0x1b, 0x0e4b); in alc_determine_headset_type()
5887 alc_write_coef_idx(codec, 0x06, 0x6104); in alc_determine_headset_type()
5888 alc_write_coefex_idx(codec, 0x57, 0x3, 0x09a3); in alc_determine_headset_type()
5890 alc_process_coef_fw(codec, coef0255); in alc_determine_headset_type()
5892 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5893 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5895 alc_write_coef_idx(codec, 0x45, 0xe089); in alc_determine_headset_type()
5897 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5898 if ((val & 0x0070) == 0x0070) in alc_determine_headset_type()
5903 alc_write_coefex_idx(codec, 0x57, 0x3, 0x0da3); in alc_determine_headset_type()
5904 alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); in alc_determine_headset_type()
5906 case 0x10ec0234: in alc_determine_headset_type()
5907 case 0x10ec0274: in alc_determine_headset_type()
5908 case 0x10ec0294: in alc_determine_headset_type()
5909 alc_process_coef_fw(codec, coef0274); in alc_determine_headset_type()
5911 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5912 is_ctia = (val & 0x00f0) == 0x00f0; in alc_determine_headset_type()
5914 case 0x10ec0233: in alc_determine_headset_type()
5915 case 0x10ec0283: in alc_determine_headset_type()
5916 alc_write_coef_idx(codec, 0x45, 0xd029); in alc_determine_headset_type()
5918 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5919 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5921 case 0x10ec0298: in alc_determine_headset_type()
5922 snd_hda_codec_write(codec, 0x21, 0, in alc_determine_headset_type()
5925 snd_hda_codec_write(codec, 0x21, 0, in alc_determine_headset_type()
5926 AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); in alc_determine_headset_type()
5929 val = alc_read_coef_idx(codec, 0x50); in alc_determine_headset_type()
5931 alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0020); in alc_determine_headset_type()
5932 alc_process_coef_fw(codec, coef0288); in alc_determine_headset_type()
5934 val = alc_read_coef_idx(codec, 0x50); in alc_determine_headset_type()
5935 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5937 alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010); in alc_determine_headset_type()
5938 alc_process_coef_fw(codec, coef0288); in alc_determine_headset_type()
5940 val = alc_read_coef_idx(codec, 0x50); in alc_determine_headset_type()
5941 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5943 alc_process_coef_fw(codec, coef0298); in alc_determine_headset_type()
5944 snd_hda_codec_write(codec, 0x21, 0, in alc_determine_headset_type()
5947 snd_hda_codec_write(codec, 0x21, 0, in alc_determine_headset_type()
5950 case 0x10ec0286: in alc_determine_headset_type()
5951 case 0x10ec0288: in alc_determine_headset_type()
5952 alc_process_coef_fw(codec, coef0288); in alc_determine_headset_type()
5954 val = alc_read_coef_idx(codec, 0x50); in alc_determine_headset_type()
5955 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5957 case 0x10ec0292: in alc_determine_headset_type()
5958 alc_write_coef_idx(codec, 0x6b, 0xd429); in alc_determine_headset_type()
5960 val = alc_read_coef_idx(codec, 0x6c); in alc_determine_headset_type()
5961 is_ctia = (val & 0x001c) == 0x001c; in alc_determine_headset_type()
5963 case 0x10ec0293: in alc_determine_headset_type()
5964 alc_process_coef_fw(codec, coef0293); in alc_determine_headset_type()
5966 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5967 is_ctia = (val & 0x0070) == 0x0070; in alc_determine_headset_type()
5969 case 0x10ec0668: in alc_determine_headset_type()
5970 alc_process_coef_fw(codec, coef0688); in alc_determine_headset_type()
5972 val = alc_read_coef_idx(codec, 0xbe); in alc_determine_headset_type()
5973 is_ctia = (val & 0x1c02) == 0x1c02; in alc_determine_headset_type()
5975 case 0x10ec0215: in alc_determine_headset_type()
5976 case 0x10ec0225: in alc_determine_headset_type()
5977 case 0x10ec0285: in alc_determine_headset_type()
5978 case 0x10ec0295: in alc_determine_headset_type()
5979 case 0x10ec0289: in alc_determine_headset_type()
5980 case 0x10ec0299: in alc_determine_headset_type()
5981 alc_process_coef_fw(codec, alc225_pre_hsmode); in alc_determine_headset_type()
5982 alc_update_coef_idx(codec, 0x67, 0xf000, 0x1000); in alc_determine_headset_type()
5983 val = alc_read_coef_idx(codec, 0x45); in alc_determine_headset_type()
5985 alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x34<<10); in alc_determine_headset_type()
5986 alc_update_coef_idx(codec, 0x49, 3<<8, 2<<8); in alc_determine_headset_type()
5988 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5989 is_ctia = (val & 0x00f0) == 0x00f0; in alc_determine_headset_type()
5991 alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x34<<10); in alc_determine_headset_type()
5992 alc_update_coef_idx(codec, 0x49, 3<<8, 1<<8); in alc_determine_headset_type()
5994 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
5995 is_ctia = (val & 0x00f0) == 0x00f0; in alc_determine_headset_type()
5998 alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x38<<10); in alc_determine_headset_type()
5999 alc_update_coef_idx(codec, 0x49, 3<<8, 1<<8); in alc_determine_headset_type()
6001 val = alc_read_coef_idx(codec, 0x46); in alc_determine_headset_type()
6002 if ((val & 0x00f0) == 0x00f0) in alc_determine_headset_type()
6007 alc_update_coef_idx(codec, 0x4a, 7<<6, 7<<6); in alc_determine_headset_type()
6008 alc_update_coef_idx(codec, 0x4a, 3<<4, 3<<4); in alc_determine_headset_type()
6009 alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); in alc_determine_headset_type()
6011 case 0x10ec0867: in alc_determine_headset_type()
6016 codec_dbg(codec, "Headset jack detected iPhone-style headset: %s\n", in alc_determine_headset_type()
6018 spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP; in alc_determine_headset_type()
6021 static void alc_update_headset_mode(struct hda_codec *codec) in alc_update_headset_mode() argument
6023 struct alc_spec *spec = codec->spec; in alc_update_headset_mode()
6025 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in alc_update_headset_mode()
6030 if (!snd_hda_jack_detect(codec, hp_pin)) in alc_update_headset_mode()
6032 else if (mux_pin == spec->headset_mic_pin) in alc_update_headset_mode()
6034 else if (mux_pin == spec->headphone_mic_pin) in alc_update_headset_mode()
6039 if (new_headset_mode == spec->current_headset_mode) { in alc_update_headset_mode()
6040 snd_hda_gen_update_outputs(codec); in alc_update_headset_mode()
6046 alc_headset_mode_unplugged(codec); in alc_update_headset_mode()
6047 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_update_headset_mode()
6048 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_update_headset_mode()
6049 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
6052 if (spec->current_headset_type == ALC_HEADSET_TYPE_UNKNOWN) in alc_update_headset_mode()
6053 alc_determine_headset_type(codec); in alc_update_headset_mode()
6054 if (spec->current_headset_type == ALC_HEADSET_TYPE_CTIA) in alc_update_headset_mode()
6055 alc_headset_mode_ctia(codec); in alc_update_headset_mode()
6056 else if (spec->current_headset_type == ALC_HEADSET_TYPE_OMTP) in alc_update_headset_mode()
6057 alc_headset_mode_omtp(codec); in alc_update_headset_mode()
6058 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
6061 alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin); in alc_update_headset_mode()
6062 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
6065 alc_headset_mode_default(codec); in alc_update_headset_mode()
6066 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
6070 snd_hda_set_pin_ctl_cache(codec, hp_pin, in alc_update_headset_mode()
6072 if (spec->headphone_mic_pin && spec->headphone_mic_pin != hp_pin) in alc_update_headset_mode()
6073 snd_hda_set_pin_ctl_cache(codec, spec->headphone_mic_pin, in alc_update_headset_mode()
6076 spec->current_headset_mode = new_headset_mode; in alc_update_headset_mode()
6078 snd_hda_gen_update_outputs(codec); in alc_update_headset_mode()
6081 static void alc_update_headset_mode_hook(struct hda_codec *codec, in alc_update_headset_mode_hook() argument
6085 alc_update_headset_mode(codec); in alc_update_headset_mode_hook()
6088 static void alc_update_headset_jack_cb(struct hda_codec *codec, in alc_update_headset_jack_cb() argument
6091 snd_hda_gen_hp_automute(codec, jack); in alc_update_headset_jack_cb()
6092 alc_update_headset_mode(codec); in alc_update_headset_jack_cb()
6095 static void alc_probe_headset_mode(struct hda_codec *codec) in alc_probe_headset_mode() argument
6098 struct alc_spec *spec = codec->spec; in alc_probe_headset_mode()
6099 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_probe_headset_mode()
6102 for (i = 0; i < cfg->num_inputs; i++) { in alc_probe_headset_mode()
6103 if (cfg->inputs[i].is_headset_mic && !spec->headset_mic_pin) in alc_probe_headset_mode()
6104 spec->headset_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
6105 if (cfg->inputs[i].is_headphone_mic && !spec->headphone_mic_pin) in alc_probe_headset_mode()
6106 spec->headphone_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
6109 WARN_ON(spec->gen.cap_sync_hook); in alc_probe_headset_mode()
6110 spec->gen.cap_sync_hook = alc_update_headset_mode_hook; in alc_probe_headset_mode()
6111 spec->gen.automute_hook = alc_update_headset_mode; in alc_probe_headset_mode()
6112 spec->gen.hp_automute_hook = alc_update_headset_jack_cb; in alc_probe_headset_mode()
6115 static void alc_fixup_headset_mode(struct hda_codec *codec, in alc_fixup_headset_mode() argument
6118 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode()
6122 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC | HDA_PINCFG_HEADPHONE_MIC; in alc_fixup_headset_mode()
6125 alc_probe_headset_mode(codec); in alc_fixup_headset_mode()
6128 if (is_s3_resume(codec) || is_s4_resume(codec)) { in alc_fixup_headset_mode()
6129 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_fixup_headset_mode()
6130 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_fixup_headset_mode()
6132 alc_update_headset_mode(codec); in alc_fixup_headset_mode()
6137 static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec, in alc_fixup_headset_mode_no_hp_mic() argument
6141 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_no_hp_mic()
6142 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_no_hp_mic()
6145 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_no_hp_mic()
6148 static void alc255_set_default_jack_type(struct hda_codec *codec) in alc255_set_default_jack_type() argument
6152 WRITE_COEF(0x1b, 0x880b), in alc255_set_default_jack_type()
6153 WRITE_COEF(0x45, 0xd089), in alc255_set_default_jack_type()
6154 WRITE_COEF(0x1b, 0x080b), in alc255_set_default_jack_type()
6155 WRITE_COEF(0x46, 0x0004), in alc255_set_default_jack_type()
6156 WRITE_COEF(0x1b, 0x0c0b), in alc255_set_default_jack_type()
6160 WRITE_COEF(0x1b, 0x884b), in alc255_set_default_jack_type()
6161 WRITE_COEF(0x45, 0xd089), in alc255_set_default_jack_type()
6162 WRITE_COEF(0x1b, 0x084b), in alc255_set_default_jack_type()
6163 WRITE_COEF(0x46, 0x0004), in alc255_set_default_jack_type()
6164 WRITE_COEF(0x1b, 0x0c4b), in alc255_set_default_jack_type()
6167 switch (codec->core.vendor_id) { in alc255_set_default_jack_type()
6168 case 0x10ec0255: in alc255_set_default_jack_type()
6169 alc_process_coef_fw(codec, alc255fw); in alc255_set_default_jack_type()
6171 case 0x10ec0230: in alc255_set_default_jack_type()
6172 case 0x10ec0236: in alc255_set_default_jack_type()
6173 case 0x10ec0256: in alc255_set_default_jack_type()
6174 case 0x19e58326: in alc255_set_default_jack_type()
6175 alc_process_coef_fw(codec, alc256fw); in alc255_set_default_jack_type()
6181 static void alc_fixup_headset_mode_alc255(struct hda_codec *codec, in alc_fixup_headset_mode_alc255() argument
6185 alc255_set_default_jack_type(codec); in alc_fixup_headset_mode_alc255()
6187 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_alc255()
6190 static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec, in alc_fixup_headset_mode_alc255_no_hp_mic() argument
6194 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc255_no_hp_mic()
6195 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc255_no_hp_mic()
6196 alc255_set_default_jack_type(codec); in alc_fixup_headset_mode_alc255_no_hp_mic()
6199 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_alc255_no_hp_mic()
6202 static void alc288_update_headset_jack_cb(struct hda_codec *codec, in alc288_update_headset_jack_cb() argument
6205 struct alc_spec *spec = codec->spec; in alc288_update_headset_jack_cb()
6207 alc_update_headset_jack_cb(codec, jack); in alc288_update_headset_jack_cb()
6209 alc_update_gpio_data(codec, 0x40, spec->gen.hp_jack_present); in alc288_update_headset_jack_cb()
6212 static void alc_fixup_headset_mode_dell_alc288(struct hda_codec *codec, in alc_fixup_headset_mode_dell_alc288() argument
6215 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_dell_alc288()
6217 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_dell_alc288()
6219 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288()
6220 spec->gpio_dir |= 0x40; in alc_fixup_headset_mode_dell_alc288()
6221 spec->gen.hp_automute_hook = alc288_update_headset_jack_cb; in alc_fixup_headset_mode_dell_alc288()
6225 static void alc_fixup_auto_mute_via_amp(struct hda_codec *codec, in alc_fixup_auto_mute_via_amp() argument
6229 struct alc_spec *spec = codec->spec; in alc_fixup_auto_mute_via_amp()
6230 spec->gen.auto_mute_via_amp = 1; in alc_fixup_auto_mute_via_amp()
6234 static void alc_fixup_no_shutup(struct hda_codec *codec, in alc_fixup_no_shutup() argument
6238 struct alc_spec *spec = codec->spec; in alc_fixup_no_shutup()
6239 spec->no_shutup_pins = 1; in alc_fixup_no_shutup()
6243 static void alc_fixup_disable_aamix(struct hda_codec *codec, in alc_fixup_disable_aamix() argument
6247 struct alc_spec *spec = codec->spec; in alc_fixup_disable_aamix()
6248 /* Disable AA-loopback as it causes white noise */ in alc_fixup_disable_aamix()
6249 spec->gen.mixer_nid = 0; in alc_fixup_disable_aamix()
6254 static void alc_fixup_tpt440_dock(struct hda_codec *codec, in alc_fixup_tpt440_dock() argument
6258 { 0x16, 0x21211010 }, /* dock headphone */ in alc_fixup_tpt440_dock()
6259 { 0x19, 0x21a11010 }, /* dock mic */ in alc_fixup_tpt440_dock()
6262 struct alc_spec *spec = codec->spec; in alc_fixup_tpt440_dock()
6265 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt440_dock()
6266 codec->power_save_node = 0; /* avoid click noises */ in alc_fixup_tpt440_dock()
6267 snd_hda_apply_pincfgs(codec, pincfgs); in alc_fixup_tpt440_dock()
6271 static void alc_fixup_tpt470_dock(struct hda_codec *codec, in alc_fixup_tpt470_dock() argument
6275 { 0x17, 0x21211010 }, /* dock headphone */ in alc_fixup_tpt470_dock()
6276 { 0x19, 0x21a11010 }, /* dock mic */ in alc_fixup_tpt470_dock()
6279 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dock()
6282 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt470_dock()
6283 snd_hda_apply_pincfgs(codec, pincfgs); in alc_fixup_tpt470_dock()
6286 snd_hda_codec_write(codec, 0x17, 0, in alc_fixup_tpt470_dock()
6287 AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0); in alc_fixup_tpt470_dock()
6289 snd_hda_codec_write(codec, 0x19, 0, in alc_fixup_tpt470_dock()
6290 AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0); in alc_fixup_tpt470_dock()
6294 static void alc_fixup_tpt470_dacs(struct hda_codec *codec, in alc_fixup_tpt470_dacs() argument
6297 /* Assure the speaker pin to be coupled with DAC NID 0x03; otherwise in alc_fixup_tpt470_dacs()
6299 * ALC298 codec in alc_fixup_tpt470_dacs()
6302 0x14, 0x03, 0x17, 0x02, 0x21, 0x02, in alc_fixup_tpt470_dacs()
6303 0 in alc_fixup_tpt470_dacs()
6305 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dacs()
6308 spec->gen.preferred_dacs = preferred_pairs; in alc_fixup_tpt470_dacs()
6311 static void alc295_fixup_asus_dacs(struct hda_codec *codec, in alc295_fixup_asus_dacs() argument
6315 0x17, 0x02, 0x21, 0x03, 0 in alc295_fixup_asus_dacs()
6317 struct alc_spec *spec = codec->spec; in alc295_fixup_asus_dacs()
6320 spec->gen.preferred_dacs = preferred_pairs; in alc295_fixup_asus_dacs()
6323 static void alc_shutup_dell_xps13(struct hda_codec *codec) in alc_shutup_dell_xps13() argument
6325 struct alc_spec *spec = codec->spec; in alc_shutup_dell_xps13()
6329 snd_hda_codec_write(codec, hp_pin, 0, in alc_shutup_dell_xps13()
6334 static void alc_fixup_dell_xps13(struct hda_codec *codec, in alc_fixup_dell_xps13() argument
6337 struct alc_spec *spec = codec->spec; in alc_fixup_dell_xps13()
6338 struct hda_input_mux *imux = &spec->gen.input_mux; in alc_fixup_dell_xps13()
6343 /* mic pin 0x19 must be initialized with Vref Hi-Z, otherwise in alc_fixup_dell_xps13()
6346 snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); in alc_fixup_dell_xps13()
6347 spec->shutup = alc_shutup_dell_xps13; in alc_fixup_dell_xps13()
6351 for (i = 0; i < imux->num_items; i++) { in alc_fixup_dell_xps13()
6352 if (spec->gen.imux_pins[i] == 0x12) { in alc_fixup_dell_xps13()
6353 spec->gen.cur_mux[0] = i; in alc_fixup_dell_xps13()
6361 static void alc_fixup_headset_mode_alc662(struct hda_codec *codec, in alc_fixup_headset_mode_alc662() argument
6364 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc662()
6367 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc662()
6368 spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ in alc_fixup_headset_mode_alc662()
6370 /* Disable boost for mic-in permanently. (This code is only called in alc_fixup_headset_mode_alc662()
6371 from quirks that guarantee that the headphone is at NID 0x1b.) */ in alc_fixup_headset_mode_alc662()
6372 snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_AMP_GAIN_MUTE, 0x7000); in alc_fixup_headset_mode_alc662()
6373 snd_hda_override_wcaps(codec, 0x1b, get_wcaps(codec, 0x1b) & ~AC_WCAP_IN_AMP); in alc_fixup_headset_mode_alc662()
6375 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_alc662()
6378 static void alc_fixup_headset_mode_alc668(struct hda_codec *codec, in alc_fixup_headset_mode_alc668() argument
6382 alc_write_coef_idx(codec, 0xc4, 0x8000); in alc_fixup_headset_mode_alc668()
6383 alc_update_coef_idx(codec, 0xc2, ~0xfe, 0); in alc_fixup_headset_mode_alc668()
6384 snd_hda_set_pin_ctl_cache(codec, 0x18, 0); in alc_fixup_headset_mode_alc668()
6386 alc_fixup_headset_mode(codec, fix, action); in alc_fixup_headset_mode_alc668()
6389 /* Returns the nid of the external mic input pin, or 0 if it cannot be found. */
6390 static int find_ext_mic_pin(struct hda_codec *codec) in find_ext_mic_pin() argument
6392 struct alc_spec *spec = codec->spec; in find_ext_mic_pin()
6393 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in find_ext_mic_pin()
6398 for (i = 0; i < cfg->num_inputs; i++) { in find_ext_mic_pin()
6399 if (cfg->inputs[i].type != AUTO_PIN_MIC) in find_ext_mic_pin()
6401 nid = cfg->inputs[i].pin; in find_ext_mic_pin()
6402 defcfg = snd_hda_codec_get_pincfg(codec, nid); in find_ext_mic_pin()
6408 return 0; in find_ext_mic_pin()
6411 static void alc271_hp_gate_mic_jack(struct hda_codec *codec, in alc271_hp_gate_mic_jack() argument
6415 struct alc_spec *spec = codec->spec; in alc271_hp_gate_mic_jack()
6418 int mic_pin = find_ext_mic_pin(codec); in alc271_hp_gate_mic_jack()
6423 snd_hda_jack_set_gating_jack(codec, mic_pin, hp_pin); in alc271_hp_gate_mic_jack()
6427 static void alc269_fixup_limit_int_mic_boost(struct hda_codec *codec, in alc269_fixup_limit_int_mic_boost() argument
6431 struct alc_spec *spec = codec->spec; in alc269_fixup_limit_int_mic_boost()
6432 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc269_fixup_limit_int_mic_boost()
6437 Therefore limit the boost to 0 or 1. */ in alc269_fixup_limit_int_mic_boost()
6442 for (i = 0; i < cfg->num_inputs; i++) { in alc269_fixup_limit_int_mic_boost()
6443 hda_nid_t nid = cfg->inputs[i].pin; in alc269_fixup_limit_int_mic_boost()
6445 if (cfg->inputs[i].type != AUTO_PIN_MIC) in alc269_fixup_limit_int_mic_boost()
6447 defcfg = snd_hda_codec_get_pincfg(codec, nid); in alc269_fixup_limit_int_mic_boost()
6451 snd_hda_override_amp_caps(codec, nid, HDA_INPUT, in alc269_fixup_limit_int_mic_boost()
6452 (0x00 << AC_AMPCAP_OFFSET_SHIFT) | in alc269_fixup_limit_int_mic_boost()
6453 (0x01 << AC_AMPCAP_NUM_STEPS_SHIFT) | in alc269_fixup_limit_int_mic_boost()
6454 (0x2f << AC_AMPCAP_STEP_SIZE_SHIFT) | in alc269_fixup_limit_int_mic_boost()
6455 (0 << AC_AMPCAP_MUTE_SHIFT)); in alc269_fixup_limit_int_mic_boost()
6459 static void alc283_hp_automute_hook(struct hda_codec *codec, in alc283_hp_automute_hook() argument
6462 struct alc_spec *spec = codec->spec; in alc283_hp_automute_hook()
6466 snd_hda_gen_hp_automute(codec, jack); in alc283_hp_automute_hook()
6468 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc283_hp_automute_hook()
6471 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in alc283_hp_automute_hook()
6475 static void alc283_fixup_chromebook(struct hda_codec *codec, in alc283_fixup_chromebook() argument
6478 struct alc_spec *spec = codec->spec; in alc283_fixup_chromebook()
6482 snd_hda_override_wcaps(codec, 0x03, 0); in alc283_fixup_chromebook()
6483 /* Disable AA-loopback as it causes white noise */ in alc283_fixup_chromebook()
6484 spec->gen.mixer_nid = 0; in alc283_fixup_chromebook()
6487 /* MIC2-VREF control */ in alc283_fixup_chromebook()
6489 alc_update_coef_idx(codec, 0x06, 0x000c, 0); in alc283_fixup_chromebook()
6491 alc_update_coef_idx(codec, 0x1a, 0, 1 << 4); in alc283_fixup_chromebook()
6496 static void alc283_fixup_sense_combo_jack(struct hda_codec *codec, in alc283_fixup_sense_combo_jack() argument
6499 struct alc_spec *spec = codec->spec; in alc283_fixup_sense_combo_jack()
6503 spec->gen.hp_automute_hook = alc283_hp_automute_hook; in alc283_fixup_sense_combo_jack()
6506 /* MIC2-VREF control */ in alc283_fixup_sense_combo_jack()
6508 alc_update_coef_idx(codec, 0x06, 0x000c, 0); in alc283_fixup_sense_combo_jack()
6513 /* mute tablet speaker pin (0x14) via dock plugging in addition */
6514 static void asus_tx300_automute(struct hda_codec *codec) in asus_tx300_automute() argument
6516 struct alc_spec *spec = codec->spec; in asus_tx300_automute()
6517 snd_hda_gen_update_outputs(codec); in asus_tx300_automute()
6518 if (snd_hda_jack_detect(codec, 0x1b)) in asus_tx300_automute()
6519 spec->gen.mute_bits |= (1ULL << 0x14); in asus_tx300_automute()
6522 static void alc282_fixup_asus_tx300(struct hda_codec *codec, in alc282_fixup_asus_tx300() argument
6525 struct alc_spec *spec = codec->spec; in alc282_fixup_asus_tx300()
6527 { 0x1b, 0x21114000 }, /* dock speaker pin */ in alc282_fixup_asus_tx300()
6533 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
6535 alc_setup_gpio(codec, 0x04); in alc282_fixup_asus_tx300()
6536 snd_hda_apply_pincfgs(codec, dock_pins); in alc282_fixup_asus_tx300()
6537 spec->gen.auto_mute_via_amp = 1; in alc282_fixup_asus_tx300()
6538 spec->gen.automute_hook = asus_tx300_automute; in alc282_fixup_asus_tx300()
6539 snd_hda_jack_detect_enable_callback(codec, 0x1b, in alc282_fixup_asus_tx300()
6543 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
6549 rename_ctl(codec, "Speaker Playback Switch", in alc282_fixup_asus_tx300()
6551 rename_ctl(codec, "Bass Speaker Playback Switch", in alc282_fixup_asus_tx300()
6557 static void alc290_fixup_mono_speakers(struct hda_codec *codec, in alc290_fixup_mono_speakers() argument
6561 /* DAC node 0x03 is giving mono output. We therefore want to in alc290_fixup_mono_speakers()
6562 make sure 0x14 (front speaker) and 0x15 (headphones) use the in alc290_fixup_mono_speakers()
6563 stereo DAC, while leaving 0x17 (bass speaker) for node 0x03. */ in alc290_fixup_mono_speakers()
6564 static const hda_nid_t conn1[] = { 0x0c }; in alc290_fixup_mono_speakers()
6565 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); in alc290_fixup_mono_speakers()
6566 snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn1), conn1); in alc290_fixup_mono_speakers()
6570 static void alc298_fixup_speaker_volume(struct hda_codec *codec, in alc298_fixup_speaker_volume() argument
6574 /* The speaker is routed to the Node 0x06 by a mistake, as a result in alc298_fixup_speaker_volume()
6576 Amp-out capability. we change the speaker's route to: in alc298_fixup_speaker_volume()
6577 Node 0x02 (Audio Output) -> Node 0x0c (Audio Mixer) -> Node 0x17 ( in alc298_fixup_speaker_volume()
6578 Pin Complex), since Node 0x02 has Amp-out caps, we can adjust in alc298_fixup_speaker_volume()
6581 static const hda_nid_t conn1[] = { 0x0c }; in alc298_fixup_speaker_volume()
6582 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn1), conn1); in alc298_fixup_speaker_volume()
6586 /* disable DAC3 (0x06) selection on NID 0x17 as it has no volume amp control */
6587 static void alc295_fixup_disable_dac3(struct hda_codec *codec, in alc295_fixup_disable_dac3() argument
6591 static const hda_nid_t conn[] = { 0x02, 0x03 }; in alc295_fixup_disable_dac3()
6592 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc295_fixup_disable_dac3()
6596 /* force NID 0x17 (Bass Speaker) to DAC1 to share it with the main speaker */
6597 static void alc285_fixup_speaker2_to_dac1(struct hda_codec *codec, in alc285_fixup_speaker2_to_dac1() argument
6601 static const hda_nid_t conn[] = { 0x02 }; in alc285_fixup_speaker2_to_dac1()
6602 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc285_fixup_speaker2_to_dac1()
6606 /* disable DAC3 (0x06) selection on NID 0x15 - share Speaker/Bass Speaker DAC 0x03 */
6607 static void alc294_fixup_bass_speaker_15(struct hda_codec *codec, in alc294_fixup_bass_speaker_15() argument
6611 static const hda_nid_t conn[] = { 0x02, 0x03 }; in alc294_fixup_bass_speaker_15()
6612 snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn), conn); in alc294_fixup_bass_speaker_15()
6613 snd_hda_gen_add_micmute_led_cdev(codec, NULL); in alc294_fixup_bass_speaker_15()
6618 static void alc280_hp_gpio4_automute_hook(struct hda_codec *codec, in alc280_hp_gpio4_automute_hook() argument
6621 struct alc_spec *spec = codec->spec; in alc280_hp_gpio4_automute_hook()
6623 snd_hda_gen_hp_automute(codec, jack); in alc280_hp_gpio4_automute_hook()
6624 /* mute_led_polarity is set to 0, so we pass inverted value here */ in alc280_hp_gpio4_automute_hook()
6625 alc_update_gpio_led(codec, 0x10, spec->mute_led_polarity, in alc280_hp_gpio4_automute_hook()
6626 !spec->gen.hp_jack_present); in alc280_hp_gpio4_automute_hook()
6635 static void alc280_fixup_hp_9480m(struct hda_codec *codec, in alc280_fixup_hp_9480m() argument
6639 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_9480m()
6641 alc_fixup_hp_gpio_led(codec, action, 0x08, 0); in alc280_fixup_hp_9480m()
6644 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m()
6645 spec->gpio_dir |= 0x10; in alc280_fixup_hp_9480m()
6646 spec->gen.hp_automute_hook = alc280_hp_gpio4_automute_hook; in alc280_fixup_hp_9480m()
6650 static void alc275_fixup_gpio4_off(struct hda_codec *codec, in alc275_fixup_gpio4_off() argument
6654 struct alc_spec *spec = codec->spec; in alc275_fixup_gpio4_off()
6657 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off()
6658 spec->gpio_dir |= 0x04; in alc275_fixup_gpio4_off()
6665 * DAC1 (NID 0x02) -> Speaker (NID 0x14); some eq applied secretly
6666 * DAC2 (NID 0x03) -> Bass (NID 0x17) & Headphone (NID 0x21); sharing a DAC
6667 * DAC3 (NID 0x06) -> Unused, due to the lack of volume amp
6669 static void alc285_fixup_thinkpad_x1_gen7(struct hda_codec *codec, in alc285_fixup_thinkpad_x1_gen7() argument
6672 static const hda_nid_t conn[] = { 0x02, 0x03 }; /* exclude 0x06 */ in alc285_fixup_thinkpad_x1_gen7()
6674 0x14, 0x02, 0x17, 0x03, 0x21, 0x03, 0 in alc285_fixup_thinkpad_x1_gen7()
6676 struct alc_spec *spec = codec->spec; in alc285_fixup_thinkpad_x1_gen7()
6680 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc285_fixup_thinkpad_x1_gen7()
6681 spec->gen.preferred_dacs = preferred_pairs; in alc285_fixup_thinkpad_x1_gen7()
6690 rename_ctl(codec, "Front Playback Volume", "DAC1 Playback Volume"); in alc285_fixup_thinkpad_x1_gen7()
6691 rename_ctl(codec, "Bass Speaker Playback Volume", "DAC2 Playback Volume"); in alc285_fixup_thinkpad_x1_gen7()
6696 static void alc233_alc662_fixup_lenovo_dual_codecs(struct hda_codec *codec, in alc233_alc662_fixup_lenovo_dual_codecs() argument
6700 alc_fixup_dual_codecs(codec, fix, action); in alc233_alc662_fixup_lenovo_dual_codecs()
6704 strcpy(codec->card->longname, "HDAudio-Lenovo-DualCodecs"); in alc233_alc662_fixup_lenovo_dual_codecs()
6707 /* rename Capture controls depending on the codec */ in alc233_alc662_fixup_lenovo_dual_codecs()
6708 rename_ctl(codec, "Capture Volume", in alc233_alc662_fixup_lenovo_dual_codecs()
6709 codec->addr == 0 ? in alc233_alc662_fixup_lenovo_dual_codecs()
6710 "Rear-Panel Capture Volume" : in alc233_alc662_fixup_lenovo_dual_codecs()
6711 "Front-Panel Capture Volume"); in alc233_alc662_fixup_lenovo_dual_codecs()
6712 rename_ctl(codec, "Capture Switch", in alc233_alc662_fixup_lenovo_dual_codecs()
6713 codec->addr == 0 ? in alc233_alc662_fixup_lenovo_dual_codecs()
6714 "Rear-Panel Capture Switch" : in alc233_alc662_fixup_lenovo_dual_codecs()
6715 "Front-Panel Capture Switch"); in alc233_alc662_fixup_lenovo_dual_codecs()
6720 static void alc225_fixup_s3_pop_noise(struct hda_codec *codec, in alc225_fixup_s3_pop_noise() argument
6726 codec->power_save_node = 1; in alc225_fixup_s3_pop_noise()
6729 /* Forcibly assign NID 0x03 to HP/LO while NID 0x02 to SPK for EQ */
6730 static void alc274_fixup_bind_dacs(struct hda_codec *codec, in alc274_fixup_bind_dacs() argument
6733 struct alc_spec *spec = codec->spec; in alc274_fixup_bind_dacs()
6735 0x21, 0x03, 0x1b, 0x03, 0x16, 0x02, in alc274_fixup_bind_dacs()
6736 0 in alc274_fixup_bind_dacs()
6742 spec->gen.preferred_dacs = preferred_pairs; in alc274_fixup_bind_dacs()
6743 spec->gen.auto_mute_via_amp = 1; in alc274_fixup_bind_dacs()
6744 codec->power_save_node = 0; in alc274_fixup_bind_dacs()
6747 /* avoid DAC 0x06 for speaker switch 0x17; it has no volume control */
6748 static void alc274_fixup_hp_aio_bind_dacs(struct hda_codec *codec, in alc274_fixup_hp_aio_bind_dacs() argument
6751 static const hda_nid_t conn[] = { 0x02, 0x03 }; /* exclude 0x06 */ in alc274_fixup_hp_aio_bind_dacs()
6752 /* The speaker is routed to the Node 0x06 by a mistake, thus the in alc274_fixup_hp_aio_bind_dacs()
6754 * Amp-out capability. Assure the speaker and lineout pin to be in alc274_fixup_hp_aio_bind_dacs()
6755 * coupled with DAC NID 0x02. in alc274_fixup_hp_aio_bind_dacs()
6758 0x16, 0x02, 0x17, 0x02, 0x21, 0x03, 0 in alc274_fixup_hp_aio_bind_dacs()
6760 struct alc_spec *spec = codec->spec; in alc274_fixup_hp_aio_bind_dacs()
6762 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc274_fixup_hp_aio_bind_dacs()
6763 spec->gen.preferred_dacs = preferred_pairs; in alc274_fixup_hp_aio_bind_dacs()
6766 /* avoid DAC 0x06 for bass speaker 0x17; it has no volume control */
6767 static void alc289_fixup_asus_ga401(struct hda_codec *codec, in alc289_fixup_asus_ga401() argument
6771 0x14, 0x02, 0x17, 0x02, 0x21, 0x03, 0 in alc289_fixup_asus_ga401()
6773 struct alc_spec *spec = codec->spec; in alc289_fixup_asus_ga401()
6776 spec->gen.preferred_dacs = preferred_pairs; in alc289_fixup_asus_ga401()
6779 /* The DAC of NID 0x3 will introduce click/pop noise on headphones, so invalidate it */
6780 static void alc285_fixup_invalidate_dacs(struct hda_codec *codec, in alc285_fixup_invalidate_dacs() argument
6786 snd_hda_override_wcaps(codec, 0x03, 0); in alc285_fixup_invalidate_dacs()
6789 static void alc_combo_jack_hp_jd_restart(struct hda_codec *codec) in alc_combo_jack_hp_jd_restart() argument
6791 switch (codec->core.vendor_id) { in alc_combo_jack_hp_jd_restart()
6792 case 0x10ec0274: in alc_combo_jack_hp_jd_restart()
6793 case 0x10ec0294: in alc_combo_jack_hp_jd_restart()
6794 case 0x10ec0225: in alc_combo_jack_hp_jd_restart()
6795 case 0x10ec0295: in alc_combo_jack_hp_jd_restart()
6796 case 0x10ec0299: in alc_combo_jack_hp_jd_restart()
6797 alc_update_coef_idx(codec, 0x4a, 0x8000, 1 << 15); /* Reset HP JD */ in alc_combo_jack_hp_jd_restart()
6798 alc_update_coef_idx(codec, 0x4a, 0x8000, 0 << 15); in alc_combo_jack_hp_jd_restart()
6800 case 0x10ec0230: in alc_combo_jack_hp_jd_restart()
6801 case 0x10ec0235: in alc_combo_jack_hp_jd_restart()
6802 case 0x10ec0236: in alc_combo_jack_hp_jd_restart()
6803 case 0x10ec0255: in alc_combo_jack_hp_jd_restart()
6804 case 0x10ec0256: in alc_combo_jack_hp_jd_restart()
6805 case 0x10ec0257: in alc_combo_jack_hp_jd_restart()
6806 case 0x19e58326: in alc_combo_jack_hp_jd_restart()
6807 alc_update_coef_idx(codec, 0x1b, 0x8000, 1 << 15); /* Reset HP JD */ in alc_combo_jack_hp_jd_restart()
6808 alc_update_coef_idx(codec, 0x1b, 0x8000, 0 << 15); in alc_combo_jack_hp_jd_restart()
6813 static void alc295_fixup_chromebook(struct hda_codec *codec, in alc295_fixup_chromebook() argument
6816 struct alc_spec *spec = codec->spec; in alc295_fixup_chromebook()
6820 spec->ultra_low_power = true; in alc295_fixup_chromebook()
6823 alc_combo_jack_hp_jd_restart(codec); in alc295_fixup_chromebook()
6828 static void alc256_fixup_chromebook(struct hda_codec *codec, in alc256_fixup_chromebook() argument
6831 struct alc_spec *spec = codec->spec; in alc256_fixup_chromebook()
6835 if (codec->core.subsystem_id == 0x10280d76) in alc256_fixup_chromebook()
6836 spec->gen.suppress_auto_mute = 0; in alc256_fixup_chromebook()
6838 spec->gen.suppress_auto_mute = 1; in alc256_fixup_chromebook()
6839 spec->gen.suppress_auto_mic = 1; in alc256_fixup_chromebook()
6840 spec->en_3kpull_low = false; in alc256_fixup_chromebook()
6845 static void alc_fixup_disable_mic_vref(struct hda_codec *codec, in alc_fixup_disable_mic_vref() argument
6849 snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); in alc_fixup_disable_mic_vref()
6853 static void alc294_gx502_toggle_output(struct hda_codec *codec, in alc294_gx502_toggle_output() argument
6856 /* The Windows driver sets the codec up in a very different way where in alc294_gx502_toggle_output()
6857 * it appears to leave 0x10 = 0x8a20 set. For Linux we need to toggle it in alc294_gx502_toggle_output()
6859 if (snd_hda_jack_detect_state(codec, 0x21) == HDA_JACK_PRESENT) in alc294_gx502_toggle_output()
6860 alc_write_coef_idx(codec, 0x10, 0x8a20); in alc294_gx502_toggle_output()
6862 alc_write_coef_idx(codec, 0x10, 0x0a20); in alc294_gx502_toggle_output()
6865 static void alc294_fixup_gx502_hp(struct hda_codec *codec, in alc294_fixup_gx502_hp() argument
6868 /* Pin 0x21: headphones/headset mic */ in alc294_fixup_gx502_hp()
6869 if (!is_jack_detectable(codec, 0x21)) in alc294_fixup_gx502_hp()
6874 snd_hda_jack_detect_enable_callback(codec, 0x21, in alc294_fixup_gx502_hp()
6881 alc294_gx502_toggle_output(codec, NULL); in alc294_fixup_gx502_hp()
6886 static void alc294_gu502_toggle_output(struct hda_codec *codec, in alc294_gu502_toggle_output() argument
6889 /* Windows sets 0x10 to 0x8420 for Node 0x20 which is in alc294_gu502_toggle_output()
6892 if (snd_hda_jack_detect_state(codec, 0x21) == HDA_JACK_PRESENT) in alc294_gu502_toggle_output()
6893 alc_write_coef_idx(codec, 0x10, 0x8420); in alc294_gu502_toggle_output()
6895 alc_write_coef_idx(codec, 0x10, 0x0a20); in alc294_gu502_toggle_output()
6898 static void alc294_fixup_gu502_hp(struct hda_codec *codec, in alc294_fixup_gu502_hp() argument
6901 if (!is_jack_detectable(codec, 0x21)) in alc294_fixup_gu502_hp()
6906 snd_hda_jack_detect_enable_callback(codec, 0x21, in alc294_fixup_gu502_hp()
6910 alc294_gu502_toggle_output(codec, NULL); in alc294_fixup_gu502_hp()
6915 static void alc285_fixup_hp_gpio_amp_init(struct hda_codec *codec, in alc285_fixup_hp_gpio_amp_init() argument
6922 alc_write_coef_idx(codec, 0x65, 0x0); in alc285_fixup_hp_gpio_amp_init()
6925 static void alc274_fixup_hp_headset_mic(struct hda_codec *codec, in alc274_fixup_hp_headset_mic() argument
6930 alc_combo_jack_hp_jd_restart(codec); in alc274_fixup_hp_headset_mic()
6935 static void alc_fixup_no_int_mic(struct hda_codec *codec, in alc_fixup_no_int_mic() argument
6938 struct alc_spec *spec = codec->spec; in alc_fixup_no_int_mic()
6943 alc_update_coef_idx(codec, 0x45, 0xf<<12 | 1<<10, 5<<12); in alc_fixup_no_int_mic()
6944 spec->no_internal_mic_pin = true; in alc_fixup_no_int_mic()
6947 alc_combo_jack_hp_jd_restart(codec); in alc_fixup_no_int_mic()
6955 static void alc285_fixup_hp_spectre_x360_eb1(struct hda_codec *codec, in alc285_fixup_hp_spectre_x360_eb1() argument
6958 static const hda_nid_t conn[] = { 0x02 }; in alc285_fixup_hp_spectre_x360_eb1()
6960 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_spectre_x360_eb1()
6962 { 0x14, 0x90170110 }, /* front/high speakers */ in alc285_fixup_hp_spectre_x360_eb1()
6963 { 0x17, 0x90170130 }, /* back/bass speakers */ in alc285_fixup_hp_spectre_x360_eb1()
6968 alc_fixup_hp_gpio_led(codec, action, 0x00, 0x04); in alc285_fixup_hp_spectre_x360_eb1()
6972 spec->micmute_led_polarity = 1; in alc285_fixup_hp_spectre_x360_eb1()
6974 spec->gpio_mask |= 0x01; in alc285_fixup_hp_spectre_x360_eb1()
6975 spec->gpio_dir |= 0x01; in alc285_fixup_hp_spectre_x360_eb1()
6976 snd_hda_apply_pincfgs(codec, pincfgs); in alc285_fixup_hp_spectre_x360_eb1()
6978 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn), conn); in alc285_fixup_hp_spectre_x360_eb1()
6979 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc285_fixup_hp_spectre_x360_eb1()
6983 alc_update_gpio_data(codec, 0x01, true); in alc285_fixup_hp_spectre_x360_eb1()
6985 alc_update_gpio_data(codec, 0x01, false); in alc285_fixup_hp_spectre_x360_eb1()
6991 static void alc285_fixup_hp_spectre_x360_df1(struct hda_codec *codec, in alc285_fixup_hp_spectre_x360_df1() argument
6995 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_spectre_x360_df1()
6996 static const hda_nid_t conn[] = { 0x02 }; in alc285_fixup_hp_spectre_x360_df1()
6998 { 0x14, 0x90170110 }, /* front/high speakers */ in alc285_fixup_hp_spectre_x360_df1()
6999 { 0x17, 0x90170130 }, /* back/bass speakers */ in alc285_fixup_hp_spectre_x360_df1()
7004 alc285_fixup_hp_mute_led_coefbit(codec, fix, action); in alc285_fixup_hp_spectre_x360_df1()
7009 spec->gpio_mask |= 0x01; in alc285_fixup_hp_spectre_x360_df1()
7010 spec->gpio_dir |= 0x01; in alc285_fixup_hp_spectre_x360_df1()
7011 snd_hda_apply_pincfgs(codec, pincfgs); in alc285_fixup_hp_spectre_x360_df1()
7013 snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn), conn); in alc285_fixup_hp_spectre_x360_df1()
7014 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc285_fixup_hp_spectre_x360_df1()
7018 alc_update_gpio_data(codec, 0x01, true); in alc285_fixup_hp_spectre_x360_df1()
7020 alc_update_gpio_data(codec, 0x01, false); in alc285_fixup_hp_spectre_x360_df1()
7025 static void alc285_fixup_hp_spectre_x360(struct hda_codec *codec, in alc285_fixup_hp_spectre_x360() argument
7028 static const hda_nid_t conn[] = { 0x02 }; in alc285_fixup_hp_spectre_x360()
7030 { 0x14, 0x90170110 }, /* rear speaker */ in alc285_fixup_hp_spectre_x360()
7036 snd_hda_apply_pincfgs(codec, pincfgs); in alc285_fixup_hp_spectre_x360()
7038 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc285_fixup_hp_spectre_x360()
7043 static void alc285_fixup_hp_envy_x360(struct hda_codec *codec, in alc285_fixup_hp_envy_x360() argument
7048 WRITE_COEF(0x08, 0x6a0c), WRITE_COEF(0x0d, 0xa023), in alc285_fixup_hp_envy_x360()
7049 WRITE_COEF(0x10, 0x0320), WRITE_COEF(0x1a, 0x8c03), in alc285_fixup_hp_envy_x360()
7050 WRITE_COEF(0x25, 0x1800), WRITE_COEF(0x26, 0x003a), in alc285_fixup_hp_envy_x360()
7051 WRITE_COEF(0x28, 0x1dfe), WRITE_COEF(0x29, 0xb014), in alc285_fixup_hp_envy_x360()
7052 WRITE_COEF(0x2b, 0x1dfe), WRITE_COEF(0x37, 0xfe15), in alc285_fixup_hp_envy_x360()
7053 WRITE_COEF(0x38, 0x7909), WRITE_COEF(0x45, 0xd489), in alc285_fixup_hp_envy_x360()
7054 WRITE_COEF(0x46, 0x00f4), WRITE_COEF(0x4a, 0x21e0), in alc285_fixup_hp_envy_x360()
7055 WRITE_COEF(0x66, 0x03f0), WRITE_COEF(0x67, 0x1000), in alc285_fixup_hp_envy_x360()
7056 WRITE_COEF(0x6e, 0x1005), { } in alc285_fixup_hp_envy_x360()
7060 { 0x12, 0xb7a60130 }, /* Internal microphone*/ in alc285_fixup_hp_envy_x360()
7061 { 0x14, 0x90170150 }, /* B&O soundbar speakers */ in alc285_fixup_hp_envy_x360()
7062 { 0x17, 0x90170153 }, /* Side speakers */ in alc285_fixup_hp_envy_x360()
7063 { 0x19, 0x03a11040 }, /* Headset microphone */ in alc285_fixup_hp_envy_x360()
7069 snd_hda_apply_pincfgs(codec, pincfgs); in alc285_fixup_hp_envy_x360()
7072 alc295_fixup_disable_dac3(codec, fix, action); in alc285_fixup_hp_envy_x360()
7075 snd_hda_codec_amp_stereo(codec, 0x21, HDA_OUTPUT, 0, -1, 0); in alc285_fixup_hp_envy_x360()
7077 /* Auto-enable headset mic when plugged */ in alc285_fixup_hp_envy_x360()
7078 snd_hda_jack_set_gating_jack(codec, 0x19, 0x21); in alc285_fixup_hp_envy_x360()
7081 snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREF50); in alc285_fixup_hp_envy_x360()
7084 alc_process_coef_fw(codec, coefs); in alc285_fixup_hp_envy_x360()
7087 rename_ctl(codec, "Bass Speaker Playback Volume", in alc285_fixup_hp_envy_x360()
7088 "B&O-Tuned Playback Volume"); in alc285_fixup_hp_envy_x360()
7089 rename_ctl(codec, "Front Playback Switch", in alc285_fixup_hp_envy_x360()
7091 rename_ctl(codec, "Bass Speaker Playback Switch", in alc285_fixup_hp_envy_x360()
7097 static void alc285_fixup_hp_beep(struct hda_codec *codec, in alc285_fixup_hp_beep() argument
7101 codec->beep_just_power_on = true; in alc285_fixup_hp_beep()
7109 alc_update_coef_idx(codec, 0x36, 0x7070, BIT(13)); in alc285_fixup_hp_beep()
7111 snd_hda_enable_beep_device(codec, 1); in alc285_fixup_hp_beep()
7114 dev_warn_once(hda_codec_dev(codec), in alc285_fixup_hp_beep()
7124 static void alc_fixup_thinkpad_acpi(struct hda_codec *codec, in alc_fixup_thinkpad_acpi() argument
7127 alc_fixup_no_shutup(codec, fix, action); /* reduce click noise */ in alc_fixup_thinkpad_acpi()
7128 hda_fixup_thinkpad_acpi(codec, fix, action); in alc_fixup_thinkpad_acpi()
7134 static void alc_fixup_ideapad_acpi(struct hda_codec *codec, in alc_fixup_ideapad_acpi() argument
7137 hda_fixup_ideapad_acpi(codec, fix, action); in alc_fixup_ideapad_acpi()
7141 static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec, in alc287_fixup_legion_15imhg05_speakers() argument
7145 struct alc_spec *spec = codec->spec; in alc287_fixup_legion_15imhg05_speakers()
7149 spec->gen.suppress_auto_mute = 1; in alc287_fixup_legion_15imhg05_speakers()
7157 struct alc_spec *spec = cdc->spec; in comp_acpi_device_notify()
7161 hda_component_acpi_device_notify(&spec->comps, handle, event, data); in comp_acpi_device_notify()
7167 struct alc_spec *spec = cdc->spec; in comp_bind()
7170 ret = hda_component_manager_bind(cdc, &spec->comps); in comp_bind()
7175 &spec->comps, in comp_bind()
7182 struct alc_spec *spec = cdc->spec; in comp_unbind()
7184 hda_component_manager_unbind_acpi_notifications(cdc, &spec->comps, comp_acpi_device_notify); in comp_unbind()
7185 hda_component_manager_unbind(cdc, &spec->comps); in comp_unbind()
7196 struct alc_spec *spec = cdc->spec; in comp_generic_playback_hook()
7198 hda_component_manager_playback_hook(&spec->comps, action); in comp_generic_playback_hook()
7204 struct alc_spec *spec = cdc->spec; in comp_generic_fixup()
7209 ret = hda_component_manager_init(cdc, &spec->comps, count, bus, hid, in comp_generic_fixup()
7214 spec->gen.pcm_playback_hook = comp_generic_playback_hook; in comp_generic_fixup()
7217 hda_component_manager_free(&spec->comps, &comp_master_ops); in comp_generic_fixup()
7231 } acpi_ids[] = {{ "CSC3554", "cs35l54-hda" }, in find_cirrus_companion_amps()
7232 { "CSC3556", "cs35l56-hda" }, in find_cirrus_companion_amps()
7233 { "CSC3557", "cs35l57-hda" }}; in find_cirrus_companion_amps()
7235 int i, count = 0, count_devindex = 0; in find_cirrus_companion_amps()
7237 for (i = 0; i < ARRAY_SIZE(acpi_ids); ++i) { in find_cirrus_companion_amps()
7238 adev = acpi_dev_get_first_match_dev(acpi_ids[i].hid, NULL, -1); in find_cirrus_companion_amps()
7248 if (count > 0) { in find_cirrus_companion_amps()
7252 if (count > 0) in find_cirrus_companion_amps()
7270 * When available the cirrus,dev-index property is an accurate in find_cirrus_companion_amps()
7275 count_devindex = fwnode_property_count_u32(fwnode, "cirrus,dev-index"); in find_cirrus_companion_amps()
7276 if (count_devindex > 0) in find_cirrus_companion_amps()
7279 match = devm_kasprintf(dev, GFP_KERNEL, "-%%s:00-%s.%%d", acpi_ids[i].name); in find_cirrus_companion_amps()
7288 comp_generic_fixup(cdc, action, "i2c", "CSC3551", "-%s:00-cs35l41-hda.%d", 2); in cs35l41_fixup_i2c_two()
7293 comp_generic_fixup(cdc, action, "i2c", "CSC3551", "-%s:00-cs35l41-hda.%d", 4); in cs35l41_fixup_i2c_four()
7296 static void cs35l41_fixup_spi_two(struct hda_codec *codec, const struct hda_fixup *fix, int action) in cs35l41_fixup_spi_two() argument
7298 comp_generic_fixup(codec, action, "spi", "CSC3551", "-%s:00-cs35l41-hda.%d", 2); in cs35l41_fixup_spi_two()
7301 static void cs35l41_fixup_spi_four(struct hda_codec *codec, const struct hda_fixup *fix, int action) in cs35l41_fixup_spi_four() argument
7303 comp_generic_fixup(codec, action, "spi", "CSC3551", "-%s:00-cs35l41-hda.%d", 4); in cs35l41_fixup_spi_four()
7309 comp_generic_fixup(cdc, action, "i2c", "CLSA0100", "-%s:00-cs35l41-hda.%d", 2); in alc287_fixup_legion_16achg6_speakers()
7315 comp_generic_fixup(cdc, action, "i2c", "CLSA0101", "-%s:00-cs35l41-hda.%d", 2); in alc287_fixup_legion_16ithg6_speakers()
7321 * The same SSID has been re-used in different hardware, they have in alc285_fixup_asus_ga403u()
7324 if (cdc->core.vendor_id != 0x10ec0285) in alc285_fixup_asus_ga403u()
7331 comp_generic_fixup(cdc, action, "i2c", "TIAS2781", "-%s:00", 1); in tas2781_fixup_i2c()
7336 comp_generic_fixup(cdc, action, "spi", "TXNW2781", "-%s:00-tas2781-hda.%d", 2); in tas2781_fixup_spi()
7342 comp_generic_fixup(cdc, action, "i2c", "INT8866", "-%s:00", 1); in yoga7_14arb7_fixup_i2c()
7345 static void alc256_fixup_acer_sfg16_micmute_led(struct hda_codec *codec, in alc256_fixup_acer_sfg16_micmute_led() argument
7348 alc_fixup_hp_gpio_led(codec, action, 0, 0x04); in alc256_fixup_acer_sfg16_micmute_led()
7359 WRITE_COEF(0x10, 0x0020), WRITE_COEF(0x24, 0x0000),
7360 WRITE_COEF(0x26, 0x0000), WRITE_COEF(0x29, 0x3000),
7361 WRITE_COEF(0x37, 0xfe05), WRITE_COEF(0x45, 0x5089),
7365 static void alc256_fixup_set_coef_defaults(struct hda_codec *codec, in alc256_fixup_set_coef_defaults() argument
7374 * plugged-in state, while the internal microphone is always in an in alc256_fixup_set_coef_defaults()
7377 alc_process_coef_fw(codec, alc256_fixup_set_coef_defaults_coefs); in alc256_fixup_set_coef_defaults()
7381 WRITE_COEF(0x1a, 0x9003), WRITE_COEF(0x1b, 0x0e2b), WRITE_COEF(0x37, 0xfe06),
7382 WRITE_COEF(0x38, 0x4981), WRITE_COEF(0x45, 0xd489), WRITE_COEF(0x46, 0x0074),
7383 WRITE_COEF(0x49, 0x0149),
7387 static void alc233_fixup_no_audio_jack(struct hda_codec *codec, in alc233_fixup_no_audio_jack() argument
7398 alc_process_coef_fw(codec, alc233_fixup_no_audio_jack_coefs); in alc233_fixup_no_audio_jack()
7401 static void alc256_fixup_mic_no_presence_and_resume(struct hda_codec *codec, in alc256_fixup_mic_no_presence_and_resume() argument
7406 * The Clevo NJ51CU comes either with the ALC293 or the ALC256 codec, in alc256_fixup_mic_no_presence_and_resume()
7407 * but uses the 0x8686 subproduct id in both cases. The ALC256 codec in alc256_fixup_mic_no_presence_and_resume()
7410 if (codec->core.vendor_id == 0x10ec0256) { in alc256_fixup_mic_no_presence_and_resume()
7411 alc_update_coef_idx(codec, 0x10, 1<<9, 0); in alc256_fixup_mic_no_presence_and_resume()
7412 snd_hda_codec_set_pincfg(codec, 0x19, 0x04a11120); in alc256_fixup_mic_no_presence_and_resume()
7414 snd_hda_codec_set_pincfg(codec, 0x1a, 0x04a1113c); in alc256_fixup_mic_no_presence_and_resume()
7418 static void alc256_decrease_headphone_amp_val(struct hda_codec *codec, in alc256_decrease_headphone_amp_val() argument
7427 caps = query_amp_caps(codec, 0x3, HDA_OUTPUT); in alc256_decrease_headphone_amp_val()
7428 nsteps = ((caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT) - 10; in alc256_decrease_headphone_amp_val()
7429 offs = ((caps & AC_AMPCAP_OFFSET) >> AC_AMPCAP_OFFSET_SHIFT) - 10; in alc256_decrease_headphone_amp_val()
7433 if (snd_hda_override_amp_caps(codec, 0x3, HDA_OUTPUT, caps)) in alc256_decrease_headphone_amp_val()
7434 codec_warn(codec, "failed to override amp caps for NID 0x3\n"); in alc256_decrease_headphone_amp_val()
7437 static void alc_fixup_dell4_mic_no_presence_quiet(struct hda_codec *codec, in alc_fixup_dell4_mic_no_presence_quiet() argument
7441 struct alc_spec *spec = codec->spec; in alc_fixup_dell4_mic_no_presence_quiet()
7442 struct hda_input_mux *imux = &spec->gen.input_mux; in alc_fixup_dell4_mic_no_presence_quiet()
7445 alc269_fixup_limit_int_mic_boost(codec, fix, action); in alc_fixup_dell4_mic_no_presence_quiet()
7450 * Set the vref of pin 0x19 (Headset Mic) and pin 0x1b (Headphone Mic) in alc_fixup_dell4_mic_no_presence_quiet()
7451 * to Hi-Z to avoid pop noises at startup and when plugging and in alc_fixup_dell4_mic_no_presence_quiet()
7454 snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); in alc_fixup_dell4_mic_no_presence_quiet()
7455 snd_hda_codec_set_pin_target(codec, 0x1b, PIN_VREFHIZ); in alc_fixup_dell4_mic_no_presence_quiet()
7459 * Make the internal mic (0x12) the default input source to in alc_fixup_dell4_mic_no_presence_quiet()
7462 for (i = 0; i < imux->num_items; i++) { in alc_fixup_dell4_mic_no_presence_quiet()
7463 if (spec->gen.imux_pins[i] == 0x12) { in alc_fixup_dell4_mic_no_presence_quiet()
7464 spec->gen.cur_mux[0] = i; in alc_fixup_dell4_mic_no_presence_quiet()
7472 static void alc287_fixup_yoga9_14iap7_bass_spk_pin(struct hda_codec *codec, in alc287_fixup_yoga9_14iap7_bass_spk_pin() argument
7476 * The Pin Complex 0x17 for the bass speakers is wrongly reported as in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7480 { 0x17, 0x90170121 }, in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7484 * Avoid DAC 0x06 and 0x08, as they have no volume controls. in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7485 * DAC 0x02 and 0x03 would be fine. in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7487 static const hda_nid_t conn[] = { 0x02, 0x03 }; in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7489 * Prefer both speakerbar (0x14) and bass speakers (0x17) connected to DAC 0x02. in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7490 * Headphones (0x21) are connected to DAC 0x03. in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7493 0x14, 0x02, in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7494 0x17, 0x02, in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7495 0x21, 0x03, in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7496 0 in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7498 struct alc_spec *spec = codec->spec; in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7502 snd_hda_apply_pincfgs(codec, pincfgs); in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7503 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7504 spec->gen.preferred_dacs = preferred_pairs; in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7509 static void alc295_fixup_dell_inspiron_top_speakers(struct hda_codec *codec, in alc295_fixup_dell_inspiron_top_speakers() argument
7513 { 0x14, 0x90170151 }, in alc295_fixup_dell_inspiron_top_speakers()
7514 { 0x17, 0x90170150 }, in alc295_fixup_dell_inspiron_top_speakers()
7517 static const hda_nid_t conn[] = { 0x02, 0x03 }; in alc295_fixup_dell_inspiron_top_speakers()
7519 0x14, 0x02, in alc295_fixup_dell_inspiron_top_speakers()
7520 0x17, 0x03, in alc295_fixup_dell_inspiron_top_speakers()
7521 0x21, 0x02, in alc295_fixup_dell_inspiron_top_speakers()
7522 0 in alc295_fixup_dell_inspiron_top_speakers()
7524 struct alc_spec *spec = codec->spec; in alc295_fixup_dell_inspiron_top_speakers()
7526 alc_fixup_no_shutup(codec, fix, action); in alc295_fixup_dell_inspiron_top_speakers()
7530 snd_hda_apply_pincfgs(codec, pincfgs); in alc295_fixup_dell_inspiron_top_speakers()
7531 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc295_fixup_dell_inspiron_top_speakers()
7532 spec->gen.preferred_dacs = preferred_pairs; in alc295_fixup_dell_inspiron_top_speakers()
7537 /* Forcibly assign NID 0x03 to HP while NID 0x02 to SPK */
7538 static void alc287_fixup_bind_dacs(struct hda_codec *codec, in alc287_fixup_bind_dacs() argument
7541 struct alc_spec *spec = codec->spec; in alc287_fixup_bind_dacs()
7542 static const hda_nid_t conn[] = { 0x02, 0x03 }; /* exclude 0x06 */ in alc287_fixup_bind_dacs()
7544 0x17, 0x02, 0x21, 0x03, 0 in alc287_fixup_bind_dacs()
7550 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc287_fixup_bind_dacs()
7551 spec->gen.preferred_dacs = preferred_pairs; in alc287_fixup_bind_dacs()
7552 spec->gen.auto_mute_via_amp = 1; in alc287_fixup_bind_dacs()
7553 if (spec->gen.autocfg.speaker_pins[0] != 0x14) { in alc287_fixup_bind_dacs()
7554 snd_hda_codec_write_cache(codec, 0x14, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in alc287_fixup_bind_dacs()
7555 0x0); /* Make sure 0x14 was disable */ in alc287_fixup_bind_dacs()
7559 static void alc_fixup_headset_mic(struct hda_codec *codec, in alc_fixup_headset_mic() argument
7562 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mic()
7564 { 0x19, 0x03a1103c }, in alc_fixup_headset_mic()
7570 snd_hda_apply_pincfgs(codec, pincfgs); in alc_fixup_headset_mic()
7571 alc_update_coef_idx(codec, 0x45, 0xf<<12 | 1<<10, 5<<12); in alc_fixup_headset_mic()
7572 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mic()
7577 static void alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec *codec, in alc245_fixup_hp_spectre_x360_eu0xxx() argument
7581 * The Pin Complex 0x14 for the treble speakers is wrongly reported as in alc245_fixup_hp_spectre_x360_eu0xxx()
7583 * The Pin Complex 0x17 for the bass speakers has the lowest association in alc245_fixup_hp_spectre_x360_eu0xxx()
7584 * and sequence values so shift it up a bit to squeeze 0x14 in. in alc245_fixup_hp_spectre_x360_eu0xxx()
7587 { 0x14, 0x90170110 }, // top/treble in alc245_fixup_hp_spectre_x360_eu0xxx()
7588 { 0x17, 0x90170111 }, // bottom/bass in alc245_fixup_hp_spectre_x360_eu0xxx()
7593 * Force DAC 0x02 for the bass speakers 0x17. in alc245_fixup_hp_spectre_x360_eu0xxx()
7595 static const hda_nid_t conn[] = { 0x02 }; in alc245_fixup_hp_spectre_x360_eu0xxx()
7599 snd_hda_apply_pincfgs(codec, pincfgs); in alc245_fixup_hp_spectre_x360_eu0xxx()
7600 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc245_fixup_hp_spectre_x360_eu0xxx()
7604 cs35l41_fixup_i2c_two(codec, fix, action); in alc245_fixup_hp_spectre_x360_eu0xxx()
7605 alc245_fixup_hp_mute_led_coefbit(codec, fix, action); in alc245_fixup_hp_spectre_x360_eu0xxx()
7606 alc245_fixup_hp_gpio_led(codec, fix, action); in alc245_fixup_hp_spectre_x360_eu0xxx()
7610 static void alc245_fixup_hp_spectre_x360_16_aa0xxx(struct hda_codec *codec, in alc245_fixup_hp_spectre_x360_16_aa0xxx() argument
7614 * The Pin Complex 0x14 for the treble speakers is wrongly reported as in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7616 * The Pin Complex 0x17 for the bass speakers has the lowest association in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7617 * and sequence values so shift it up a bit to squeeze 0x14 in. in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7619 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7621 { 0x14, 0x90170110 }, // top/treble in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7622 { 0x17, 0x90170111 }, // bottom/bass in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7627 * Force DAC 0x02 for the bass speakers 0x17. in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7629 static const hda_nid_t conn[] = { 0x02 }; in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7634 spec->gpio_mask |= 0x01; in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7635 spec->gpio_dir |= 0x01; in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7636 snd_hda_apply_pincfgs(codec, pincfgs); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7637 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7641 alc_update_gpio_data(codec, 0x01, true); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7643 alc_update_gpio_data(codec, 0x01, false); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7647 cs35l41_fixup_i2c_two(codec, fix, action); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7648 alc245_fixup_hp_mute_led_coefbit(codec, fix, action); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7649 alc245_fixup_hp_gpio_led(codec, fix, action); in alc245_fixup_hp_spectre_x360_16_aa0xxx()
7652 static void alc245_fixup_hp_zbook_firefly_g12a(struct hda_codec *codec, in alc245_fixup_hp_zbook_firefly_g12a() argument
7655 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_zbook_firefly_g12a()
7656 static const hda_nid_t conn[] = { 0x02 }; in alc245_fixup_hp_zbook_firefly_g12a()
7660 spec->gen.auto_mute_via_amp = 1; in alc245_fixup_hp_zbook_firefly_g12a()
7661 snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); in alc245_fixup_hp_zbook_firefly_g12a()
7665 cs35l41_fixup_i2c_two(codec, fix, action); in alc245_fixup_hp_zbook_firefly_g12a()
7666 alc245_fixup_hp_mute_led_coefbit(codec, fix, action); in alc245_fixup_hp_zbook_firefly_g12a()
7667 alc285_fixup_hp_coef_micmute_led(codec, fix, action); in alc245_fixup_hp_zbook_firefly_g12a()
7674 struct hda_codec *codec, in alc287_alc1318_playback_pcm_hook() argument
7680 alc_write_coefex_idx(codec, 0x5a, 0x00, 0x954f); /* write gpio3 to high */ in alc287_alc1318_playback_pcm_hook()
7683 alc_write_coefex_idx(codec, 0x5a, 0x00, 0x554f); /* write gpio3 as default value */ in alc287_alc1318_playback_pcm_hook()
7688 static void alc287_s4_power_gpio3_default(struct hda_codec *codec) in alc287_s4_power_gpio3_default() argument
7690 if (is_s4_suspend(codec)) { in alc287_s4_power_gpio3_default()
7691 alc_write_coefex_idx(codec, 0x5a, 0x00, 0x554f); /* write gpio3 as default value */ in alc287_s4_power_gpio3_default()
7695 static void alc287_fixup_lenovo_thinkpad_with_alc1318(struct hda_codec *codec, in alc287_fixup_lenovo_thinkpad_with_alc1318() argument
7698 struct alc_spec *spec = codec->spec; in alc287_fixup_lenovo_thinkpad_with_alc1318()
7700 WRITE_COEF(0x24, 0x0013), WRITE_COEF(0x25, 0x0000), WRITE_COEF(0x26, 0xC300), in alc287_fixup_lenovo_thinkpad_with_alc1318()
7701 WRITE_COEF(0x28, 0x0001), WRITE_COEF(0x29, 0xb023), in alc287_fixup_lenovo_thinkpad_with_alc1318()
7702 WRITE_COEF(0x24, 0x0013), WRITE_COEF(0x25, 0x0000), WRITE_COEF(0x26, 0xC301), in alc287_fixup_lenovo_thinkpad_with_alc1318()
7703 WRITE_COEF(0x28, 0x0001), WRITE_COEF(0x29, 0xb023), in alc287_fixup_lenovo_thinkpad_with_alc1318()
7708 alc_update_coef_idx(codec, 0x10, 1<<11, 1<<11); in alc287_fixup_lenovo_thinkpad_with_alc1318()
7709 alc_process_coef_fw(codec, coefs); in alc287_fixup_lenovo_thinkpad_with_alc1318()
7710 spec->power_hook = alc287_s4_power_gpio3_default; in alc287_fixup_lenovo_thinkpad_with_alc1318()
7711 spec->gen.pcm_playback_hook = alc287_alc1318_playback_pcm_hook; in alc287_fixup_lenovo_thinkpad_with_alc1318()
7715 * Clear COEF 0x0d (PCBEEP passthrough) bit 0x40 where BIOS sets it wrongly
7718 static void alc283_fixup_dell_hp_resume(struct hda_codec *codec, in alc283_fixup_dell_hp_resume() argument
7722 alc_write_coef_idx(codec, 0xd, 0x2800); in alc283_fixup_dell_hp_resume()
8042 * depending on the codec ID
8044 static void alc298_fixup_lenovo_c940_duet7(struct hda_codec *codec, in alc298_fixup_lenovo_c940_duet7() argument
8050 if (codec->core.vendor_id == 0x10ec0298) in alc298_fixup_lenovo_c940_duet7()
8054 __snd_hda_apply_fixup(codec, id, action, 0); in alc298_fixup_lenovo_c940_duet7()
8065 {0x19, PIN_VREFGRD},
8079 {0x20, AC_VERB_SET_COEF_INDEX, 13},
8080 {0x20, AC_VERB_SET_PROC_COEF, 0x4040},
8091 { 0x17, 0x99130111 }, /* subwoofer */
8098 { 0x19, 0x03A11050 },
8099 { 0x1a, 0x03A11C30 },
8100 { 0x21, 0x03211420 },
8107 {0x20, AC_VERB_SET_COEF_INDEX, 0x62},
8108 {0x20, AC_VERB_SET_PROC_COEF, 0xa007},
8109 {0x20, AC_VERB_SET_COEF_INDEX, 0x10},
8110 {0x20, AC_VERB_SET_PROC_COEF, 0x8420},
8111 {0x20, AC_VERB_SET_COEF_INDEX, 0x0f},
8112 {0x20, AC_VERB_SET_PROC_COEF, 0x7774},
8121 {0x14, AC_VERB_SET_EAPD_BTLENABLE, 0},
8162 { 0x1a, 0x2101103f }, /* dock line-out */
8163 { 0x1b, 0x23a11040 }, /* dock mic-in */
8172 { 0x19, 0x01a1903c }, /* headset mic, with jack detect */
8179 { 0x21, 0x0221102f }, /* HP out */
8194 { 0x14, 0x90170151 }, /* use as internal speaker (LFE) */
8195 { 0x1b, 0x90170152 }, /* use as internal speaker (back) */
8204 { 0x1b, 0x90170150 }, /* use as internal speaker */
8213 { 0x18, 0x03a19020 }, /* headset mic */
8214 { 0x1b, 0x90170150 }, /* speaker */
8221 { 0x14, 0x99130110 }, /* speaker */
8222 { 0x15, 0x0121401f }, /* HP out */
8223 { 0x18, 0x01a19c20 }, /* mic */
8224 { 0x19, 0x99a3092f }, /* int-mic */
8231 { 0x12, 0x99a3092f }, /* int-mic */
8232 { 0x14, 0x99130110 }, /* speaker */
8233 { 0x15, 0x0121401f }, /* HP out */
8234 { 0x18, 0x01a19c20 }, /* mic */
8241 { 0x14, 0x99130110 }, /* speaker */
8242 { 0x18, 0x01a19c20 }, /* mic */
8243 { 0x19, 0x99a3092f }, /* int-mic */
8244 { 0x21, 0x0121401f }, /* HP out */
8251 { 0x12, 0x99a3092f }, /* int-mic */
8252 { 0x14, 0x99130110 }, /* speaker */
8253 { 0x18, 0x01a19c20 }, /* mic */
8254 { 0x21, 0x0121401f }, /* HP out */
8299 { 0x19, 0x23a11040 }, /* dock mic */
8300 { 0x1b, 0x2121103f }, /* dock headphone */
8321 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8322 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8337 { 0x16, 0x21014020 }, /* dock line out */
8338 { 0x19, 0x21a19030 }, /* dock mic */
8339 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8348 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8357 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8358 { 0x1b, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8377 { 0x19, 0x01a1913c }, /* headset mic w/o jack detect */
8386 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8395 {0x12, 0x90a60130},
8396 {0x13, 0x40000000},
8397 {0x14, 0x90170110},
8398 {0x18, 0x411111f0},
8399 {0x19, 0x04a11040},
8400 {0x1a, 0x411111f0},
8401 {0x1b, 0x90170112},
8402 {0x1d, 0x40759a05},
8403 {0x1e, 0x411111f0},
8404 {0x21, 0x04211020},
8423 {0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
8424 {0x20, AC_VERB_SET_COEF_INDEX, 0x08},
8425 {0x20, AC_VERB_SET_PROC_COEF, 0x0310},
8434 { 0x18, 0x04a1182c }, /* Headset mic */
8443 { 0x14, 0x99130110 }, /* speaker */
8444 { 0x19, 0x01a19c20 }, /* mic */
8445 { 0x1b, 0x99a7012f }, /* int-mic */
8446 { 0x21, 0x0121401f }, /* HP out */
8465 { 0x12, 0x99a3092f }, /* int-mic */
8466 { 0x14, 0x99130110 }, /* speaker */
8467 { 0x18, 0x03a11c20 }, /* mic */
8468 { 0x1e, 0x0346101e }, /* SPDIF1 */
8469 { 0x21, 0x0321101f }, /* HP out */
8490 /* class-D output amp +5dB */
8491 { 0x20, AC_VERB_SET_COEF_INDEX, 0x12 },
8492 { 0x20, AC_VERB_SET_PROC_COEF, 0x2800 },
8501 { 0x18, 0x01a110f0 }, /* use as headset mic */
8516 { 0x12, 0x99a3092f }, /* int-mic */
8517 { 0x18, 0x03a11d20 }, /* mic */
8518 { 0x19, 0x411111f0 }, /* Unused bogus pin */
8539 {0x20, AC_VERB_SET_COEF_INDEX, 0x1a},
8540 {0x20, AC_VERB_SET_PROC_COEF, 0x0011},
8549 { 0x17, 0x90170112 }, /* subwoofer */
8558 { 0x17, 0x90170112 }, /* subwoofer */
8595 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8604 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8613 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8614 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8629 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8648 { 0x18, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8649 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8670 { 0x19, 0x04a110f0 },
8681 { 0x12, 0x90a60130 },
8682 { 0x14, 0x90170110 },
8683 { 0x17, 0x40000008 },
8684 { 0x18, 0x411111f0 },
8685 { 0x19, 0x01a1913c },
8686 { 0x1a, 0x411111f0 },
8687 { 0x1b, 0x411111f0 },
8688 { 0x1d, 0x40f89b2d },
8689 { 0x1e, 0x411111f0 },
8690 { 0x21, 0x0321101f },
8713 { 0x1b, 0x21011020 }, /* line-out */
8714 { 0x1a, 0x01a1903c }, /* headset mic */
8715 { 0x18, 0x2181103f }, /* line-in */
8724 { 0x1b, 0x21011020 }, /* line-out */
8725 { 0x18, 0x2181103f }, /* line-in */
8750 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8751 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8797 { 0x18, 0x01a1913c }, /* headset mic w/o jack detect */
8806 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8807 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
8816 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8826 {0x20, AC_VERB_SET_COEF_INDEX, 0x1f},
8827 {0x20, AC_VERB_SET_PROC_COEF, 0x00c0},
8828 {0x20, AC_VERB_SET_COEF_INDEX, 0x30},
8829 {0x20, AC_VERB_SET_PROC_COEF, 0x00b1},
8872 /* Disable pass-through path for FRONT 14h */
8873 { 0x20, AC_VERB_SET_COEF_INDEX, 0x36 },
8874 { 0x20, AC_VERB_SET_PROC_COEF, 0x57d7 },
8889 { 0x19, 0x02a19020 }, /* Front Mic */
8928 { 0x19, 0x03a11050 },
8929 { 0x1b, 0x03a11c30 },
8938 { 0x14, 0x90170120 },
8953 { 0x19, 0x03a11050 },
8954 { 0x1b, 0x03a11c30 },
8963 { 0x1b, 0x90170151 },
8978 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8979 { 0x1a, 0x01813030 }, /* use as headphone mic, without its own jack detect */
8988 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
8989 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
9002 { 0x13, 0x90a60160 }, /* use as internal mic */
9003 { 0x19, 0x04a11120 }, /* use as headset mic, without its own jack detect */
9017 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9027 {0x20, AC_VERB_SET_COEF_INDEX, 0x40},
9028 {0x20, AC_VERB_SET_PROC_COEF, 0x8800},
9043 { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
9044 { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
9058 { 0x1a, 0x04a19040 },
9065 { 0x16, 0x0101102f }, /* Rear Headset HP */
9066 { 0x19, 0x02a1913c }, /* use as Front headset mic, without its own jack detect */
9067 { 0x1a, 0x01a19030 }, /* Rear Headset MIC */
9068 { 0x1b, 0x02011020 },
9084 {0x20, AC_VERB_SET_COEF_INDEX, 0x45},
9085 {0x20, AC_VERB_SET_PROC_COEF, 0x5289},
9086 {0x20, AC_VERB_SET_COEF_INDEX, 0x4A},
9087 {0x20, AC_VERB_SET_PROC_COEF, 0x001b},
9088 {0x58, AC_VERB_SET_COEF_INDEX, 0x00},
9089 {0x58, AC_VERB_SET_PROC_COEF, 0x3888},
9090 {0x20, AC_VERB_SET_COEF_INDEX, 0x6f},
9091 {0x20, AC_VERB_SET_PROC_COEF, 0x2c0b},
9104 { 0x1b, 0x0401102f },
9125 { 0x14, 0x0201101f },
9134 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9149 { 0x19, 0x0181313f},
9168 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9177 { 0x13, 0x90a60160 }, /* use as internal mic */
9178 { 0x19, 0x04a11120 }, /* use as headset mic, without its own jack detect */
9187 { 0x19, 0x01a1103c }, /* use as headset mic */
9197 { 0x20, AC_VERB_SET_COEF_INDEX, 0x40 },
9198 { 0x20, AC_VERB_SET_PROC_COEF, 0x8800 },
9199 { 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
9200 { 0x20, AC_VERB_SET_PROC_COEF, 0x7774 },
9219 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9228 /* Disable PCBEEP-IN passthrough */
9229 { 0x20, AC_VERB_SET_COEF_INDEX, 0x36 },
9230 { 0x20, AC_VERB_SET_PROC_COEF, 0x57d7 },
9239 { 0x19, 0x03a11130 },
9240 { 0x1a, 0x90a60140 }, /* use as internal mic */
9249 { 0x16, 0x01011020 }, /* Rear Line out */
9250 { 0x19, 0x01a1913c }, /* use as Front headset mic, without its own jack detect */
9271 { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f },
9272 { 0x20, AC_VERB_SET_PROC_COEF, 0x5029 },
9281 { 0x19, 0x03a11020 }, /* headset mic with jack detect */
9290 { 0x19, 0x04a11120 }, /* use as headset mic, without its own jack detect */
9299 { 0x17, 0x90170151 }, /* use as internal speaker (LFE) */
9300 { 0x1b, 0x90170152 } /* use as internal speaker (back) */
9306 { 0x21, 0x90170150 }, /* use as headset mic, without its own jack detect */
9319 { 0x19, 0x04a11040 },
9320 { 0x21, 0x04211020 },
9329 { 0x14, 0x90170140 },
9338 { 0x17, 0x90170130 }, /* bass spk */
9378 { 0x19, 0x03a11050 },
9379 { 0x1a, 0x03a11c30 },
9380 { 0x21, 0x03211420 },
9389 { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
9390 { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
9391 { 0x20, AC_VERB_SET_COEF_INDEX, 0x46 },
9392 { 0x20, AC_VERB_SET_PROC_COEF, 0x0004 },
9393 { 0x20, AC_VERB_SET_COEF_INDEX, 0x47 },
9394 { 0x20, AC_VERB_SET_PROC_COEF, 0xa47a },
9395 { 0x20, AC_VERB_SET_COEF_INDEX, 0x49 },
9396 { 0x20, AC_VERB_SET_PROC_COEF, 0x0049},
9397 { 0x20, AC_VERB_SET_COEF_INDEX, 0x4a },
9398 { 0x20, AC_VERB_SET_PROC_COEF, 0x201b },
9399 { 0x20, AC_VERB_SET_COEF_INDEX, 0x6b },
9400 { 0x20, AC_VERB_SET_PROC_COEF, 0x4278},
9426 { 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
9427 { 0x20, AC_VERB_SET_PROC_COEF, 0x7774 },
9436 { 0x19, 0x03a11050 }, /* front HP mic */
9437 { 0x1a, 0x01a11830 }, /* rear external mic */
9438 { 0x21, 0x03211020 }, /* front HP out */
9447 /* set 0x15 to HP-OUT ctrl */
9448 { 0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc0 },
9449 /* unmute the 0x15 amp */
9450 { 0x15, AC_VERB_SET_AMP_GAIN_MUTE, 0xb000 },
9463 { 0x19, 0x01a11050 }, /* rear HP mic */
9464 { 0x1a, 0x01a11830 }, /* rear external mic */
9465 { 0x21, 0x012110f0 }, /* rear HP out */
9474 /* set 0x15 to HP-OUT ctrl */
9475 { 0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc0 },
9476 /* unmute the 0x15 amp */
9477 { 0x15, AC_VERB_SET_AMP_GAIN_MUTE, 0xb000 },
9478 /* set 0x1b to HP-OUT */
9479 { 0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24 },
9492 { 0x19, 0x03a11050 }, /* front HP mic */
9493 { 0x1a, 0x03a11c30 }, /* rear external mic */
9494 { 0x21, 0x03211420 }, /* front HP out */
9501 { 0x14, 0x90170152 }, /* Speaker Surround Playback Switch */
9502 { 0x19, 0x03a19020 }, /* Mic Boost Volume */
9503 { 0x1a, 0x03a11c30 }, /* Mic Boost Volume */
9504 { 0x1e, 0x90170151 }, /* Rear jack, IN OUT EAPD Detect */
9505 { 0x21, 0x03211420 },
9515 { 0x20, AC_VERB_SET_COEF_INDEX, 0x1b },
9516 { 0x20, AC_VERB_SET_PROC_COEF, 0x4e4b },
9583 { 0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc5 },
9590 { 0x20, AC_VERB_SET_COEF_INDEX, 0x08},
9591 { 0x20, AC_VERB_SET_PROC_COEF, 0x2fcf},
9598 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9607 { 0x14, 0x90100120 }, /* use as internal speaker */
9608 { 0x18, 0x02a111f0 }, /* use as headset mic, without its own jack detect */
9609 { 0x1a, 0x01011020 }, /* use as line out */
9618 { 0x18, 0x02a11030 }, /* use as headset mic */
9627 { 0x18, 0x01a11130 }, /* use as headset mic, without its own jack detect */
9642 { 0x19, 0x03a11020 }, /* headset mic with jack detect */
9649 { 0x19, 0x02a11120 }, /* use as headset mic, without its own jack detect */
9664 { 0x12, 0x411111f0 },
9665 { 0x14, 0x90170110 }, /* speaker */
9666 { 0x15, 0x032f1020 }, /* HP out */
9667 { 0x17, 0x411111f0 },
9668 { 0x18, 0x03ab1040 }, /* mic */
9669 { 0x19, 0xb7a7013f },
9670 { 0x1a, 0x0181305f },
9671 { 0x1b, 0x411111f0 },
9672 { 0x1d, 0x411111f0 },
9673 { 0x1e, 0x411111f0 },
9681 { 0x12, 0x4000c000 },
9682 { 0x14, 0x90170110 }, /* speaker */
9683 { 0x15, 0x0421401f }, /* HP out */
9684 { 0x17, 0x411111f0 },
9685 { 0x18, 0x04a19020 }, /* mic */
9686 { 0x19, 0x411111f0 },
9687 { 0x1a, 0x411111f0 },
9688 { 0x1b, 0x411111f0 },
9689 { 0x1d, 0x40448505 },
9690 { 0x1e, 0x411111f0 },
9691 { 0x20, 0x8000ffff },
9699 { 0x12, 0x40000000 },
9700 { 0x14, 0x01014010 }, /* speaker */
9701 { 0x15, 0x411111f0 }, /* HP out */
9702 { 0x16, 0x411111f0 },
9703 { 0x18, 0x01a19020 }, /* mic */
9704 { 0x19, 0x02a19021 },
9705 { 0x1a, 0x0181302f },
9706 { 0x1b, 0x0221401f },
9707 { 0x1c, 0x411111f0 },
9708 { 0x1d, 0x4044c601 },
9709 { 0x1e, 0x411111f0 },
9717 { 0x12, 0x40000000 },
9718 { 0x14, 0x90170110 }, /* speaker */
9719 { 0x17, 0x411111f0 },
9720 { 0x18, 0x03a19040 }, /* mic1 */
9721 { 0x19, 0x90a70130 }, /* mic2 */
9722 { 0x1a, 0x411111f0 },
9723 { 0x1b, 0x411111f0 },
9724 { 0x1d, 0x40489d2d },
9725 { 0x1e, 0x411111f0 },
9726 { 0x20, 0x0003ffff },
9727 { 0x21, 0x03214020 },
9735 { 0x14, 0x99130110 }, /* speaker */
9736 { 0x15, 0x0121401f }, /* HP out */
9737 { 0x18, 0x01a19c20 }, /* rear mic */
9738 { 0x19, 0x99a3092f }, /* front mic */
9739 { 0x1b, 0x0201401f }, /* front lineout */
9747 { 0x1b, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9756 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9765 { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
9766 { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
9775 { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
9776 { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
9793 { 0x20, AC_VERB_SET_COEF_INDEX, 0x10 },
9794 { 0x20, AC_VERB_SET_PROC_COEF, 0xc420 },
9795 { 0x20, AC_VERB_SET_COEF_INDEX, 0x40 },
9796 { 0x20, AC_VERB_SET_PROC_COEF, 0x8800 },
9797 { 0x20, AC_VERB_SET_COEF_INDEX, 0x49 },
9798 { 0x20, AC_VERB_SET_PROC_COEF, 0x0249 },
9799 { 0x20, AC_VERB_SET_COEF_INDEX, 0x4a },
9800 { 0x20, AC_VERB_SET_PROC_COEF, 0x202b },
9801 { 0x20, AC_VERB_SET_COEF_INDEX, 0x62 },
9802 { 0x20, AC_VERB_SET_PROC_COEF, 0xa007 },
9803 { 0x20, AC_VERB_SET_COEF_INDEX, 0x6b },
9804 { 0x20, AC_VERB_SET_PROC_COEF, 0x5060 },
9814 { 0x20, AC_VERB_SET_COEF_INDEX, 0x0f },
9815 { 0x20, AC_VERB_SET_PROC_COEF, 0x7778 },
9844 { 0x1b, 0x411111f0 },
9845 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
9860 { 0x19, 0x02a1113c }, /* use as headset mic, without its own jack detect */
9861 { 0x1a, 0x90a1092f }, /* use as internal mic */
9886 { 0x12, 0xb7a60130 },
9887 { 0x13, 0x40000000 },
9888 { 0x14, 0x411111f0 },
9889 { 0x16, 0x411111f0 },
9890 { 0x17, 0x90170110 },
9891 { 0x18, 0x411111f0 },
9892 { 0x19, 0x02a11030 },
9893 { 0x1a, 0x411111f0 },
9894 { 0x1b, 0x04a19030 },
9895 { 0x1d, 0x40600001 },
9896 { 0x1e, 0x411111f0 },
9897 { 0x21, 0x03211020 },
9936 { 0x21, 0x03211030 }, /* Change the Headphone location to Left */
9965 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
9966 { 0x20, AC_VERB_SET_PROC_COEF, 0x41 },
9968 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
9969 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
9970 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9971 { 0x20, AC_VERB_SET_PROC_COEF, 0x1a },
9972 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
9974 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
9975 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
9976 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9977 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9978 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
9981 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
9982 { 0x20, AC_VERB_SET_PROC_COEF, 0x42 },
9984 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
9985 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
9986 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9987 { 0x20, AC_VERB_SET_PROC_COEF, 0x2a },
9988 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
9990 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
9991 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
9992 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9993 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
9994 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10010 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10011 { 0x20, AC_VERB_SET_PROC_COEF, 0x41 },
10013 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10014 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
10015 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10016 { 0x20, AC_VERB_SET_PROC_COEF, 0x1a },
10017 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10019 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10020 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10021 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10022 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10023 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10026 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10027 { 0x20, AC_VERB_SET_PROC_COEF, 0x46 },
10029 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10030 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
10031 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10032 { 0x20, AC_VERB_SET_PROC_COEF, 0x2a },
10033 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10035 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10036 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10037 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10038 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10039 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10052 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10053 { 0x20, AC_VERB_SET_PROC_COEF, 0x41 },
10054 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10055 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10056 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10057 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10058 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10059 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10060 { 0x20, AC_VERB_SET_PROC_COEF, 0x42 },
10061 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10062 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10063 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10064 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10065 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10082 { 0x19, 0x03a11120 }, /* use as headset mic, without its own jack detect */
10139 { 0x20, AC_VERB_SET_COEF_INDEX, 0x19 },
10140 { 0x20, AC_VERB_SET_PROC_COEF, 0x8e11 },
10155 { 0x19, 0x02a1112c }, /* use as headset mic, without its own jack detect */
10169 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10170 { 0x20, AC_VERB_SET_PROC_COEF, 0x41 },
10172 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10173 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
10174 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10175 { 0x20, AC_VERB_SET_PROC_COEF, 0x1a },
10176 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10178 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10179 { 0x20, AC_VERB_SET_PROC_COEF, 0xf },
10180 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10181 { 0x20, AC_VERB_SET_PROC_COEF, 0x42 },
10182 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10184 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10185 { 0x20, AC_VERB_SET_PROC_COEF, 0x10 },
10186 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10187 { 0x20, AC_VERB_SET_PROC_COEF, 0x40 },
10188 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10190 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10191 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10192 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10193 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10194 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10197 { 0x20, AC_VERB_SET_COEF_INDEX, 0x24 },
10198 { 0x20, AC_VERB_SET_PROC_COEF, 0x46 },
10200 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10201 { 0x20, AC_VERB_SET_PROC_COEF, 0xc },
10202 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10203 { 0x20, AC_VERB_SET_PROC_COEF, 0x2a },
10204 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10206 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10207 { 0x20, AC_VERB_SET_PROC_COEF, 0xf },
10208 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10209 { 0x20, AC_VERB_SET_PROC_COEF, 0x46 },
10210 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10212 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10213 { 0x20, AC_VERB_SET_PROC_COEF, 0x10 },
10214 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10215 { 0x20, AC_VERB_SET_PROC_COEF, 0x44 },
10216 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10218 { 0x20, AC_VERB_SET_COEF_INDEX, 0x26 },
10219 { 0x20, AC_VERB_SET_PROC_COEF, 0x2 },
10220 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10221 { 0x20, AC_VERB_SET_PROC_COEF, 0x0 },
10222 { 0x20, AC_VERB_SET_PROC_COEF, 0xb020 },
10342 { 0x19, 0x03a11050 },
10343 { 0x1b, 0x03a11c30 },
10358 { 0x19, 0x03a11050 },
10359 { 0x1b, 0x03a11c30 },
10390 { 0x19, 0x03a1113c }, /* use as headset mic, without its own jack detect */
10391 { 0x1b, 0x20a11040 }, /* dock mic */
10400 { 0x1b, 0x90170110 },
10425 { 0x19, 0x03a11050 },
10426 { 0x1b, 0x03a11c30 },
10445 SND_PCI_QUIRK(0x1025, 0x0283, "Acer TravelMate 8371", ALC269_FIXUP_INV_DMIC),
10446 SND_PCI_QUIRK(0x1025, 0x029b, "Acer 1810TZ", ALC269_FIXUP_INV_DMIC),
10447 SND_PCI_QUIRK(0x1025, 0x0349, "Acer AOD260", ALC269_FIXUP_INV_DMIC),
10448 SND_PCI_QUIRK(0x1025, 0x047c, "Acer AC700", ALC269_FIXUP_ACER_AC700),
10449 SND_PCI_QUIRK(0x1025, 0x072d, "Acer Aspire V5-571G", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
10450 SND_PCI_QUIRK(0x1025, 0x0740, "Acer AO725", ALC271_FIXUP_HP_GATE_MIC_JACK),
10451 SND_PCI_QUIRK(0x1025, 0x0742, "Acer AO756", ALC271_FIXUP_HP_GATE_MIC_JACK),
10452 SND_PCI_QUIRK(0x1025, 0x0762, "Acer Aspire E1-472", ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572),
10453 SND_PCI_QUIRK(0x1025, 0x0775, "Acer Aspire E1-572", ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572),
10454 SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
10455 SND_PCI_QUIRK(0x1025, 0x080d, "Acer Aspire V5-122P", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
10456 SND_PCI_QUIRK(0x1025, 0x0840, "Acer Aspire E1", ALC269VB_FIXUP_ASPIRE_E1_COEF),
10457 SND_PCI_QUIRK(0x1025, 0x100c, "Acer Aspire E5-574G", ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST),
10458 SND_PCI_QUIRK(0x1025, 0x101c, "Acer Veriton N2510G", ALC269_FIXUP_LIFEBOOK),
10459 SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
10460 SND_PCI_QUIRK(0x1025, 0x1065, "Acer Aspire C20-820", ALC269VC_FIXUP_ACER_HEADSET_MIC),
10461 SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK),
10462 SND_PCI_QUIRK(0x1025, 0x1094, "Acer Aspire E5-575T", ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST),
10463 SND_PCI_QUIRK(0x1025, 0x1099, "Acer Aspire E5-523G", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10464 SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10465 SND_PCI_QUIRK(0x1025, 0x1166, "Acer Veriton N4640G", ALC269_FIXUP_LIFEBOOK),
10466 SND_PCI_QUIRK(0x1025, 0x1167, "Acer Veriton N6640G", ALC269_FIXUP_LIFEBOOK),
10467 SND_PCI_QUIRK(0x1025, 0x1177, "Acer Predator G9-593", ALC255_FIXUP_PREDATOR_SUBWOOFER),
10468 SND_PCI_QUIRK(0x1025, 0x1178, "Acer Predator G9-593", ALC255_FIXUP_PREDATOR_SUBWOOFER),
10469 SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_FIXUP_PREDATOR_SPK),
10470 SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS),
10471 SND_PCI_QUIRK(0x1025, 0x1248, "Acer Veriton N4660G", ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE),
10472 SND_PCI_QUIRK(0x1025, 0x1269, "Acer SWIFT SF314-54", ALC256_FIXUP_ACER_HEADSET_MIC),
10473 SND_PCI_QUIRK(0x1025, 0x126a, "Acer Swift SF114-32", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
10474 SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
10475 SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
10476 SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
10477 SND_PCI_QUIRK(0x1025, 0x129c, "Acer SWIFT SF314-55", ALC256_FIXUP_ACER_HEADSET_MIC),
10478 SND_PCI_QUIRK(0x1025, 0x129d, "Acer SWIFT SF313-51", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
10479 SND_PCI_QUIRK(0x1025, 0x1300, "Acer SWIFT SF314-56", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
10480 SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
10481 SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233_FIXUP_ACER_HEADSET_MIC),
10482 SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
10483 SND_PCI_QUIRK(0x1025, 0x1360, "Acer Aspire A115", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10484 SND_PCI_QUIRK(0x1025, 0x141f, "Acer Spin SP513-54N", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10485 SND_PCI_QUIRK(0x1025, 0x142b, "Acer Swift SF314-42", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10486 SND_PCI_QUIRK(0x1025, 0x1430, "Acer TravelMate B311R-31", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
10487 SND_PCI_QUIRK(0x1025, 0x1466, "Acer Aspire A515-56", ALC255_FIXUP_ACER_HEADPHONE_AND_MIC),
10488 SND_PCI_QUIRK(0x1025, 0x1534, "Acer Predator PH315-54", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
10489 SND_PCI_QUIRK(0x1025, 0x159c, "Acer Nitro 5 AN515-58", ALC2XX_FIXUP_HEADSET_MIC),
10490 SND_PCI_QUIRK(0x1025, 0x169a, "Acer Swift SFG16", ALC256_FIXUP_ACER_SFG16_MICMUTE_LED),
10491 SND_PCI_QUIRK(0x1025, 0x1826, "Acer Helios ZPC", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
10492 SND_PCI_QUIRK(0x1025, 0x182c, "Acer Helios ZPD", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
10493 SND_PCI_QUIRK(0x1025, 0x1844, "Acer Helios ZPS", ALC287_FIXUP_PREDATOR_SPK_CS35L41_I2C_2),
10494 SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
10495 SND_PCI_QUIRK(0x1028, 0x053c, "Dell Latitude E5430", ALC292_FIXUP_DELL_E7X),
10496 SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),
10497 SND_PCI_QUIRK(0x1028, 0x05bd, "Dell Latitude E6440", ALC292_FIXUP_DELL_E7X),
10498 SND_PCI_QUIRK(0x1028, 0x05be, "Dell Latitude E6540", ALC292_FIXUP_DELL_E7X),
10499 SND_PCI_QUIRK(0x1028, 0x05ca, "Dell Latitude E7240", ALC292_FIXUP_DELL_E7X),
10500 SND_PCI_QUIRK(0x1028, 0x05cb, "Dell Latitude E7440", ALC292_FIXUP_DELL_E7X),
10501 SND_PCI_QUIRK(0x1028, 0x05da, "Dell Vostro 5460", ALC290_FIXUP_SUBWOOFER),
10502 SND_PCI_QUIRK(0x1028, 0x05f4, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
10503 SND_PCI_QUIRK(0x1028, 0x05f5, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
10504 SND_PCI_QUIRK(0x1028, 0x05f6, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
10505 SND_PCI_QUIRK(0x1028, 0x0604, "Dell Venue 11 Pro 7130", ALC283_FIXUP_DELL_HP_RESUME),
10506 SND_PCI_QUIRK(0x1028, 0x0615, "Dell Vostro 5470", ALC290_FIXUP_SUBWOOFER_HSJACK),
10507 SND_PCI_QUIRK(0x1028, 0x0616, "Dell Vostro 5470", ALC290_FIXUP_SUBWOOFER_HSJACK),
10508 SND_PCI_QUIRK(0x1028, 0x062c, "Dell Latitude E5550", ALC292_FIXUP_DELL_E7X),
10509 SND_PCI_QUIRK(0x1028, 0x062e, "Dell Latitude E7450", ALC292_FIXUP_DELL_E7X),
10510 SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439", ALC290_FIXUP_MONO_SPEAKERS_HSJACK),
10511 SND_PCI_QUIRK(0x1028, 0x064a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10512 SND_PCI_QUIRK(0x1028, 0x064b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10513 SND_PCI_QUIRK(0x1028, 0x0665, "Dell XPS 13", ALC288_FIXUP_DELL_XPS_13),
10514 SND_PCI_QUIRK(0x1028, 0x0669, "Dell Optiplex 9020m", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
10515 SND_PCI_QUIRK(0x1028, 0x069a, "Dell Vostro 5480", ALC290_FIXUP_SUBWOOFER_HSJACK),
10516 SND_PCI_QUIRK(0x1028, 0x06c7, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
10517 SND_PCI_QUIRK(0x1028, 0x06d9, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10518 SND_PCI_QUIRK(0x1028, 0x06da, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10519 SND_PCI_QUIRK(0x1028, 0x06db, "Dell", ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK),
10520 SND_PCI_QUIRK(0x1028, 0x06dd, "Dell", ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK),
10521 SND_PCI_QUIRK(0x1028, 0x06de, "Dell", ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK),
10522 SND_PCI_QUIRK(0x1028, 0x06df, "Dell", ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK),
10523 SND_PCI_QUIRK(0x1028, 0x06e0, "Dell", ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK),
10524 SND_PCI_QUIRK(0x1028, 0x0706, "Dell Inspiron 7559", ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER),
10525 SND_PCI_QUIRK(0x1028, 0x0725, "Dell Inspiron 3162", ALC255_FIXUP_DELL_SPK_NOISE),
10526 SND_PCI_QUIRK(0x1028, 0x0738, "Dell Precision 5820", ALC269_FIXUP_NO_SHUTUP),
10527 SND_PCI_QUIRK(0x1028, 0x075c, "Dell XPS 27 7760", ALC298_FIXUP_SPK_VOLUME),
10528 SND_PCI_QUIRK(0x1028, 0x075d, "Dell AIO", ALC298_FIXUP_SPK_VOLUME),
10529 …SND_PCI_QUIRK(0x1028, 0x0798, "Dell Inspiron 17 7000 Gaming", ALC256_FIXUP_DELL_INSPIRON_7559_SUBW…
10530 SND_PCI_QUIRK(0x1028, 0x07b0, "Dell Precision 7520", ALC295_FIXUP_DISABLE_DAC3),
10531 SND_PCI_QUIRK(0x1028, 0x080c, "Dell WYSE", ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE),
10532 SND_PCI_QUIRK(0x1028, 0x084b, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB),
10533 SND_PCI_QUIRK(0x1028, 0x084e, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB),
10534 SND_PCI_QUIRK(0x1028, 0x0871, "Dell Precision 3630", ALC255_FIXUP_DELL_HEADSET_MIC),
10535 SND_PCI_QUIRK(0x1028, 0x0872, "Dell Precision 3630", ALC255_FIXUP_DELL_HEADSET_MIC),
10536 SND_PCI_QUIRK(0x1028, 0x0873, "Dell Precision 3930", ALC255_FIXUP_DUMMY_LINEOUT_VERB),
10537 SND_PCI_QUIRK(0x1028, 0x0879, "Dell Latitude 5420 Rugged", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
10538 SND_PCI_QUIRK(0x1028, 0x08ad, "Dell WYSE AIO", ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE),
10539 SND_PCI_QUIRK(0x1028, 0x08ae, "Dell WYSE NB", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE),
10540 SND_PCI_QUIRK(0x1028, 0x0935, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB),
10541 SND_PCI_QUIRK(0x1028, 0x097d, "Dell Precision", ALC289_FIXUP_DUAL_SPK),
10542 SND_PCI_QUIRK(0x1028, 0x097e, "Dell Precision", ALC289_FIXUP_DUAL_SPK),
10543 SND_PCI_QUIRK(0x1028, 0x098d, "Dell Precision", ALC233_FIXUP_ASUS_MIC_NO_PRESENCE),
10544 SND_PCI_QUIRK(0x1028, 0x09bf, "Dell Precision", ALC233_FIXUP_ASUS_MIC_NO_PRESENCE),
10545 SND_PCI_QUIRK(0x1028, 0x0a2e, "Dell", ALC236_FIXUP_DELL_AIO_HEADSET_MIC),
10546 SND_PCI_QUIRK(0x1028, 0x0a30, "Dell", ALC236_FIXUP_DELL_AIO_HEADSET_MIC),
10547 SND_PCI_QUIRK(0x1028, 0x0a38, "Dell Latitude 7520", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET),
10548 SND_PCI_QUIRK(0x1028, 0x0a58, "Dell", ALC255_FIXUP_DELL_HEADSET_MIC),
10549 SND_PCI_QUIRK(0x1028, 0x0a61, "Dell XPS 15 9510", ALC289_FIXUP_DUAL_SPK),
10550 SND_PCI_QUIRK(0x1028, 0x0a62, "Dell Precision 5560", ALC289_FIXUP_DUAL_SPK),
10551 SND_PCI_QUIRK(0x1028, 0x0a9d, "Dell Latitude 5430", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
10552 SND_PCI_QUIRK(0x1028, 0x0a9e, "Dell Latitude 5430", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
10553 SND_PCI_QUIRK(0x1028, 0x0b19, "Dell XPS 15 9520", ALC289_FIXUP_DUAL_SPK),
10554 SND_PCI_QUIRK(0x1028, 0x0b1a, "Dell Precision 5570", ALC289_FIXUP_DUAL_SPK),
10555 SND_PCI_QUIRK(0x1028, 0x0b27, "Dell", ALC245_FIXUP_CS35L41_SPI_2),
10556 SND_PCI_QUIRK(0x1028, 0x0b28, "Dell", ALC245_FIXUP_CS35L41_SPI_2),
10557 …SND_PCI_QUIRK(0x1028, 0x0b37, "Dell Inspiron 16 Plus 7620 2-in-1", ALC295_FIXUP_DELL_INSPIRON_TOP_…
10558 …SND_PCI_QUIRK(0x1028, 0x0b71, "Dell Inspiron 16 Plus 7620", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKER…
10559 SND_PCI_QUIRK(0x1028, 0x0beb, "Dell XPS 15 9530 (2023)", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10560 SND_PCI_QUIRK(0x1028, 0x0c03, "Dell Precision 5340", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE),
10561 SND_PCI_QUIRK(0x1028, 0x0c0b, "Dell Oasis 14 RPL-P", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
10562 SND_PCI_QUIRK(0x1028, 0x0c0d, "Dell Oasis", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
10563 SND_PCI_QUIRK(0x1028, 0x0c0e, "Dell Oasis 16", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
10564 SND_PCI_QUIRK(0x1028, 0x0c19, "Dell Precision 3340", ALC236_FIXUP_DELL_DUAL_CODECS),
10565 SND_PCI_QUIRK(0x1028, 0x0c1a, "Dell Precision 3340", ALC236_FIXUP_DELL_DUAL_CODECS),
10566 SND_PCI_QUIRK(0x1028, 0x0c1b, "Dell Precision 3440", ALC236_FIXUP_DELL_DUAL_CODECS),
10567 SND_PCI_QUIRK(0x1028, 0x0c1c, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS),
10568 SND_PCI_QUIRK(0x1028, 0x0c1d, "Dell Precision 3440", ALC236_FIXUP_DELL_DUAL_CODECS),
10569 SND_PCI_QUIRK(0x1028, 0x0c1e, "Dell Precision 3540", ALC236_FIXUP_DELL_DUAL_CODECS),
10570 …SND_PCI_QUIRK(0x1028, 0x0c28, "Dell Inspiron 16 Plus 7630", ALC295_FIXUP_DELL_INSPIRON_TOP_SPEAKER…
10571 SND_PCI_QUIRK(0x1028, 0x0c4d, "Dell", ALC287_FIXUP_CS35L41_I2C_4),
10572 SND_PCI_QUIRK(0x1028, 0x0c94, "Dell Polaris 3 metal", ALC287_FIXUP_TAS2781_I2C),
10573 SND_PCI_QUIRK(0x1028, 0x0c96, "Dell Polaris 2in1", ALC287_FIXUP_TAS2781_I2C),
10574 SND_PCI_QUIRK(0x1028, 0x0cbd, "Dell Oasis 13 CS MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10575 SND_PCI_QUIRK(0x1028, 0x0cbe, "Dell Oasis 13 2-IN-1 MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10576 SND_PCI_QUIRK(0x1028, 0x0cbf, "Dell Oasis 13 Low Weight MTU-L", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10577 SND_PCI_QUIRK(0x1028, 0x0cc0, "Dell Oasis 13", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
10578 SND_PCI_QUIRK(0x1028, 0x0cc1, "Dell Oasis 14 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10579 SND_PCI_QUIRK(0x1028, 0x0cc2, "Dell Oasis 14 2-in-1 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10580 SND_PCI_QUIRK(0x1028, 0x0cc3, "Dell Oasis 14 Low Weight MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10581 SND_PCI_QUIRK(0x1028, 0x0cc4, "Dell Oasis 16 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
10582 SND_PCI_QUIRK(0x1028, 0x0cc5, "Dell Oasis 14", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
10583 SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10584 SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
10585 SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),
10586 SND_PCI_QUIRK(0x103c, 0x18e6, "HP", ALC269_FIXUP_HP_GPIO_LED),
10587 SND_PCI_QUIRK(0x103c, 0x218b, "HP", ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED),
10588 SND_PCI_QUIRK(0x103c, 0x21f9, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10589 SND_PCI_QUIRK(0x103c, 0x2210, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10590 SND_PCI_QUIRK(0x103c, 0x2214, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10591 SND_PCI_QUIRK(0x103c, 0x221b, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10592 SND_PCI_QUIRK(0x103c, 0x221c, "HP EliteBook 755 G2", ALC280_FIXUP_HP_HEADSET_MIC),
10593 SND_PCI_QUIRK(0x103c, 0x2221, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10594 SND_PCI_QUIRK(0x103c, 0x2225, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10595 SND_PCI_QUIRK(0x103c, 0x2236, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10596 SND_PCI_QUIRK(0x103c, 0x2237, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10597 SND_PCI_QUIRK(0x103c, 0x2238, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10598 SND_PCI_QUIRK(0x103c, 0x2239, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10599 SND_PCI_QUIRK(0x103c, 0x224b, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10600 SND_PCI_QUIRK(0x103c, 0x2253, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10601 SND_PCI_QUIRK(0x103c, 0x2254, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10602 SND_PCI_QUIRK(0x103c, 0x2255, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10603 SND_PCI_QUIRK(0x103c, 0x2256, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10604 SND_PCI_QUIRK(0x103c, 0x2257, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10605 SND_PCI_QUIRK(0x103c, 0x2259, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10606 SND_PCI_QUIRK(0x103c, 0x225a, "HP", ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED),
10607 SND_PCI_QUIRK(0x103c, 0x225f, "HP", ALC280_FIXUP_HP_GPIO2_MIC_HOTKEY),
10608 SND_PCI_QUIRK(0x103c, 0x2260, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10609 SND_PCI_QUIRK(0x103c, 0x2263, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10610 SND_PCI_QUIRK(0x103c, 0x2264, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10611 SND_PCI_QUIRK(0x103c, 0x2265, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10612 SND_PCI_QUIRK(0x103c, 0x2268, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10613 SND_PCI_QUIRK(0x103c, 0x226a, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10614 SND_PCI_QUIRK(0x103c, 0x226b, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10615 SND_PCI_QUIRK(0x103c, 0x226e, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10616 SND_PCI_QUIRK(0x103c, 0x2271, "HP", ALC286_FIXUP_HP_GPIO_LED),
10617 SND_PCI_QUIRK(0x103c, 0x2272, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10618 SND_PCI_QUIRK(0x103c, 0x2272, "HP", ALC280_FIXUP_HP_DOCK_PINS),
10619 SND_PCI_QUIRK(0x103c, 0x2273, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10620 SND_PCI_QUIRK(0x103c, 0x2273, "HP", ALC280_FIXUP_HP_DOCK_PINS),
10621 SND_PCI_QUIRK(0x103c, 0x2278, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10622 SND_PCI_QUIRK(0x103c, 0x227f, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10623 SND_PCI_QUIRK(0x103c, 0x2282, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10624 SND_PCI_QUIRK(0x103c, 0x228b, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10625 SND_PCI_QUIRK(0x103c, 0x228e, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10626 SND_PCI_QUIRK(0x103c, 0x229e, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10627 SND_PCI_QUIRK(0x103c, 0x22b2, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10628 SND_PCI_QUIRK(0x103c, 0x22b7, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10629 SND_PCI_QUIRK(0x103c, 0x22bf, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10630 SND_PCI_QUIRK(0x103c, 0x22c4, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10631 SND_PCI_QUIRK(0x103c, 0x22c5, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10632 SND_PCI_QUIRK(0x103c, 0x22c7, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10633 SND_PCI_QUIRK(0x103c, 0x22c8, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10634 SND_PCI_QUIRK(0x103c, 0x22cf, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10635 SND_PCI_QUIRK(0x103c, 0x22db, "HP", ALC280_FIXUP_HP_9480M),
10636 SND_PCI_QUIRK(0x103c, 0x22dc, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10637 SND_PCI_QUIRK(0x103c, 0x22fb, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED),
10638 SND_PCI_QUIRK(0x103c, 0x2334, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10639 SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10640 SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10641 SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
10642 SND_PCI_QUIRK(0x103c, 0x2b5e, "HP 288 Pro G2 MT", ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE),
10643 SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
10644 SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
10645 SND_PCI_QUIRK(0x103c, 0x8077, "HP", ALC256_FIXUP_HP_HEADSET_MIC),
10646 SND_PCI_QUIRK(0x103c, 0x8158, "HP", ALC256_FIXUP_HP_HEADSET_MIC),
10647 SND_PCI_QUIRK(0x103c, 0x820d, "HP Pavilion 15", ALC295_FIXUP_HP_X360),
10648 SND_PCI_QUIRK(0x103c, 0x8256, "HP", ALC221_FIXUP_HP_FRONT_MIC),
10649 SND_PCI_QUIRK(0x103c, 0x827e, "HP x360", ALC295_FIXUP_HP_X360),
10650 SND_PCI_QUIRK(0x103c, 0x827f, "HP x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
10651 SND_PCI_QUIRK(0x103c, 0x82bf, "HP G3 mini", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
10652 SND_PCI_QUIRK(0x103c, 0x82c0, "HP G3 mini premium", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
10653 SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
10654 SND_PCI_QUIRK(0x103c, 0x841c, "HP Pavilion 15-CK0xx", ALC269_FIXUP_HP_MUTE_LED_MIC3),
10655 SND_PCI_QUIRK(0x103c, 0x8497, "HP Envy x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
10656 SND_PCI_QUIRK(0x103c, 0x84a6, "HP 250 G7 Notebook PC", ALC269_FIXUP_HP_LINE1_MIC1_LED),
10657 SND_PCI_QUIRK(0x103c, 0x84ae, "HP 15-db0403ng", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10658 SND_PCI_QUIRK(0x103c, 0x84da, "HP OMEN dc0019-ur", ALC295_FIXUP_HP_OMEN),
10659 SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3),
10660 SND_PCI_QUIRK(0x103c, 0x8519, "HP Spectre x360 15-df0xxx", ALC285_FIXUP_HP_SPECTRE_X360),
10661 SND_PCI_QUIRK(0x103c, 0x8537, "HP ProBook 440 G6", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10662 …SND_PCI_QUIRK(0x103c, 0x85c6, "HP Pavilion x360 Convertible 14-dy1xxx", ALC295_FIXUP_HP_MUTE_LED_C…
10663 SND_PCI_QUIRK(0x103c, 0x85de, "HP Envy x360 13-ar0xxx", ALC285_FIXUP_HP_ENVY_X360),
10664 SND_PCI_QUIRK(0x103c, 0x860f, "HP ZBook 15 G6", ALC285_FIXUP_HP_GPIO_AMP_INIT),
10665 SND_PCI_QUIRK(0x103c, 0x861f, "HP Elite Dragonfly G1", ALC285_FIXUP_HP_GPIO_AMP_INIT),
10666 SND_PCI_QUIRK(0x103c, 0x869d, "HP", ALC236_FIXUP_HP_MUTE_LED),
10667 SND_PCI_QUIRK(0x103c, 0x86c1, "HP Laptop 15-da3001TU", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10668 SND_PCI_QUIRK(0x103c, 0x86c7, "HP Envy AiO 32", ALC274_FIXUP_HP_ENVY_GPIO),
10669 SND_PCI_QUIRK(0x103c, 0x86e7, "HP Spectre x360 15-eb0xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
10670 SND_PCI_QUIRK(0x103c, 0x863e, "HP Spectre x360 15-df1xxx", ALC285_FIXUP_HP_SPECTRE_X360_DF1),
10671 SND_PCI_QUIRK(0x103c, 0x86e8, "HP Spectre x360 15-eb0xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
10672 SND_PCI_QUIRK(0x103c, 0x86f9, "HP Spectre x360 13-aw0xxx", ALC285_FIXUP_HP_SPECTRE_X360_MUTE_LED),
10673 SND_PCI_QUIRK(0x103c, 0x8716, "HP Elite Dragonfly G2 Notebook PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
10674 …SND_PCI_QUIRK(0x103c, 0x8720, "HP EliteBook x360 1040 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_AMP_IN…
10675 SND_PCI_QUIRK(0x103c, 0x8724, "HP EliteBook 850 G7", ALC285_FIXUP_HP_GPIO_LED),
10676 SND_PCI_QUIRK(0x103c, 0x8728, "HP EliteBook 840 G7", ALC285_FIXUP_HP_GPIO_LED),
10677 SND_PCI_QUIRK(0x103c, 0x8729, "HP", ALC285_FIXUP_HP_GPIO_LED),
10678 SND_PCI_QUIRK(0x103c, 0x8730, "HP ProBook 445 G7", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10679 SND_PCI_QUIRK(0x103c, 0x8735, "HP ProBook 435 G7", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10680 SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_AMP_INIT),
10681 SND_PCI_QUIRK(0x103c, 0x8760, "HP EliteBook 8{4,5}5 G7", ALC285_FIXUP_HP_BEEP_MICMUTE_LED),
10682 …SND_PCI_QUIRK(0x103c, 0x876e, "HP ENVY x360 Convertible 13-ay0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS…
10683 SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED),
10684 SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED),
10685 SND_PCI_QUIRK(0x103c, 0x8780, "HP ZBook Fury 17 G7 Mobile Workstation",
10687 SND_PCI_QUIRK(0x103c, 0x8783, "HP ZBook Fury 15 G7 Mobile Workstation",
10689 SND_PCI_QUIRK(0x103c, 0x8786, "HP OMEN 15", ALC285_FIXUP_HP_MUTE_LED),
10690 SND_PCI_QUIRK(0x103c, 0x8787, "HP OMEN 15", ALC285_FIXUP_HP_MUTE_LED),
10691 SND_PCI_QUIRK(0x103c, 0x8788, "HP OMEN 15", ALC285_FIXUP_HP_MUTE_LED),
10692 SND_PCI_QUIRK(0x103c, 0x87b7, "HP Laptop 14-fq0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10693 SND_PCI_QUIRK(0x103c, 0x87c8, "HP", ALC287_FIXUP_HP_GPIO_LED),
10694 SND_PCI_QUIRK(0x103c, 0x87d3, "HP Laptop 15-gw0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10695 SND_PCI_QUIRK(0x103c, 0x87df, "HP ProBook 430 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10696 SND_PCI_QUIRK(0x103c, 0x87e5, "HP ProBook 440 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10697 SND_PCI_QUIRK(0x103c, 0x87e7, "HP ProBook 450 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10698 SND_PCI_QUIRK(0x103c, 0x87f1, "HP ProBook 630 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10699 SND_PCI_QUIRK(0x103c, 0x87f2, "HP ProBook 640 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10700 SND_PCI_QUIRK(0x103c, 0x87f4, "HP", ALC287_FIXUP_HP_GPIO_LED),
10701 SND_PCI_QUIRK(0x103c, 0x87f5, "HP", ALC287_FIXUP_HP_GPIO_LED),
10702 SND_PCI_QUIRK(0x103c, 0x87f6, "HP Spectre x360 14", ALC245_FIXUP_HP_X360_AMP),
10703 SND_PCI_QUIRK(0x103c, 0x87f7, "HP Spectre x360 14", ALC245_FIXUP_HP_X360_AMP),
10704 SND_PCI_QUIRK(0x103c, 0x87fd, "HP Laptop 14-dq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10705 SND_PCI_QUIRK(0x103c, 0x87fe, "HP Laptop 15s-fq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10706 SND_PCI_QUIRK(0x103c, 0x8805, "HP ProBook 650 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10707 SND_PCI_QUIRK(0x103c, 0x880d, "HP EliteBook 830 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
10708 SND_PCI_QUIRK(0x103c, 0x8811, "HP Spectre x360 15-eb1xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
10709 SND_PCI_QUIRK(0x103c, 0x8812, "HP Spectre x360 15-eb1xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
10710 SND_PCI_QUIRK(0x103c, 0x881d, "HP 250 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10711 SND_PCI_QUIRK(0x103c, 0x881e, "HP Laptop 15s-du3xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10712 SND_PCI_QUIRK(0x103c, 0x8846, "HP EliteBook 850 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
10713 SND_PCI_QUIRK(0x103c, 0x8847, "HP EliteBook x360 830 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
10714 SND_PCI_QUIRK(0x103c, 0x884b, "HP EliteBook 840 Aero G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
10715 SND_PCI_QUIRK(0x103c, 0x884c, "HP EliteBook 840 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
10716 …SND_PCI_QUIRK(0x103c, 0x8862, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST…
10717 …SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST…
10718 …SND_PCI_QUIRK(0x103c, 0x886d, "HP ZBook Fury 17.3 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_…
10719 …SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_…
10720 …SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_H…
10721 SND_PCI_QUIRK(0x103c, 0x887a, "HP Laptop 15s-eq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10722 SND_PCI_QUIRK(0x103c, 0x887c, "HP Laptop 14s-fq1xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10723 …SND_PCI_QUIRK(0x103c, 0x888a, "HP ENVY x360 Convertible 15-eu0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS…
10724 …SND_PCI_QUIRK(0x103c, 0x888d, "HP ZBook Power 15.6 inch G8 Mobile Workstation PC", ALC236_FIXUP_HP…
10725 …SND_PCI_QUIRK(0x103c, 0x8895, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_SPEAKERS_MICMUTE_…
10726 SND_PCI_QUIRK(0x103c, 0x8896, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_MUTE_LED),
10727 …SND_PCI_QUIRK(0x103c, 0x8898, "HP EliteBook 845 G8 Notebook PC", ALC285_FIXUP_HP_LIMIT_INT_MIC_BOO…
10728 SND_PCI_QUIRK(0x103c, 0x88d0, "HP Pavilion 15-eh1xxx (mainboard 88D0)", ALC287_FIXUP_HP_GPIO_LED),
10729 SND_PCI_QUIRK(0x103c, 0x88dd, "HP Pavilion 15z-ec200", ALC285_FIXUP_HP_MUTE_LED),
10730 SND_PCI_QUIRK(0x103c, 0x8902, "HP OMEN 16", ALC285_FIXUP_HP_MUTE_LED),
10731 SND_PCI_QUIRK(0x103c, 0x890e, "HP 255 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10732 SND_PCI_QUIRK(0x103c, 0x8919, "HP Pavilion Aero Laptop 13-be0xxx", ALC287_FIXUP_HP_GPIO_LED),
10733 SND_PCI_QUIRK(0x103c, 0x896d, "HP ZBook Firefly 16 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10734 SND_PCI_QUIRK(0x103c, 0x896e, "HP EliteBook x360 830 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10735 SND_PCI_QUIRK(0x103c, 0x8971, "HP EliteBook 830 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10736 SND_PCI_QUIRK(0x103c, 0x8972, "HP EliteBook 840 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10737 SND_PCI_QUIRK(0x103c, 0x8973, "HP EliteBook 860 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10738 SND_PCI_QUIRK(0x103c, 0x8974, "HP EliteBook 840 Aero G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10739 …SND_PCI_QUIRK(0x103c, 0x8975, "HP EliteBook x360 840 Aero G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_…
10740 SND_PCI_QUIRK(0x103c, 0x897d, "HP mt440 Mobile Thin Client U74", ALC236_FIXUP_HP_GPIO_LED),
10741 SND_PCI_QUIRK(0x103c, 0x8981, "HP Elite Dragonfly G3", ALC245_FIXUP_CS35L41_SPI_4),
10742 SND_PCI_QUIRK(0x103c, 0x898a, "HP Pavilion 15-eg100", ALC287_FIXUP_HP_GPIO_LED),
10743 SND_PCI_QUIRK(0x103c, 0x898e, "HP EliteBook 835 G9", ALC287_FIXUP_CS35L41_I2C_2),
10744 SND_PCI_QUIRK(0x103c, 0x898f, "HP EliteBook 835 G9", ALC287_FIXUP_CS35L41_I2C_2),
10745 SND_PCI_QUIRK(0x103c, 0x8991, "HP EliteBook 845 G9", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10746 SND_PCI_QUIRK(0x103c, 0x8992, "HP EliteBook 845 G9", ALC287_FIXUP_CS35L41_I2C_2),
10747 SND_PCI_QUIRK(0x103c, 0x8994, "HP EliteBook 855 G9", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10748 SND_PCI_QUIRK(0x103c, 0x8995, "HP EliteBook 855 G9", ALC287_FIXUP_CS35L41_I2C_2),
10749 SND_PCI_QUIRK(0x103c, 0x89a4, "HP ProBook 440 G9", ALC236_FIXUP_HP_GPIO_LED),
10750 SND_PCI_QUIRK(0x103c, 0x89a6, "HP ProBook 450 G9", ALC236_FIXUP_HP_GPIO_LED),
10751 SND_PCI_QUIRK(0x103c, 0x89aa, "HP EliteBook 630 G9", ALC236_FIXUP_HP_GPIO_LED),
10752 SND_PCI_QUIRK(0x103c, 0x89ac, "HP EliteBook 640 G9", ALC236_FIXUP_HP_GPIO_LED),
10753 SND_PCI_QUIRK(0x103c, 0x89ae, "HP EliteBook 650 G9", ALC236_FIXUP_HP_GPIO_LED),
10754 SND_PCI_QUIRK(0x103c, 0x89c0, "HP ZBook Power 15.6 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10755 SND_PCI_QUIRK(0x103c, 0x89c3, "Zbook Studio G9", ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED),
10756 SND_PCI_QUIRK(0x103c, 0x89c6, "Zbook Fury 17 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10757 SND_PCI_QUIRK(0x103c, 0x89ca, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10758 …SND_PCI_QUIRK(0x103c, 0x89d3, "HP EliteBook 645 G9 (MB 89D2)", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VR…
10759 SND_PCI_QUIRK(0x103c, 0x89e7, "HP Elite x2 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10760 SND_PCI_QUIRK(0x103c, 0x8a0f, "HP Pavilion 14-ec1xxx", ALC287_FIXUP_HP_GPIO_LED),
10761 SND_PCI_QUIRK(0x103c, 0x8a20, "HP Laptop 15s-fq5xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
10762 SND_PCI_QUIRK(0x103c, 0x8a25, "HP Victus 16-d1xxx (MB 8A25)", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10763 SND_PCI_QUIRK(0x103c, 0x8a28, "HP Envy 13", ALC287_FIXUP_CS35L41_I2C_2),
10764 SND_PCI_QUIRK(0x103c, 0x8a29, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10765 SND_PCI_QUIRK(0x103c, 0x8a2a, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10766 SND_PCI_QUIRK(0x103c, 0x8a2b, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10767 SND_PCI_QUIRK(0x103c, 0x8a2c, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10768 SND_PCI_QUIRK(0x103c, 0x8a2d, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10769 SND_PCI_QUIRK(0x103c, 0x8a2e, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10770 SND_PCI_QUIRK(0x103c, 0x8a30, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10771 SND_PCI_QUIRK(0x103c, 0x8a31, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10772 SND_PCI_QUIRK(0x103c, 0x8a6e, "HP EDNA 360", ALC287_FIXUP_CS35L41_I2C_4),
10773 SND_PCI_QUIRK(0x103c, 0x8a74, "HP ProBook 440 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),
10774 SND_PCI_QUIRK(0x103c, 0x8a78, "HP Dev One", ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST),
10775 SND_PCI_QUIRK(0x103c, 0x8aa0, "HP ProBook 440 G9 (MB 8A9E)", ALC236_FIXUP_HP_GPIO_LED),
10776 SND_PCI_QUIRK(0x103c, 0x8aa3, "HP ProBook 450 G9 (MB 8AA1)", ALC236_FIXUP_HP_GPIO_LED),
10777 SND_PCI_QUIRK(0x103c, 0x8aa8, "HP EliteBook 640 G9 (MB 8AA6)", ALC236_FIXUP_HP_GPIO_LED),
10778 SND_PCI_QUIRK(0x103c, 0x8aab, "HP EliteBook 650 G9 (MB 8AA9)", ALC236_FIXUP_HP_GPIO_LED),
10779 SND_PCI_QUIRK(0x103c, 0x8ab9, "HP EliteBook 840 G8 (MB 8AB8)", ALC285_FIXUP_HP_GPIO_LED),
10780 SND_PCI_QUIRK(0x103c, 0x8abb, "HP ZBook Firefly 14 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10781 …SND_PCI_QUIRK(0x103c, 0x8ad1, "HP EliteBook 840 14 inch G9 Notebook PC", ALC245_FIXUP_CS35L41_SPI_…
10782 …SND_PCI_QUIRK(0x103c, 0x8ad2, "HP EliteBook 860 16 inch G9 Notebook PC", ALC245_FIXUP_CS35L41_SPI_…
10783 SND_PCI_QUIRK(0x103c, 0x8ad8, "HP 800 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10784 …SND_PCI_QUIRK(0x103c, 0x8b0f, "HP Elite mt645 G7 Mobile Thin Client U81", ALC236_FIXUP_HP_MUTE_LED…
10785 …SND_PCI_QUIRK(0x103c, 0x8b2f, "HP 255 15.6 inch G10 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_COEFBIT…
10786 SND_PCI_QUIRK(0x103c, 0x8b3a, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10787 SND_PCI_QUIRK(0x103c, 0x8b3f, "HP mt440 Mobile Thin Client U91", ALC236_FIXUP_HP_GPIO_LED),
10788 SND_PCI_QUIRK(0x103c, 0x8b42, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10789 SND_PCI_QUIRK(0x103c, 0x8b43, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10790 SND_PCI_QUIRK(0x103c, 0x8b44, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10791 SND_PCI_QUIRK(0x103c, 0x8b45, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10792 SND_PCI_QUIRK(0x103c, 0x8b46, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10793 SND_PCI_QUIRK(0x103c, 0x8b47, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10794 …SND_PCI_QUIRK(0x103c, 0x8b59, "HP Elite mt645 G7 Mobile Thin Client U89", ALC236_FIXUP_HP_MUTE_LED…
10795 SND_PCI_QUIRK(0x103c, 0x8b5d, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10796 SND_PCI_QUIRK(0x103c, 0x8b5e, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10797 SND_PCI_QUIRK(0x103c, 0x8b5f, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10798 …SND_PCI_QUIRK(0x103c, 0x8b63, "HP Elite Dragonfly 13.5 inch G4", ALC245_FIXUP_CS35L41_SPI_4_HP_GPI…
10799 …SND_PCI_QUIRK(0x103c, 0x8b65, "HP ProBook 455 15.6 inch G10 Notebook PC", ALC236_FIXUP_HP_MUTE_LED…
10800 SND_PCI_QUIRK(0x103c, 0x8b66, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10801 SND_PCI_QUIRK(0x103c, 0x8b70, "HP EliteBook 835 G10", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10802 SND_PCI_QUIRK(0x103c, 0x8b72, "HP EliteBook 845 G10", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10803 SND_PCI_QUIRK(0x103c, 0x8b74, "HP EliteBook 845W G10", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10804 SND_PCI_QUIRK(0x103c, 0x8b77, "HP ElieBook 865 G10", ALC287_FIXUP_CS35L41_I2C_2),
10805 SND_PCI_QUIRK(0x103c, 0x8b7a, "HP", ALC236_FIXUP_HP_GPIO_LED),
10806 SND_PCI_QUIRK(0x103c, 0x8b7d, "HP", ALC236_FIXUP_HP_GPIO_LED),
10807 SND_PCI_QUIRK(0x103c, 0x8b87, "HP", ALC236_FIXUP_HP_GPIO_LED),
10808 SND_PCI_QUIRK(0x103c, 0x8b8a, "HP", ALC236_FIXUP_HP_GPIO_LED),
10809 SND_PCI_QUIRK(0x103c, 0x8b8b, "HP", ALC236_FIXUP_HP_GPIO_LED),
10810 SND_PCI_QUIRK(0x103c, 0x8b8d, "HP", ALC236_FIXUP_HP_GPIO_LED),
10811 SND_PCI_QUIRK(0x103c, 0x8b8f, "HP", ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED),
10812 SND_PCI_QUIRK(0x103c, 0x8b92, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10813 SND_PCI_QUIRK(0x103c, 0x8b96, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10814 SND_PCI_QUIRK(0x103c, 0x8b97, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10815 SND_PCI_QUIRK(0x103c, 0x8bb3, "HP Slim OMEN", ALC287_FIXUP_CS35L41_I2C_2),
10816 SND_PCI_QUIRK(0x103c, 0x8bb4, "HP Slim OMEN", ALC287_FIXUP_CS35L41_I2C_2),
10817 SND_PCI_QUIRK(0x103c, 0x8bc8, "HP Victus 15-fa1xxx", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10818 SND_PCI_QUIRK(0x103c, 0x8bcd, "HP Omen 16-xd0xxx", ALC245_FIXUP_HP_MUTE_LED_V1_COEFBIT),
10819 SND_PCI_QUIRK(0x103c, 0x8bdd, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10820 SND_PCI_QUIRK(0x103c, 0x8bde, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10821 SND_PCI_QUIRK(0x103c, 0x8bdf, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10822 SND_PCI_QUIRK(0x103c, 0x8be0, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10823 SND_PCI_QUIRK(0x103c, 0x8be1, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10824 SND_PCI_QUIRK(0x103c, 0x8be2, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10825 SND_PCI_QUIRK(0x103c, 0x8be3, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10826 SND_PCI_QUIRK(0x103c, 0x8be5, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10827 SND_PCI_QUIRK(0x103c, 0x8be6, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10828 SND_PCI_QUIRK(0x103c, 0x8be7, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10829 SND_PCI_QUIRK(0x103c, 0x8be8, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10830 SND_PCI_QUIRK(0x103c, 0x8be9, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10831 SND_PCI_QUIRK(0x103c, 0x8bf0, "HP", ALC236_FIXUP_HP_GPIO_LED),
10832 …SND_PCI_QUIRK(0x103c, 0x8c15, "HP Spectre x360 2-in-1 Laptop 14-eu0xxx", ALC245_FIXUP_HP_SPECTRE_X…
10833 …SND_PCI_QUIRK(0x103c, 0x8c16, "HP Spectre x360 2-in-1 Laptop 16-aa0xxx", ALC245_FIXUP_HP_SPECTRE_X…
10834 SND_PCI_QUIRK(0x103c, 0x8c17, "HP Spectre 16", ALC287_FIXUP_CS35L41_I2C_2),
10835 SND_PCI_QUIRK(0x103c, 0x8c21, "HP Pavilion Plus Laptop 14-ey0XXX", ALC245_FIXUP_HP_X360_MUTE_LEDS),
10836 SND_PCI_QUIRK(0x103c, 0x8c30, "HP Victus 15-fb1xxx", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10837 SND_PCI_QUIRK(0x103c, 0x8c46, "HP EliteBook 830 G11", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10838 SND_PCI_QUIRK(0x103c, 0x8c47, "HP EliteBook 840 G11", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10839 SND_PCI_QUIRK(0x103c, 0x8c48, "HP EliteBook 860 G11", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10840 …SND_PCI_QUIRK(0x103c, 0x8c49, "HP Elite x360 830 2-in-1 G11", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_L…
10841 SND_PCI_QUIRK(0x103c, 0x8c4d, "HP Omen", ALC287_FIXUP_CS35L41_I2C_2),
10842 SND_PCI_QUIRK(0x103c, 0x8c4e, "HP Omen", ALC287_FIXUP_CS35L41_I2C_2),
10843 SND_PCI_QUIRK(0x103c, 0x8c4f, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),
10844 SND_PCI_QUIRK(0x103c, 0x8c50, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10845 SND_PCI_QUIRK(0x103c, 0x8c51, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10846 SND_PCI_QUIRK(0x103c, 0x8c52, "HP EliteBook 1040 G11", ALC285_FIXUP_HP_GPIO_LED),
10847 SND_PCI_QUIRK(0x103c, 0x8c53, "HP Elite x360 1040 2-in-1 G11", ALC285_FIXUP_HP_GPIO_LED),
10848 SND_PCI_QUIRK(0x103c, 0x8c66, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10849 SND_PCI_QUIRK(0x103c, 0x8c67, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10850 SND_PCI_QUIRK(0x103c, 0x8c68, "HP Envy 17", ALC287_FIXUP_CS35L41_I2C_2),
10851 SND_PCI_QUIRK(0x103c, 0x8c6a, "HP Envy 16", ALC287_FIXUP_CS35L41_I2C_2),
10852 SND_PCI_QUIRK(0x103c, 0x8c70, "HP EliteBook 835 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10853 SND_PCI_QUIRK(0x103c, 0x8c71, "HP EliteBook 845 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10854 SND_PCI_QUIRK(0x103c, 0x8c72, "HP EliteBook 865 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10855 SND_PCI_QUIRK(0x103c, 0x8c7b, "HP ProBook 445 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10856 SND_PCI_QUIRK(0x103c, 0x8c7c, "HP ProBook 445 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10857 SND_PCI_QUIRK(0x103c, 0x8c7d, "HP ProBook 465 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10858 SND_PCI_QUIRK(0x103c, 0x8c7e, "HP ProBook 465 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10859 SND_PCI_QUIRK(0x103c, 0x8c7f, "HP EliteBook 645 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10860 SND_PCI_QUIRK(0x103c, 0x8c80, "HP EliteBook 645 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10861 SND_PCI_QUIRK(0x103c, 0x8c81, "HP EliteBook 665 G11", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10862 SND_PCI_QUIRK(0x103c, 0x8c89, "HP ProBook 460 G11", ALC236_FIXUP_HP_GPIO_LED),
10863 SND_PCI_QUIRK(0x103c, 0x8c8a, "HP EliteBook 630", ALC236_FIXUP_HP_GPIO_LED),
10864 SND_PCI_QUIRK(0x103c, 0x8c8c, "HP EliteBook 660", ALC236_FIXUP_HP_GPIO_LED),
10865 SND_PCI_QUIRK(0x103c, 0x8c8d, "HP ProBook 440 G11", ALC236_FIXUP_HP_GPIO_LED),
10866 SND_PCI_QUIRK(0x103c, 0x8c8e, "HP ProBook 460 G11", ALC236_FIXUP_HP_GPIO_LED),
10867 SND_PCI_QUIRK(0x103c, 0x8c90, "HP EliteBook 640", ALC236_FIXUP_HP_GPIO_LED),
10868 SND_PCI_QUIRK(0x103c, 0x8c91, "HP EliteBook 660", ALC236_FIXUP_HP_GPIO_LED),
10869 SND_PCI_QUIRK(0x103c, 0x8c96, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10870 SND_PCI_QUIRK(0x103c, 0x8c97, "HP ZBook", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10871 SND_PCI_QUIRK(0x103c, 0x8c9c, "HP Victus 16-s1xxx (MB 8C9C)", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10872 SND_PCI_QUIRK(0x103c, 0x8ca1, "HP ZBook Power", ALC236_FIXUP_HP_GPIO_LED),
10873 SND_PCI_QUIRK(0x103c, 0x8ca2, "HP ZBook Power", ALC236_FIXUP_HP_GPIO_LED),
10874 SND_PCI_QUIRK(0x103c, 0x8ca4, "HP ZBook Fury", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10875 SND_PCI_QUIRK(0x103c, 0x8ca7, "HP ZBook Fury", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED),
10876 …SND_PCI_QUIRK(0x103c, 0x8caf, "HP Elite mt645 G8 Mobile Thin Client", ALC236_FIXUP_HP_MUTE_LED_MIC…
10877 SND_PCI_QUIRK(0x103c, 0x8cbd, "HP Pavilion Aero Laptop 13-bg0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS),
10878 SND_PCI_QUIRK(0x103c, 0x8cdd, "HP Spectre", ALC245_FIXUP_HP_SPECTRE_X360_EU0XXX),
10879 …SND_PCI_QUIRK(0x103c, 0x8cde, "HP OmniBook Ultra Flip Laptop 14t", ALC245_FIXUP_HP_SPECTRE_X360_EU…
10880 SND_PCI_QUIRK(0x103c, 0x8cdf, "HP SnowWhite", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10881 SND_PCI_QUIRK(0x103c, 0x8ce0, "HP SnowWhite", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED),
10882 SND_PCI_QUIRK(0x103c, 0x8cf5, "HP ZBook Studio 16", ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED),
10883 SND_PCI_QUIRK(0x103c, 0x8d01, "HP ZBook Power 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10884 SND_PCI_QUIRK(0x103c, 0x8d07, "HP Victus 15-fb2xxx (MB 8D07)", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10885 SND_PCI_QUIRK(0x103c, 0x8d18, "HP EliteStudio 8 AIO", ALC274_FIXUP_HP_AIO_BIND_DACS),
10886 SND_PCI_QUIRK(0x103c, 0x8d84, "HP EliteBook X G1i", ALC285_FIXUP_HP_GPIO_LED),
10887 SND_PCI_QUIRK(0x103c, 0x8d85, "HP EliteBook 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10888 SND_PCI_QUIRK(0x103c, 0x8d86, "HP Elite X360 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10889 SND_PCI_QUIRK(0x103c, 0x8d8c, "HP EliteBook 13 G12", ALC285_FIXUP_HP_GPIO_LED),
10890 SND_PCI_QUIRK(0x103c, 0x8d8d, "HP Elite X360 13 G12", ALC285_FIXUP_HP_GPIO_LED),
10891 SND_PCI_QUIRK(0x103c, 0x8d8e, "HP EliteBook 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10892 SND_PCI_QUIRK(0x103c, 0x8d8f, "HP EliteBook 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10893 SND_PCI_QUIRK(0x103c, 0x8d90, "HP EliteBook 16 G12", ALC285_FIXUP_HP_GPIO_LED),
10894 SND_PCI_QUIRK(0x103c, 0x8d91, "HP ZBook Firefly 14 G12", ALC285_FIXUP_HP_GPIO_LED),
10895 SND_PCI_QUIRK(0x103c, 0x8d92, "HP ZBook Firefly 16 G12", ALC285_FIXUP_HP_GPIO_LED),
10896 SND_PCI_QUIRK(0x103c, 0x8d9b, "HP 17 Turbine OmniBook 7 UMA", ALC287_FIXUP_CS35L41_I2C_2),
10897 SND_PCI_QUIRK(0x103c, 0x8d9c, "HP 17 Turbine OmniBook 7 DIS", ALC287_FIXUP_CS35L41_I2C_2),
10898 SND_PCI_QUIRK(0x103c, 0x8d9d, "HP 17 Turbine OmniBook X UMA", ALC287_FIXUP_CS35L41_I2C_2),
10899 SND_PCI_QUIRK(0x103c, 0x8d9e, "HP 17 Turbine OmniBook X DIS", ALC287_FIXUP_CS35L41_I2C_2),
10900 SND_PCI_QUIRK(0x103c, 0x8d9f, "HP 14 Cadet (x360)", ALC287_FIXUP_CS35L41_I2C_2),
10901 SND_PCI_QUIRK(0x103c, 0x8da0, "HP 16 Clipper OmniBook 7(X360)", ALC287_FIXUP_CS35L41_I2C_2),
10902 SND_PCI_QUIRK(0x103c, 0x8da1, "HP 16 Clipper OmniBook X", ALC287_FIXUP_CS35L41_I2C_2),
10903 SND_PCI_QUIRK(0x103c, 0x8da7, "HP 14 Enstrom OmniBook X", ALC287_FIXUP_CS35L41_I2C_2),
10904 SND_PCI_QUIRK(0x103c, 0x8da8, "HP 16 Piston OmniBook X", ALC287_FIXUP_CS35L41_I2C_2),
10905 SND_PCI_QUIRK(0x103c, 0x8dd4, "HP EliteStudio 8 AIO", ALC274_FIXUP_HP_AIO_BIND_DACS),
10906 SND_PCI_QUIRK(0x103c, 0x8de8, "HP Gemtree", ALC245_FIXUP_TAS2781_SPI_2),
10907 SND_PCI_QUIRK(0x103c, 0x8de9, "HP Gemtree", ALC245_FIXUP_TAS2781_SPI_2),
10908 SND_PCI_QUIRK(0x103c, 0x8dec, "HP EliteBook 640 G12", ALC236_FIXUP_HP_GPIO_LED),
10909 SND_PCI_QUIRK(0x103c, 0x8ded, "HP EliteBook 640 G12", ALC236_FIXUP_HP_GPIO_LED),
10910 SND_PCI_QUIRK(0x103c, 0x8dee, "HP EliteBook 660 G12", ALC236_FIXUP_HP_GPIO_LED),
10911 SND_PCI_QUIRK(0x103c, 0x8def, "HP EliteBook 660 G12", ALC236_FIXUP_HP_GPIO_LED),
10912 SND_PCI_QUIRK(0x103c, 0x8df0, "HP EliteBook 630 G12", ALC236_FIXUP_HP_GPIO_LED),
10913 SND_PCI_QUIRK(0x103c, 0x8df1, "HP EliteBook 630 G12", ALC236_FIXUP_HP_GPIO_LED),
10914 SND_PCI_QUIRK(0x103c, 0x8dfb, "HP EliteBook 6 G1a 14", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10915 SND_PCI_QUIRK(0x103c, 0x8dfc, "HP EliteBook 645 G12", ALC236_FIXUP_HP_GPIO_LED),
10916 SND_PCI_QUIRK(0x103c, 0x8dfd, "HP EliteBook 6 G1a 16", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
10917 SND_PCI_QUIRK(0x103c, 0x8dfe, "HP EliteBook 665 G12", ALC236_FIXUP_HP_GPIO_LED),
10918 SND_PCI_QUIRK(0x103c, 0x8e11, "HP Trekker", ALC287_FIXUP_CS35L41_I2C_2),
10919 SND_PCI_QUIRK(0x103c, 0x8e12, "HP Trekker", ALC287_FIXUP_CS35L41_I2C_2),
10920 SND_PCI_QUIRK(0x103c, 0x8e13, "HP Trekker", ALC287_FIXUP_CS35L41_I2C_2),
10921 SND_PCI_QUIRK(0x103c, 0x8e14, "HP ZBook Firefly 14 G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10922 SND_PCI_QUIRK(0x103c, 0x8e15, "HP ZBook Firefly 14 G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10923 SND_PCI_QUIRK(0x103c, 0x8e16, "HP ZBook Firefly 14 G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10924 SND_PCI_QUIRK(0x103c, 0x8e17, "HP ZBook Firefly 14 G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10925 SND_PCI_QUIRK(0x103c, 0x8e18, "HP ZBook Firefly 14 G12A", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10926 SND_PCI_QUIRK(0x103c, 0x8e19, "HP ZBook Firefly 14 G12A", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10927 SND_PCI_QUIRK(0x103c, 0x8e1a, "HP ZBook Firefly 14 G12A", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10928 SND_PCI_QUIRK(0x103c, 0x8e1b, "HP EliteBook G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10929 SND_PCI_QUIRK(0x103c, 0x8e1c, "HP EliteBook G12", ALC245_FIXUP_HP_ZBOOK_FIREFLY_G12A),
10930 SND_PCI_QUIRK(0x103c, 0x8e1d, "HP ZBook X Gli 16 G12", ALC236_FIXUP_HP_GPIO_LED),
10931 SND_PCI_QUIRK(0x103c, 0x8e2c, "HP EliteBook 16 G12", ALC285_FIXUP_HP_GPIO_LED),
10932 SND_PCI_QUIRK(0x103c, 0x8e36, "HP 14 Enstrom OmniBook X", ALC287_FIXUP_CS35L41_I2C_2),
10933 SND_PCI_QUIRK(0x103c, 0x8e37, "HP 16 Piston OmniBook X", ALC287_FIXUP_CS35L41_I2C_2),
10934 SND_PCI_QUIRK(0x103c, 0x8e3a, "HP Agusta", ALC287_FIXUP_CS35L41_I2C_2),
10935 SND_PCI_QUIRK(0x103c, 0x8e3b, "HP Agusta", ALC287_FIXUP_CS35L41_I2C_2),
10936 SND_PCI_QUIRK(0x103c, 0x8e60, "HP Trekker ", ALC287_FIXUP_CS35L41_I2C_2),
10937 SND_PCI_QUIRK(0x103c, 0x8e61, "HP Trekker ", ALC287_FIXUP_CS35L41_I2C_2),
10938 SND_PCI_QUIRK(0x103c, 0x8e62, "HP Trekker ", ALC287_FIXUP_CS35L41_I2C_2),
10939 SND_PCI_QUIRK(0x1043, 0x1032, "ASUS VivoBook X513EA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10940 SND_PCI_QUIRK(0x1043, 0x1034, "ASUS GU605C", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
10941 SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC),
10942 SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300),
10943 SND_PCI_QUIRK(0x1043, 0x1054, "ASUS G614FH/FM/FP", ALC287_FIXUP_CS35L41_I2C_2),
10944 SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
10945 SND_PCI_QUIRK(0x1043, 0x106f, "ASUS VivoBook X515UA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10946 SND_PCI_QUIRK(0x1043, 0x1074, "ASUS G614PH/PM/PP", ALC287_FIXUP_CS35L41_I2C_2),
10947 SND_PCI_QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_FIXUP_ASUS_SPK),
10948 SND_PCI_QUIRK(0x1043, 0x10a4, "ASUS TP3407SA", ALC287_FIXUP_TAS2781_I2C),
10949 SND_PCI_QUIRK(0x1043, 0x10c0, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC),
10950 SND_PCI_QUIRK(0x1043, 0x10d0, "ASUS X540LA/X540LJ", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
10951 SND_PCI_QUIRK(0x1043, 0x10d3, "ASUS K6500ZC", ALC294_FIXUP_ASUS_SPK),
10952 SND_PCI_QUIRK(0x1043, 0x1154, "ASUS TP3607SH", ALC287_FIXUP_TAS2781_I2C),
10953 SND_PCI_QUIRK(0x1043, 0x115d, "Asus 1015E", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
10954 SND_PCI_QUIRK(0x1043, 0x1194, "ASUS UM3406KA", ALC287_FIXUP_CS35L41_I2C_2),
10955 SND_PCI_QUIRK(0x1043, 0x11c0, "ASUS X556UR", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
10956 SND_PCI_QUIRK(0x1043, 0x1204, "ASUS Strix G615JHR_JMR_JPR", ALC287_FIXUP_TAS2781_I2C),
10957 SND_PCI_QUIRK(0x1043, 0x1214, "ASUS Strix G615LH_LM_LP", ALC287_FIXUP_TAS2781_I2C),
10958 SND_PCI_QUIRK(0x1043, 0x125e, "ASUS Q524UQK", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
10959 SND_PCI_QUIRK(0x1043, 0x1271, "ASUS X430UN", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10960 SND_PCI_QUIRK(0x1043, 0x1290, "ASUS X441SA", ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE),
10961 SND_PCI_QUIRK(0x1043, 0x1294, "ASUS B3405CVA", ALC245_FIXUP_CS35L41_SPI_2),
10962 SND_PCI_QUIRK(0x1043, 0x12a0, "ASUS X441UV", ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE),
10963 SND_PCI_QUIRK(0x1043, 0x12a3, "Asus N7691ZM", ALC269_FIXUP_ASUS_N7601ZM),
10964 SND_PCI_QUIRK(0x1043, 0x12af, "ASUS UX582ZS", ALC245_FIXUP_CS35L41_SPI_2),
10965 SND_PCI_QUIRK(0x1043, 0x12b4, "ASUS B3405CCA / P3405CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
10966 SND_PCI_QUIRK(0x1043, 0x12e0, "ASUS X541SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10967 SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10968 SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
10969 SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
10970 SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10971 SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
10972 …SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADS…
10973 SND_PCI_QUIRK(0x1043, 0x1460, "Asus VivoBook 15", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10974 SND_PCI_QUIRK(0x1043, 0x1463, "Asus GA402X/GA402N", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
10975 …SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604VI/VC/VE/VG/VJ/VQ/VU/VV/VY/VZ", ALC285_FIXUP_ASUS_HEADSET…
10976 SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603VQ/VU/VV/VJ/VI", ALC285_FIXUP_ASUS_HEADSET_MIC),
10977 SND_PCI_QUIRK(0x1043, 0x1493, "ASUS GV601VV/VU/VJ/VQ/VI", ALC285_FIXUP_ASUS_HEADSET_MIC),
10978 SND_PCI_QUIRK(0x1043, 0x14d3, "ASUS G614JY/JZ/JG", ALC245_FIXUP_CS35L41_SPI_2),
10979 SND_PCI_QUIRK(0x1043, 0x14e3, "ASUS G513PI/PU/PV", ALC287_FIXUP_CS35L41_I2C_2),
10980 SND_PCI_QUIRK(0x1043, 0x14f2, "ASUS VivoBook X515JA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10981 SND_PCI_QUIRK(0x1043, 0x1503, "ASUS G733PY/PZ/PZV/PYV", ALC287_FIXUP_CS35L41_I2C_2),
10982 SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A),
10983 SND_PCI_QUIRK(0x1043, 0x1533, "ASUS GV302XA/XJ/XQ/XU/XV/XI", ALC287_FIXUP_CS35L41_I2C_2),
10984 …SND_PCI_QUIRK(0x1043, 0x1573, "ASUS GZ301VV/VQ/VU/VJ/VA/VC/VE/VVC/VQC/VUC/VJC/VEC/VCC", ALC285_FIX…
10985 SND_PCI_QUIRK(0x1043, 0x1662, "ASUS GV301QH", ALC294_FIXUP_ASUS_DUAL_SPK),
10986 SND_PCI_QUIRK(0x1043, 0x1663, "ASUS GU603ZI/ZJ/ZQ/ZU/ZV", ALC285_FIXUP_ASUS_HEADSET_MIC),
10987 SND_PCI_QUIRK(0x1043, 0x1683, "ASUS UM3402YAR", ALC287_FIXUP_CS35L41_I2C_2),
10988 SND_PCI_QUIRK(0x1043, 0x16a3, "ASUS UX3402VA", ALC245_FIXUP_CS35L41_SPI_2),
10989 SND_PCI_QUIRK(0x1043, 0x16b2, "ASUS GU603", ALC289_FIXUP_ASUS_GA401),
10990 SND_PCI_QUIRK(0x1043, 0x16d3, "ASUS UX5304VA", ALC245_FIXUP_CS35L41_SPI_2),
10991 SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC),
10992 SND_PCI_QUIRK(0x1043, 0x16f3, "ASUS UX7602VI/BZ", ALC245_FIXUP_CS35L41_SPI_2),
10993 SND_PCI_QUIRK(0x1043, 0x1740, "ASUS UX430UA", ALC295_FIXUP_ASUS_DACS),
10994 SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_DUAL_SPK),
10995 SND_PCI_QUIRK(0x1043, 0x17f3, "ROG Ally NR2301L/X", ALC294_FIXUP_ASUS_ALLY),
10996 SND_PCI_QUIRK(0x1043, 0x1863, "ASUS UX6404VI/VV", ALC245_FIXUP_CS35L41_SPI_2),
10997 SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS),
10998 SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC),
10999 SND_PCI_QUIRK(0x1043, 0x18d3, "ASUS UM3504DA", ALC294_FIXUP_CS35L41_I2C_2),
11000 SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC),
11001 SND_PCI_QUIRK(0x1043, 0x194e, "ASUS UX563FD", ALC294_FIXUP_ASUS_HPE),
11002 SND_PCI_QUIRK(0x1043, 0x1970, "ASUS UX550VE", ALC289_FIXUP_ASUS_GA401),
11003 SND_PCI_QUIRK(0x1043, 0x1982, "ASUS B1400CEPE", ALC256_FIXUP_ASUS_HPE),
11004 SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE),
11005 SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE),
11006 SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
11007 SND_PCI_QUIRK(0x1043, 0x1a63, "ASUS UX3405MA", ALC245_FIXUP_CS35L41_SPI_2),
11008 SND_PCI_QUIRK(0x1043, 0x1a83, "ASUS UM5302LA", ALC294_FIXUP_CS35L41_I2C_2),
11009 SND_PCI_QUIRK(0x1043, 0x1a8f, "ASUS UX582ZS", ALC245_FIXUP_CS35L41_SPI_2),
11010 SND_PCI_QUIRK(0x1043, 0x1b11, "ASUS UX431DA", ALC294_FIXUP_ASUS_COEF_1B),
11011 SND_PCI_QUIRK(0x1043, 0x1b13, "ASUS U41SV/GA403U", ALC285_FIXUP_ASUS_GA403U_HEADSET_MIC),
11012 SND_PCI_QUIRK(0x1043, 0x1b93, "ASUS G614JVR/JIR", ALC245_FIXUP_CS35L41_SPI_2),
11013 SND_PCI_QUIRK(0x1043, 0x1bbd, "ASUS Z550MA", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE),
11014 SND_PCI_QUIRK(0x1043, 0x1c03, "ASUS UM3406HA", ALC287_FIXUP_CS35L41_I2C_2),
11015 SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11016 SND_PCI_QUIRK(0x1043, 0x1c33, "ASUS UX5304MA", ALC245_FIXUP_CS35L41_SPI_2),
11017 SND_PCI_QUIRK(0x1043, 0x1c43, "ASUS UX8406MA", ALC245_FIXUP_CS35L41_SPI_2),
11018 SND_PCI_QUIRK(0x1043, 0x1c62, "ASUS GU603", ALC289_FIXUP_ASUS_GA401),
11019 SND_PCI_QUIRK(0x1043, 0x1c63, "ASUS GU605M", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
11020 SND_PCI_QUIRK(0x1043, 0x1c80, "ASUS VivoBook TP401", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
11021 SND_PCI_QUIRK(0x1043, 0x1c92, "ASUS ROG Strix G15", ALC285_FIXUP_ASUS_G533Z_PINS),
11022 SND_PCI_QUIRK(0x1043, 0x1c9f, "ASUS G614JU/JV/JI", ALC285_FIXUP_ASUS_HEADSET_MIC),
11023 SND_PCI_QUIRK(0x1043, 0x1caf, "ASUS G634JY/JZ/JI/JG", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11024 SND_PCI_QUIRK(0x1043, 0x1ccd, "ASUS X555UB", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
11025 SND_PCI_QUIRK(0x1043, 0x1ccf, "ASUS G814JU/JV/JI", ALC245_FIXUP_CS35L41_SPI_2),
11026 SND_PCI_QUIRK(0x1043, 0x1cdf, "ASUS G814JY/JZ/JG", ALC245_FIXUP_CS35L41_SPI_2),
11027 SND_PCI_QUIRK(0x1043, 0x1cef, "ASUS G834JY/JZ/JI/JG", ALC285_FIXUP_ASUS_HEADSET_MIC),
11028 SND_PCI_QUIRK(0x1043, 0x1d1f, "ASUS G713PI/PU/PV/PVN", ALC287_FIXUP_CS35L41_I2C_2),
11029 SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401),
11030 SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),
11031 SND_PCI_QUIRK(0x1043, 0x1da2, "ASUS UP6502ZA/ZD", ALC245_FIXUP_CS35L41_SPI_2),
11032 SND_PCI_QUIRK(0x1043, 0x1df3, "ASUS UM5606WA", ALC294_FIXUP_BASS_SPEAKER_15),
11033 SND_PCI_QUIRK(0x1043, 0x1264, "ASUS UM5606KA", ALC294_FIXUP_BASS_SPEAKER_15),
11034 SND_PCI_QUIRK(0x1043, 0x1e02, "ASUS UX3402ZA", ALC245_FIXUP_CS35L41_SPI_2),
11035 SND_PCI_QUIRK(0x1043, 0x1e10, "ASUS VivoBook X507UAR", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
11036 SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502),
11037 SND_PCI_QUIRK(0x1043, 0x1e12, "ASUS UM3402", ALC287_FIXUP_CS35L41_I2C_2),
11038 SND_PCI_QUIRK(0x1043, 0x1e1f, "ASUS Vivobook 15 X1504VAP", ALC2XX_FIXUP_HEADSET_MIC),
11039 SND_PCI_QUIRK(0x1043, 0x1e51, "ASUS Zephyrus M15", ALC294_FIXUP_ASUS_GU502_PINS),
11040 SND_PCI_QUIRK(0x1043, 0x1e5e, "ASUS ROG Strix G513", ALC294_FIXUP_ASUS_G513_PINS),
11041 SND_PCI_QUIRK(0x1043, 0x1e63, "ASUS H7606W", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
11042 SND_PCI_QUIRK(0x1043, 0x1e83, "ASUS GA605W", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
11043 SND_PCI_QUIRK(0x1043, 0x1e8e, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA401),
11044 SND_PCI_QUIRK(0x1043, 0x1e93, "ASUS ExpertBook B9403CVAR", ALC294_FIXUP_ASUS_HPE),
11045 SND_PCI_QUIRK(0x1043, 0x1eb3, "ASUS Ally RCLA72", ALC287_FIXUP_TAS2781_I2C),
11046 SND_PCI_QUIRK(0x1043, 0x1ed3, "ASUS HN7306W", ALC287_FIXUP_CS35L41_I2C_2),
11047 SND_PCI_QUIRK(0x1043, 0x1ee2, "ASUS UM6702RA/RC", ALC287_FIXUP_CS35L41_I2C_2),
11048 SND_PCI_QUIRK(0x1043, 0x1c52, "ASUS Zephyrus G15 2022", ALC289_FIXUP_ASUS_GA401),
11049 SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401),
11050 SND_PCI_QUIRK(0x1043, 0x1f12, "ASUS UM5302", ALC287_FIXUP_CS35L41_I2C_2),
11051 SND_PCI_QUIRK(0x1043, 0x1f1f, "ASUS H7604JI/JV/J3D", ALC245_FIXUP_CS35L41_SPI_2),
11052 SND_PCI_QUIRK(0x1043, 0x1f62, "ASUS UX7602ZM", ALC245_FIXUP_CS35L41_SPI_2),
11053 SND_PCI_QUIRK(0x1043, 0x1f63, "ASUS P5405CSA", ALC245_FIXUP_CS35L41_SPI_2),
11054 SND_PCI_QUIRK(0x1043, 0x1f92, "ASUS ROG Flow X16", ALC289_FIXUP_ASUS_GA401),
11055 SND_PCI_QUIRK(0x1043, 0x1fb3, "ASUS ROG Flow Z13 GZ302EA", ALC287_FIXUP_CS35L41_I2C_2),
11056 SND_PCI_QUIRK(0x1043, 0x3011, "ASUS B5605CVA", ALC245_FIXUP_CS35L41_SPI_2),
11057 SND_PCI_QUIRK(0x1043, 0x3030, "ASUS ZN270IE", ALC256_FIXUP_ASUS_AIO_GPIO2),
11058 SND_PCI_QUIRK(0x1043, 0x3061, "ASUS B3405CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11059 SND_PCI_QUIRK(0x1043, 0x3071, "ASUS B5405CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11060 SND_PCI_QUIRK(0x1043, 0x30c1, "ASUS B3605CCA / P3605CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11061 SND_PCI_QUIRK(0x1043, 0x30d1, "ASUS B5405CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11062 SND_PCI_QUIRK(0x1043, 0x30e1, "ASUS B5605CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11063 SND_PCI_QUIRK(0x1043, 0x31d0, "ASUS Zen AIO 27 Z272SD_A272SD", ALC274_FIXUP_ASUS_ZEN_AIO_27),
11064 SND_PCI_QUIRK(0x1043, 0x31e1, "ASUS B5605CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11065 SND_PCI_QUIRK(0x1043, 0x31f1, "ASUS B3605CCA", ALC294_FIXUP_ASUS_CS35L41_SPI_2),
11066 SND_PCI_QUIRK(0x1043, 0x3a20, "ASUS G614JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11067 SND_PCI_QUIRK(0x1043, 0x3a30, "ASUS G814JVR/JIR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11068 SND_PCI_QUIRK(0x1043, 0x3a40, "ASUS G814JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11069 SND_PCI_QUIRK(0x1043, 0x3a50, "ASUS G834JYR/JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11070 SND_PCI_QUIRK(0x1043, 0x3a60, "ASUS G634JYR/JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS),
11071 SND_PCI_QUIRK(0x1043, 0x3d78, "ASUS GA603KH", ALC287_FIXUP_CS35L41_I2C_2),
11072 SND_PCI_QUIRK(0x1043, 0x3d88, "ASUS GA603KM", ALC287_FIXUP_CS35L41_I2C_2),
11073 SND_PCI_QUIRK(0x1043, 0x3e00, "ASUS G814FH/FM/FP", ALC287_FIXUP_CS35L41_I2C_2),
11074 SND_PCI_QUIRK(0x1043, 0x3e20, "ASUS G814PH/PM/PP", ALC287_FIXUP_CS35L41_I2C_2),
11075 SND_PCI_QUIRK(0x1043, 0x3e30, "ASUS TP3607SA", ALC287_FIXUP_TAS2781_I2C),
11076 SND_PCI_QUIRK(0x1043, 0x3ee0, "ASUS Strix G815_JHR_JMR_JPR", ALC287_FIXUP_TAS2781_I2C),
11077 SND_PCI_QUIRK(0x1043, 0x3ef0, "ASUS Strix G635LR_LW_LX", ALC287_FIXUP_TAS2781_I2C),
11078 SND_PCI_QUIRK(0x1043, 0x3f00, "ASUS Strix G815LH_LM_LP", ALC287_FIXUP_TAS2781_I2C),
11079 SND_PCI_QUIRK(0x1043, 0x3f10, "ASUS Strix G835LR_LW_LX", ALC287_FIXUP_TAS2781_I2C),
11080 SND_PCI_QUIRK(0x1043, 0x3f20, "ASUS Strix G615LR_LW", ALC287_FIXUP_TAS2781_I2C),
11081 SND_PCI_QUIRK(0x1043, 0x3f30, "ASUS Strix G815LR_LW", ALC287_FIXUP_TAS2781_I2C),
11082 SND_PCI_QUIRK(0x1043, 0x3fd0, "ASUS B3605CVA", ALC245_FIXUP_CS35L41_SPI_2),
11083 SND_PCI_QUIRK(0x1043, 0x3ff0, "ASUS B5405CVA", ALC245_FIXUP_CS35L41_SPI_2),
11084 SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC),
11085 SND_PCI_QUIRK(0x1043, 0x834a, "ASUS S101", ALC269_FIXUP_STEREO_DMIC),
11086 SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005", ALC269_FIXUP_STEREO_DMIC),
11087 SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005", ALC269_FIXUP_STEREO_DMIC),
11088 SND_PCI_QUIRK(0x1043, 0x8516, "ASUS X101CH", ALC269_FIXUP_ASUS_X101),
11089 SND_PCI_QUIRK(0x104d, 0x9073, "Sony VAIO", ALC275_FIXUP_SONY_VAIO_GPIO2),
11090 SND_PCI_QUIRK(0x104d, 0x907b, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
11091 SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
11092 SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", ALC275_FIXUP_SONY_DISABLE_AAMIX),
11093 SND_PCI_QUIRK(0x104d, 0x90b5, "Sony VAIO Pro 11", ALC286_FIXUP_SONY_MIC_NO_PRESENCE),
11094 SND_PCI_QUIRK(0x104d, 0x90b6, "Sony VAIO Pro 13", ALC286_FIXUP_SONY_MIC_NO_PRESENCE),
11095 SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK),
11096 SND_PCI_QUIRK(0x10cf, 0x159f, "Lifebook E780", ALC269_FIXUP_LIFEBOOK_NO_HP_TO_LINEOUT),
11097 SND_PCI_QUIRK(0x10cf, 0x15dc, "Lifebook T731", ALC269_FIXUP_LIFEBOOK_HP_PIN),
11098 SND_PCI_QUIRK(0x10cf, 0x1629, "Lifebook U7x7", ALC255_FIXUP_LIFEBOOK_U7x7_HEADSET_MIC),
11099 SND_PCI_QUIRK(0x10cf, 0x1757, "Lifebook E752", ALC269_FIXUP_LIFEBOOK_HP_PIN),
11100 SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC),
11101 SND_PCI_QUIRK(0x10ec, 0x10f2, "Intel Reference board", ALC700_FIXUP_INTEL_REFERENCE),
11102 SND_PCI_QUIRK(0x10ec, 0x118c, "Medion EE4254 MD62100", ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE),
11103 SND_PCI_QUIRK(0x10ec, 0x119e, "Positivo SU C1400", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
11104 SND_PCI_QUIRK(0x10ec, 0x11bc, "VAIO VJFE-IL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11105 SND_PCI_QUIRK(0x10ec, 0x1230, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11106 SND_PCI_QUIRK(0x10ec, 0x124c, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11107 SND_PCI_QUIRK(0x10ec, 0x1252, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11108 SND_PCI_QUIRK(0x10ec, 0x1254, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11109 SND_PCI_QUIRK(0x10ec, 0x12cc, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11110 SND_PCI_QUIRK(0x10ec, 0x12f6, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
11111 SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
11112 SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
11113 SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_AMP),
11114 SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_AMP),
11115 …SND_PCI_QUIRK(0x144d, 0xc189, "Samsung Galaxy Flex Book (NT950QCG-X716)", ALC298_FIXUP_SAMSUNG_AMP…
11116 …SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_AMP…
11117 …SND_PCI_QUIRK(0x144d, 0xc1a3, "Samsung Galaxy Book Pro (NP935XDB-KC1SE)", ALC298_FIXUP_SAMSUNG_AMP…
11118 SND_PCI_QUIRK(0x144d, 0xc1a4, "Samsung Galaxy Book Pro 360 (NT935QBD)", ALC298_FIXUP_SAMSUNG_AMP),
11119 SND_PCI_QUIRK(0x144d, 0xc1a6, "Samsung Galaxy Book Pro 360 (NP930QBD)", ALC298_FIXUP_SAMSUNG_AMP),
11120 SND_PCI_QUIRK(0x144d, 0xc740, "Samsung Ativ book 8 (NP870Z5G)", ALC269_FIXUP_ATIV_BOOK_8),
11121 SND_PCI_QUIRK(0x144d, 0xc812, "Samsung Notebook Pen S (NT950SBE-X58)", ALC298_FIXUP_SAMSUNG_AMP),
11122 …SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_AMP…
11123 …SND_PCI_QUIRK(0x144d, 0xc832, "Samsung Galaxy Book Flex Alpha (NP730QCJ)", ALC256_FIXUP_SAMSUNG_HE…
11124 SND_PCI_QUIRK(0x144d, 0xca03, "Samsung Galaxy Book2 Pro 360 (NP930QED)", ALC298_FIXUP_SAMSUNG_AMP),
11125 …SND_PCI_QUIRK(0x144d, 0xca06, "Samsung Galaxy Book3 360 (NP730QFG)", ALC298_FIXUP_SAMSUNG_HEADPHON…
11126 SND_PCI_QUIRK(0x144d, 0xc868, "Samsung Galaxy Book2 Pro (NP930XED)", ALC298_FIXUP_SAMSUNG_AMP),
11127 …SND_PCI_QUIRK(0x144d, 0xc870, "Samsung Galaxy Book2 Pro (NP950XED)", ALC298_FIXUP_SAMSUNG_AMP_V2_2…
11128 …SND_PCI_QUIRK(0x144d, 0xc872, "Samsung Galaxy Book2 Pro (NP950XEE)", ALC298_FIXUP_SAMSUNG_AMP_V2_2…
11129 …SND_PCI_QUIRK(0x144d, 0xc886, "Samsung Galaxy Book3 Pro (NP964XFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4…
11130 …SND_PCI_QUIRK(0x144d, 0xc1ca, "Samsung Galaxy Book3 Pro 360 (NP960QFG)", ALC298_FIXUP_SAMSUNG_AMP_…
11131 …SND_PCI_QUIRK(0x144d, 0xc1cc, "Samsung Galaxy Book3 Ultra (NT960XFH)", ALC298_FIXUP_SAMSUNG_AMP_V2…
11132 SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC),
11133 SND_PCI_QUIRK(0x1462, 0xb120, "MSI Cubi MS-B120", ALC283_FIXUP_HEADSET_MIC),
11134 SND_PCI_QUIRK(0x1462, 0xb171, "Cubi N 8GL (MS-B171)", ALC283_FIXUP_HEADSET_MIC),
11135 SND_PCI_QUIRK(0x152d, 0x1082, "Quanta NL3", ALC269_FIXUP_LIFEBOOK),
11136 SND_PCI_QUIRK(0x152d, 0x1262, "Huawei NBLB-WAX9N", ALC2XX_FIXUP_HEADSET_MIC),
11137 SND_PCI_QUIRK(0x1558, 0x0353, "Clevo V35[05]SN[CDE]Q", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11138 SND_PCI_QUIRK(0x1558, 0x1323, "Clevo N130ZU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11139 SND_PCI_QUIRK(0x1558, 0x1325, "Clevo N15[01][CW]U", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11140 SND_PCI_QUIRK(0x1558, 0x1401, "Clevo L140[CZ]U", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11141 SND_PCI_QUIRK(0x1558, 0x1403, "Clevo N140CU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11142 SND_PCI_QUIRK(0x1558, 0x1404, "Clevo N150CU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11143 SND_PCI_QUIRK(0x1558, 0x14a1, "Clevo L141MU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11144 SND_PCI_QUIRK(0x1558, 0x2624, "Clevo L240TU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11145 SND_PCI_QUIRK(0x1558, 0x28c1, "Clevo V370VND", ALC2XX_FIXUP_HEADSET_MIC),
11146 SND_PCI_QUIRK(0x1558, 0x35a1, "Clevo V3[56]0EN[CDE]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11147 SND_PCI_QUIRK(0x1558, 0x35b1, "Clevo V3[57]0WN[MNP]Q", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11148 SND_PCI_QUIRK(0x1558, 0x4018, "Clevo NV40M[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11149 SND_PCI_QUIRK(0x1558, 0x4019, "Clevo NV40MZ", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11150 SND_PCI_QUIRK(0x1558, 0x4020, "Clevo NV40MB", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11151 SND_PCI_QUIRK(0x1558, 0x4041, "Clevo NV4[15]PZ", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11152 SND_PCI_QUIRK(0x1558, 0x40a1, "Clevo NL40GU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11153 SND_PCI_QUIRK(0x1558, 0x40c1, "Clevo NL40[CZ]U", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11154 SND_PCI_QUIRK(0x1558, 0x40d1, "Clevo NL41DU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11155 SND_PCI_QUIRK(0x1558, 0x5015, "Clevo NH5[58]H[HJK]Q", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11156 SND_PCI_QUIRK(0x1558, 0x5017, "Clevo NH7[79]H[HJK]Q", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11157 SND_PCI_QUIRK(0x1558, 0x50a3, "Clevo NJ51GU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11158 SND_PCI_QUIRK(0x1558, 0x50b3, "Clevo NK50S[BEZ]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11159 SND_PCI_QUIRK(0x1558, 0x50b6, "Clevo NK50S5", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11160 SND_PCI_QUIRK(0x1558, 0x50b8, "Clevo NK50SZ", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11161 SND_PCI_QUIRK(0x1558, 0x50d5, "Clevo NP50D5", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11162 SND_PCI_QUIRK(0x1558, 0x50e1, "Clevo NH5[58]HPQ", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11163 SND_PCI_QUIRK(0x1558, 0x50e2, "Clevo NH7[79]HPQ", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11164 SND_PCI_QUIRK(0x1558, 0x50f0, "Clevo NH50A[CDF]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11165 SND_PCI_QUIRK(0x1558, 0x50f2, "Clevo NH50E[PR]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11166 SND_PCI_QUIRK(0x1558, 0x50f3, "Clevo NH58DPQ", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11167 SND_PCI_QUIRK(0x1558, 0x50f5, "Clevo NH55EPY", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11168 SND_PCI_QUIRK(0x1558, 0x50f6, "Clevo NH55DPQ", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11169 SND_PCI_QUIRK(0x1558, 0x5101, "Clevo S510WU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11170 SND_PCI_QUIRK(0x1558, 0x5157, "Clevo W517GU1", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11171 SND_PCI_QUIRK(0x1558, 0x51a1, "Clevo NS50MU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11172 SND_PCI_QUIRK(0x1558, 0x51b1, "Clevo NS50AU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11173 SND_PCI_QUIRK(0x1558, 0x51b3, "Clevo NS70AU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11174 SND_PCI_QUIRK(0x1558, 0x5630, "Clevo NP50RNJS", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11175 SND_PCI_QUIRK(0x1558, 0x5700, "Clevo X560WN[RST]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11176 SND_PCI_QUIRK(0x1558, 0x70a1, "Clevo NB70T[HJK]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11177 SND_PCI_QUIRK(0x1558, 0x70b3, "Clevo NK70SB", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11178 SND_PCI_QUIRK(0x1558, 0x70f2, "Clevo NH79EPY", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11179 SND_PCI_QUIRK(0x1558, 0x70f3, "Clevo NH77DPQ", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11180 SND_PCI_QUIRK(0x1558, 0x70f4, "Clevo NH77EPY", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11181 SND_PCI_QUIRK(0x1558, 0x70f6, "Clevo NH77DPQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11182 SND_PCI_QUIRK(0x1558, 0x7716, "Clevo NS50PU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11183 SND_PCI_QUIRK(0x1558, 0x7717, "Clevo NS70PU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11184 SND_PCI_QUIRK(0x1558, 0x7718, "Clevo L140PU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11185 SND_PCI_QUIRK(0x1558, 0x7724, "Clevo L140AU", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11186 SND_PCI_QUIRK(0x1558, 0x8228, "Clevo NR40BU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11187 SND_PCI_QUIRK(0x1558, 0x8520, "Clevo NH50D[CD]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11188 SND_PCI_QUIRK(0x1558, 0x8521, "Clevo NH77D[CD]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11189 SND_PCI_QUIRK(0x1558, 0x8535, "Clevo NH50D[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11190 SND_PCI_QUIRK(0x1558, 0x8536, "Clevo NH79D[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11191 …SND_PCI_QUIRK(0x1558, 0x8550, "Clevo NH[57][0-9][ER][ACDH]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENC…
11192 …SND_PCI_QUIRK(0x1558, 0x8551, "Clevo NH[57][0-9][ER][ACDH]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENC…
11193 SND_PCI_QUIRK(0x1558, 0x8560, "Clevo NH[57][0-9][ER][ACDH]Q", ALC269_FIXUP_HEADSET_MIC),
11194 SND_PCI_QUIRK(0x1558, 0x8561, "Clevo NH[57][0-9][ER][ACDH]Q", ALC269_FIXUP_HEADSET_MIC),
11195 SND_PCI_QUIRK(0x1558, 0x8562, "Clevo NH[57][0-9]RZ[Q]", ALC269_FIXUP_DMIC),
11196 SND_PCI_QUIRK(0x1558, 0x8668, "Clevo NP50B[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11197 SND_PCI_QUIRK(0x1558, 0x866d, "Clevo NP5[05]PN[HJK]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11198 SND_PCI_QUIRK(0x1558, 0x867c, "Clevo NP7[01]PNP", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11199 SND_PCI_QUIRK(0x1558, 0x867d, "Clevo NP7[01]PN[HJK]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11200 SND_PCI_QUIRK(0x1558, 0x8680, "Clevo NJ50LU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11201 SND_PCI_QUIRK(0x1558, 0x8686, "Clevo NH50[CZ]U", ALC256_FIXUP_MIC_NO_PRESENCE_AND_RESUME),
11202 SND_PCI_QUIRK(0x1558, 0x8a20, "Clevo NH55DCQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11203 SND_PCI_QUIRK(0x1558, 0x8a51, "Clevo NH70RCQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11204 SND_PCI_QUIRK(0x1558, 0x8d50, "Clevo NH55RCQ-M", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11205 SND_PCI_QUIRK(0x1558, 0x951d, "Clevo N950T[CDF]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11206 SND_PCI_QUIRK(0x1558, 0x9600, "Clevo N960K[PR]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11207 SND_PCI_QUIRK(0x1558, 0x961d, "Clevo N960S[CDF]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11208 SND_PCI_QUIRK(0x1558, 0x971d, "Clevo N970T[CDF]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11209 SND_PCI_QUIRK(0x1558, 0xa500, "Clevo NL5[03]RU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11210 SND_PCI_QUIRK(0x1558, 0xa554, "VAIO VJFH52", ALC269_FIXUP_VAIO_VJFH52_MIC_NO_PRESENCE),
11211 SND_PCI_QUIRK(0x1558, 0xa600, "Clevo NL50NU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11212 SND_PCI_QUIRK(0x1558, 0xa650, "Clevo NP[567]0SN[CD]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11213 SND_PCI_QUIRK(0x1558, 0xa671, "Clevo NP70SN[CDE]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11214 SND_PCI_QUIRK(0x1558, 0xa741, "Clevo V54x_6x_TNE", ALC245_FIXUP_CLEVO_NOISY_MIC),
11215 SND_PCI_QUIRK(0x1558, 0xa743, "Clevo V54x_6x_TU", ALC245_FIXUP_CLEVO_NOISY_MIC),
11216 SND_PCI_QUIRK(0x1558, 0xa763, "Clevo V54x_6x_TU", ALC245_FIXUP_CLEVO_NOISY_MIC),
11217 SND_PCI_QUIRK(0x1558, 0xb018, "Clevo NP50D[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11218 SND_PCI_QUIRK(0x1558, 0xb019, "Clevo NH77D[BE]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11219 SND_PCI_QUIRK(0x1558, 0xb022, "Clevo NH77D[DC][QW]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11220 SND_PCI_QUIRK(0x1558, 0xc018, "Clevo NP50D[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11221 SND_PCI_QUIRK(0x1558, 0xc019, "Clevo NH77D[BE]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11222 SND_PCI_QUIRK(0x1558, 0xc022, "Clevo NH77[DC][QW]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
11223 SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC233_FIXUP_LENOVO_MULTI_CODECS),
11224 SND_PCI_QUIRK(0x17aa, 0x1048, "ThinkCentre Station", ALC623_FIXUP_LENOVO_THINKSTATION_P340),
11225 SND_PCI_QUIRK(0x17aa, 0x20f2, "Thinkpad SL410/510", ALC269_FIXUP_SKU_IGNORE),
11226 SND_PCI_QUIRK(0x17aa, 0x215e, "Thinkpad L512", ALC269_FIXUP_SKU_IGNORE),
11227 SND_PCI_QUIRK(0x17aa, 0x21b8, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE),
11228 SND_PCI_QUIRK(0x17aa, 0x21ca, "Thinkpad L412", ALC269_FIXUP_SKU_IGNORE),
11229 SND_PCI_QUIRK(0x17aa, 0x21e9, "Thinkpad Edge 15", ALC269_FIXUP_SKU_IGNORE),
11230 SND_PCI_QUIRK(0x17aa, 0x21f3, "Thinkpad T430", ALC269_FIXUP_LENOVO_DOCK),
11231 SND_PCI_QUIRK(0x17aa, 0x21f6, "Thinkpad T530", ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST),
11232 SND_PCI_QUIRK(0x17aa, 0x21fa, "Thinkpad X230", ALC269_FIXUP_LENOVO_DOCK),
11233 SND_PCI_QUIRK(0x17aa, 0x21fb, "Thinkpad T430s", ALC269_FIXUP_LENOVO_DOCK),
11234 SND_PCI_QUIRK(0x17aa, 0x2203, "Thinkpad X230 Tablet", ALC269_FIXUP_LENOVO_DOCK),
11235 SND_PCI_QUIRK(0x17aa, 0x2208, "Thinkpad T431s", ALC269_FIXUP_LENOVO_DOCK),
11236 SND_PCI_QUIRK(0x17aa, 0x220c, "Thinkpad T440s", ALC292_FIXUP_TPT440),
11237 SND_PCI_QUIRK(0x17aa, 0x220e, "Thinkpad T440p", ALC292_FIXUP_TPT440_DOCK),
11238 SND_PCI_QUIRK(0x17aa, 0x2210, "Thinkpad T540p", ALC292_FIXUP_TPT440_DOCK),
11239 SND_PCI_QUIRK(0x17aa, 0x2211, "Thinkpad W541", ALC292_FIXUP_TPT440_DOCK),
11240 SND_PCI_QUIRK(0x17aa, 0x2212, "Thinkpad T440", ALC292_FIXUP_TPT440_DOCK),
11241 SND_PCI_QUIRK(0x17aa, 0x2214, "Thinkpad X240", ALC292_FIXUP_TPT440_DOCK),
11242 SND_PCI_QUIRK(0x17aa, 0x2215, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11243 SND_PCI_QUIRK(0x17aa, 0x2218, "Thinkpad X1 Carbon 2nd", ALC292_FIXUP_TPT440_DOCK),
11244 SND_PCI_QUIRK(0x17aa, 0x2223, "ThinkPad T550", ALC292_FIXUP_TPT440_DOCK),
11245 SND_PCI_QUIRK(0x17aa, 0x2226, "ThinkPad X250", ALC292_FIXUP_TPT440_DOCK),
11246 SND_PCI_QUIRK(0x17aa, 0x222d, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11247 SND_PCI_QUIRK(0x17aa, 0x222e, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11248 SND_PCI_QUIRK(0x17aa, 0x2231, "Thinkpad T560", ALC292_FIXUP_TPT460),
11249 SND_PCI_QUIRK(0x17aa, 0x2233, "Thinkpad", ALC292_FIXUP_TPT460),
11250 SND_PCI_QUIRK(0x17aa, 0x2234, "Thinkpad ICE-1", ALC287_FIXUP_TAS2781_I2C),
11251 SND_PCI_QUIRK(0x17aa, 0x2245, "Thinkpad T470", ALC298_FIXUP_TPT470_DOCK),
11252 SND_PCI_QUIRK(0x17aa, 0x2246, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11253 SND_PCI_QUIRK(0x17aa, 0x2247, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11254 SND_PCI_QUIRK(0x17aa, 0x2249, "Thinkpad", ALC292_FIXUP_TPT460),
11255 SND_PCI_QUIRK(0x17aa, 0x224b, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11256 SND_PCI_QUIRK(0x17aa, 0x224c, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11257 SND_PCI_QUIRK(0x17aa, 0x224d, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11258 SND_PCI_QUIRK(0x17aa, 0x225d, "Thinkpad T480", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11259 SND_PCI_QUIRK(0x17aa, 0x2292, "Thinkpad X1 Carbon 7th", ALC285_FIXUP_THINKPAD_HEADSET_JACK),
11260 SND_PCI_QUIRK(0x17aa, 0x22be, "Thinkpad X1 Carbon 8th", ALC285_FIXUP_THINKPAD_HEADSET_JACK),
11261 SND_PCI_QUIRK(0x17aa, 0x22c1, "Thinkpad P1 Gen 3", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK),
11262 …SND_PCI_QUIRK(0x17aa, 0x22c2, "Thinkpad X1 Extreme Gen 3", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADS…
11263 SND_PCI_QUIRK(0x17aa, 0x22f1, "Thinkpad", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD),
11264 SND_PCI_QUIRK(0x17aa, 0x22f2, "Thinkpad", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD),
11265 SND_PCI_QUIRK(0x17aa, 0x22f3, "Thinkpad", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD),
11266 …SND_PCI_QUIRK(0x17aa, 0x2316, "Thinkpad P1 Gen 6", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD…
11267 …SND_PCI_QUIRK(0x17aa, 0x2317, "Thinkpad P1 Gen 6", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD…
11268 …SND_PCI_QUIRK(0x17aa, 0x2318, "Thinkpad Z13 Gen2", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD…
11269 …SND_PCI_QUIRK(0x17aa, 0x2319, "Thinkpad Z16 Gen2", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD…
11270 …SND_PCI_QUIRK(0x17aa, 0x231a, "Thinkpad Z16 Gen2", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD…
11271 SND_PCI_QUIRK(0x17aa, 0x231e, "Thinkpad", ALC287_FIXUP_LENOVO_THKPAD_WH_ALC1318),
11272 SND_PCI_QUIRK(0x17aa, 0x231f, "Thinkpad", ALC287_FIXUP_LENOVO_THKPAD_WH_ALC1318),
11273 SND_PCI_QUIRK(0x17aa, 0x2326, "Hera2", ALC287_FIXUP_TAS2781_I2C),
11274 SND_PCI_QUIRK(0x17aa, 0x30bb, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
11275 SND_PCI_QUIRK(0x17aa, 0x30e2, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
11276 SND_PCI_QUIRK(0x17aa, 0x310c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
11277 SND_PCI_QUIRK(0x17aa, 0x3111, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
11278 SND_PCI_QUIRK(0x17aa, 0x312a, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
11279 SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
11280 SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
11281 SND_PCI_QUIRK(0x17aa, 0x3151, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC),
11282 SND_PCI_QUIRK(0x17aa, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC),
11283 SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC),
11284 SND_PCI_QUIRK(0x17aa, 0x31af, "ThinkCentre Station", ALC623_FIXUP_LENOVO_THINKSTATION_P340),
11285 SND_PCI_QUIRK(0x17aa, 0x334b, "Lenovo ThinkCentre M70 Gen5", ALC283_FIXUP_HEADSET_MIC),
11286 SND_PCI_QUIRK(0x17aa, 0x3384, "ThinkCentre M90a PRO", ALC233_FIXUP_LENOVO_L2MH_LOW_ENLED),
11287 SND_PCI_QUIRK(0x17aa, 0x3386, "ThinkCentre M90a Gen6", ALC233_FIXUP_LENOVO_L2MH_LOW_ENLED),
11288 SND_PCI_QUIRK(0x17aa, 0x3387, "ThinkCentre M70a Gen6", ALC233_FIXUP_LENOVO_L2MH_LOW_ENLED),
11289 SND_PCI_QUIRK(0x17aa, 0x3801, "Lenovo Yoga9 14IAP7", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN),
11290 HDA_CODEC_QUIRK(0x17aa, 0x3802, "DuetITL 2021", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11291 SND_PCI_QUIRK(0x17aa, 0x3802, "Lenovo Yoga Pro 9 14IRP8", ALC287_FIXUP_TAS2781_I2C),
11292 SND_PCI_QUIRK(0x17aa, 0x3813, "Legion 7i 15IMHG05", ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS),
11293 SND_PCI_QUIRK(0x17aa, 0x3818, "Lenovo C940 / Yoga Duet 7", ALC298_FIXUP_LENOVO_C940_DUET7),
11294 SND_PCI_QUIRK(0x17aa, 0x3819, "Lenovo 13s Gen2 ITL", ALC287_FIXUP_13S_GEN2_SPEAKERS),
11295 HDA_CODEC_QUIRK(0x17aa, 0x3820, "IdeaPad 330-17IKB 81DM", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
11296 SND_PCI_QUIRK(0x17aa, 0x3820, "Yoga Duet 7 13ITL6", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11297 SND_PCI_QUIRK(0x17aa, 0x3824, "Legion Y9000X 2020", ALC285_FIXUP_LEGION_Y9000X_SPEAKERS),
11298 SND_PCI_QUIRK(0x17aa, 0x3827, "Ideapad S740", ALC285_FIXUP_IDEAPAD_S740_COEF),
11299 SND_PCI_QUIRK(0x17aa, 0x3834, "Lenovo IdeaPad Slim 9i 14ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11300 SND_PCI_QUIRK(0x17aa, 0x383d, "Legion Y9000X 2019", ALC285_FIXUP_LEGION_Y9000X_SPEAKERS),
11301 SND_PCI_QUIRK(0x17aa, 0x3843, "Yoga 9i", ALC287_FIXUP_IDEAPAD_BASS_SPK_AMP),
11302 SND_PCI_QUIRK(0x17aa, 0x3847, "Legion 7 16ACHG6", ALC287_FIXUP_LEGION_16ACHG6),
11303 SND_PCI_QUIRK(0x17aa, 0x384a, "Lenovo Yoga 7 15ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11304 SND_PCI_QUIRK(0x17aa, 0x3852, "Lenovo Yoga 7 14ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11305 SND_PCI_QUIRK(0x17aa, 0x3853, "Lenovo Yoga 7 15ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
11306 SND_PCI_QUIRK(0x17aa, 0x3855, "Legion 7 16ITHG6", ALC287_FIXUP_LEGION_16ITHG6),
11307 SND_PCI_QUIRK(0x17aa, 0x3865, "Lenovo 13X", ALC287_FIXUP_CS35L41_I2C_2),
11308 SND_PCI_QUIRK(0x17aa, 0x3866, "Lenovo 13X", ALC287_FIXUP_CS35L41_I2C_2),
11309 SND_PCI_QUIRK(0x17aa, 0x3869, "Lenovo Yoga7 14IAL7", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN),
11310 HDA_CODEC_QUIRK(0x17aa, 0x386e, "Legion Y9000X 2022 IAH7", ALC287_FIXUP_CS35L41_I2C_2),
11311 SND_PCI_QUIRK(0x17aa, 0x386e, "Yoga Pro 7 14ARP8", ALC285_FIXUP_SPEAKER2_TO_DAC1),
11312 …HDA_CODEC_QUIRK(0x17aa, 0x38a8, "Legion Pro 7 16ARX8H", ALC287_FIXUP_TAS2781_I2C), /* this must ma…
11313 SND_PCI_QUIRK(0x17aa, 0x386f, "Legion Pro 7i 16IAX7", ALC287_FIXUP_CS35L41_I2C_2),
11314 SND_PCI_QUIRK(0x17aa, 0x3870, "Lenovo Yoga 7 14ARB7", ALC287_FIXUP_YOGA7_14ARB7_I2C),
11315 SND_PCI_QUIRK(0x17aa, 0x3877, "Lenovo Legion 7 Slim 16ARHA7", ALC287_FIXUP_CS35L41_I2C_2),
11316 SND_PCI_QUIRK(0x17aa, 0x3878, "Lenovo Legion 7 Slim 16ARHA7", ALC287_FIXUP_CS35L41_I2C_2),
11317 SND_PCI_QUIRK(0x17aa, 0x387d, "Yoga S780-16 pro Quad AAC", ALC287_FIXUP_TAS2781_I2C),
11318 SND_PCI_QUIRK(0x17aa, 0x387e, "Yoga S780-16 pro Quad YC", ALC287_FIXUP_TAS2781_I2C),
11319 SND_PCI_QUIRK(0x17aa, 0x387f, "Yoga S780-16 pro dual LX", ALC287_FIXUP_TAS2781_I2C),
11320 SND_PCI_QUIRK(0x17aa, 0x3880, "Yoga S780-16 pro dual YC", ALC287_FIXUP_TAS2781_I2C),
11321 SND_PCI_QUIRK(0x17aa, 0x3881, "YB9 dual power mode2 YC", ALC287_FIXUP_TAS2781_I2C),
11322 SND_PCI_QUIRK(0x17aa, 0x3882, "Lenovo Yoga Pro 7 14APH8", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN),
11323 SND_PCI_QUIRK(0x17aa, 0x3884, "Y780 YG DUAL", ALC287_FIXUP_TAS2781_I2C),
11324 SND_PCI_QUIRK(0x17aa, 0x3886, "Y780 VECO DUAL", ALC287_FIXUP_TAS2781_I2C),
11325 SND_PCI_QUIRK(0x17aa, 0x3891, "Lenovo Yoga Pro 7 14AHP9", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN),
11326 SND_PCI_QUIRK(0x17aa, 0x38a5, "Y580P AMD dual", ALC287_FIXUP_TAS2781_I2C),
11327 SND_PCI_QUIRK(0x17aa, 0x38a7, "Y780P AMD YG dual", ALC287_FIXUP_TAS2781_I2C),
11328 SND_PCI_QUIRK(0x17aa, 0x38a8, "Y780P AMD VECO dual", ALC287_FIXUP_TAS2781_I2C),
11329 SND_PCI_QUIRK(0x17aa, 0x38a9, "Thinkbook 16P", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD),
11330 SND_PCI_QUIRK(0x17aa, 0x38ab, "Thinkbook 16P", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPAD),
11331 SND_PCI_QUIRK(0x17aa, 0x38b4, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2),
11332 SND_PCI_QUIRK(0x17aa, 0x38b5, "Legion Slim 7 16IRH8", ALC287_FIXUP_CS35L41_I2C_2),
11333 SND_PCI_QUIRK(0x17aa, 0x38b6, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L41_I2C_2),
11334 SND_PCI_QUIRK(0x17aa, 0x38b7, "Legion Slim 7 16APH8", ALC287_FIXUP_CS35L41_I2C_2),
11335 SND_PCI_QUIRK(0x17aa, 0x38b8, "Yoga S780-14.5 proX AMD YC Dual", ALC287_FIXUP_TAS2781_I2C),
11336 SND_PCI_QUIRK(0x17aa, 0x38b9, "Yoga S780-14.5 proX AMD LX Dual", ALC287_FIXUP_TAS2781_I2C),
11337 SND_PCI_QUIRK(0x17aa, 0x38ba, "Yoga S780-14.5 Air AMD quad YC", ALC287_FIXUP_TAS2781_I2C),
11338 SND_PCI_QUIRK(0x17aa, 0x38bb, "Yoga S780-14.5 Air AMD quad AAC", ALC287_FIXUP_TAS2781_I2C),
11339 SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual", ALC287_FIXUP_TAS2781_I2C),
11340 SND_PCI_QUIRK(0x17aa, 0x38bf, "Yoga S980-14.5 proX LX Dual", ALC287_FIXUP_TAS2781_I2C),
11341 SND_PCI_QUIRK(0x17aa, 0x38c3, "Y980 DUAL", ALC287_FIXUP_TAS2781_I2C),
11342 SND_PCI_QUIRK(0x17aa, 0x38c7, "Thinkbook 13x Gen 4", ALC287_FIXUP_CS35L41_I2C_4),
11343 SND_PCI_QUIRK(0x17aa, 0x38c8, "Thinkbook 13x Gen 4", ALC287_FIXUP_CS35L41_I2C_4),
11344 SND_PCI_QUIRK(0x17aa, 0x38cb, "Y790 YG DUAL", ALC287_FIXUP_TAS2781_I2C),
11345 SND_PCI_QUIRK(0x17aa, 0x38cd, "Y790 VECO DUAL", ALC287_FIXUP_TAS2781_I2C),
11346 SND_PCI_QUIRK(0x17aa, 0x38d2, "Lenovo Yoga 9 14IMH9", ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN),
11347 SND_PCI_QUIRK(0x17aa, 0x38d3, "Yoga S990-16 Pro IMH YC Dual", ALC287_FIXUP_TAS2781_I2C),
11348 SND_PCI_QUIRK(0x17aa, 0x38d4, "Yoga S990-16 Pro IMH VECO Dual", ALC287_FIXUP_TAS2781_I2C),
11349 SND_PCI_QUIRK(0x17aa, 0x38d5, "Yoga S990-16 Pro IMH YC Quad", ALC287_FIXUP_TAS2781_I2C),
11350 SND_PCI_QUIRK(0x17aa, 0x38d6, "Yoga S990-16 Pro IMH VECO Quad", ALC287_FIXUP_TAS2781_I2C),
11351 SND_PCI_QUIRK(0x17aa, 0x38d7, "Lenovo Yoga 9 14IMH9", ALC287_FIXUP_YOGA9_14IMH9_BASS_SPK_PIN),
11352 SND_PCI_QUIRK(0x17aa, 0x38df, "Yoga Y990 Intel YC Dual", ALC287_FIXUP_TAS2781_I2C),
11353 SND_PCI_QUIRK(0x17aa, 0x38e0, "Yoga Y990 Intel VECO Dual", ALC287_FIXUP_TAS2781_I2C),
11354 SND_PCI_QUIRK(0x17aa, 0x38f8, "Yoga Book 9i", ALC287_FIXUP_TAS2781_I2C),
11355 SND_PCI_QUIRK(0x17aa, 0x38df, "Y990 YG DUAL", ALC287_FIXUP_TAS2781_I2C),
11356 …SND_PCI_QUIRK(0x17aa, 0x38f9, "Thinkbook 16P Gen5", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPA…
11357 …SND_PCI_QUIRK(0x17aa, 0x38fa, "Thinkbook 16P Gen5", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_THINKPA…
11358 SND_PCI_QUIRK(0x17aa, 0x38fd, "ThinkBook plus Gen5 Hybrid", ALC287_FIXUP_TAS2781_I2C),
11359 SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
11360 SND_PCI_QUIRK(0x17aa, 0x390d, "Lenovo Yoga Pro 7 14ASP10", ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN),
11361 SND_PCI_QUIRK(0x17aa, 0x3913, "Lenovo 145", ALC236_FIXUP_LENOVO_INV_DMIC),
11362 SND_PCI_QUIRK(0x17aa, 0x391f, "Yoga S990-16 pro Quad YC Quad", ALC287_FIXUP_TAS2781_I2C),
11363 SND_PCI_QUIRK(0x17aa, 0x3920, "Yoga S990-16 pro Quad VECO Quad", ALC287_FIXUP_TAS2781_I2C),
11364 SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC),
11365 SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
11366 SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_PCM_44K),
11367 SND_PCI_QUIRK(0x17aa, 0x5013, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11368 SND_PCI_QUIRK(0x17aa, 0x501a, "Thinkpad", ALC283_FIXUP_INT_MIC),
11369 SND_PCI_QUIRK(0x17aa, 0x501e, "Thinkpad L440", ALC292_FIXUP_TPT440_DOCK),
11370 SND_PCI_QUIRK(0x17aa, 0x5026, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11371 SND_PCI_QUIRK(0x17aa, 0x5034, "Thinkpad T450", ALC292_FIXUP_TPT440_DOCK),
11372 SND_PCI_QUIRK(0x17aa, 0x5036, "Thinkpad T450s", ALC292_FIXUP_TPT440_DOCK),
11373 SND_PCI_QUIRK(0x17aa, 0x503c, "Thinkpad L450", ALC292_FIXUP_TPT440_DOCK),
11374 SND_PCI_QUIRK(0x17aa, 0x504a, "ThinkPad X260", ALC292_FIXUP_TPT440_DOCK),
11375 SND_PCI_QUIRK(0x17aa, 0x504b, "Thinkpad", ALC293_FIXUP_LENOVO_SPK_NOISE),
11376 SND_PCI_QUIRK(0x17aa, 0x5050, "Thinkpad T560p", ALC292_FIXUP_TPT460),
11377 SND_PCI_QUIRK(0x17aa, 0x5051, "Thinkpad L460", ALC292_FIXUP_TPT460),
11378 SND_PCI_QUIRK(0x17aa, 0x5053, "Thinkpad T460", ALC292_FIXUP_TPT460),
11379 SND_PCI_QUIRK(0x17aa, 0x505d, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11380 SND_PCI_QUIRK(0x17aa, 0x505f, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11381 SND_PCI_QUIRK(0x17aa, 0x5062, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11382 SND_PCI_QUIRK(0x17aa, 0x508b, "Thinkpad X12 Gen 1", ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS),
11383 SND_PCI_QUIRK(0x17aa, 0x5109, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11384 SND_PCI_QUIRK(0x17aa, 0x511e, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11385 SND_PCI_QUIRK(0x17aa, 0x511f, "Thinkpad", ALC298_FIXUP_TPT470_DOCK),
11386 SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD),
11387 SND_PCI_QUIRK(0x17aa, 0x9e56, "Lenovo ZhaoYang CF4620Z", ALC286_FIXUP_SONY_MIC_NO_PRESENCE),
11388 SND_PCI_QUIRK(0x1849, 0x0269, "Positivo Master C6400", ALC269VB_FIXUP_ASUS_ZENBOOK),
11389 SND_PCI_QUIRK(0x1849, 0x1233, "ASRock NUC Box 1100", ALC233_FIXUP_NO_AUDIO_JACK),
11390 SND_PCI_QUIRK(0x1849, 0xa233, "Positivo Master C6300", ALC269_FIXUP_HEADSET_MIC),
11391 SND_PCI_QUIRK(0x1854, 0x0440, "LG CQ6", ALC256_FIXUP_HEADPHONE_AMP_VOL),
11392 SND_PCI_QUIRK(0x1854, 0x0441, "LG CQ6 AIO", ALC256_FIXUP_HEADPHONE_AMP_VOL),
11393 SND_PCI_QUIRK(0x1854, 0x0488, "LG gram 16 (16Z90R)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
11394 SND_PCI_QUIRK(0x1854, 0x048a, "LG gram 17 (17ZD90R)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
11395 SND_PCI_QUIRK(0x19e5, 0x3204, "Huawei MACH-WX9", ALC256_FIXUP_HUAWEI_MACH_WX9_PINS),
11396 SND_PCI_QUIRK(0x19e5, 0x320f, "Huawei WRT-WX9 ", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
11397 SND_PCI_QUIRK(0x19e5, 0x3212, "Huawei KLV-WX9 ", ALC256_FIXUP_ACER_HEADSET_MIC),
11398 SND_PCI_QUIRK(0x1b35, 0x1235, "CZC B20", ALC269_FIXUP_CZC_B20),
11399 SND_PCI_QUIRK(0x1b35, 0x1236, "CZC TMI", ALC269_FIXUP_CZC_TMI),
11400 SND_PCI_QUIRK(0x1b35, 0x1237, "CZC L101", ALC269_FIXUP_CZC_L101),
11401 …SND_PCI_QUIRK(0x1b7d, 0xa831, "Ordissimo EVE2 ", ALC269VB_FIXUP_ORDISSIMO_EVE2), /* Also known as …
11402 SND_PCI_QUIRK(0x1c06, 0x2013, "Lemote A1802", ALC269_FIXUP_LEMOTE_A1802),
11403 SND_PCI_QUIRK(0x1c06, 0x2015, "Lemote A190X", ALC269_FIXUP_LEMOTE_A190X),
11404 SND_PCI_QUIRK(0x1c6c, 0x122a, "Positivo N14AP7", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11405 SND_PCI_QUIRK(0x1c6c, 0x1251, "Positivo N14KP6-TG", ALC288_FIXUP_DELL1_MIC_NO_PRESENCE),
11406 SND_PCI_QUIRK(0x1d05, 0x1132, "TongFang PHxTxX1", ALC256_FIXUP_SET_COEF_DEFAULTS),
11407 SND_PCI_QUIRK(0x1d05, 0x1096, "TongFang GMxMRxx", ALC269_FIXUP_NO_SHUTUP),
11408 SND_PCI_QUIRK(0x1d05, 0x1100, "TongFang GKxNRxx", ALC269_FIXUP_NO_SHUTUP),
11409 SND_PCI_QUIRK(0x1d05, 0x1111, "TongFang GMxZGxx", ALC269_FIXUP_NO_SHUTUP),
11410 SND_PCI_QUIRK(0x1d05, 0x1119, "TongFang GMxZGxx", ALC269_FIXUP_NO_SHUTUP),
11411 SND_PCI_QUIRK(0x1d05, 0x1129, "TongFang GMxZGxx", ALC269_FIXUP_NO_SHUTUP),
11412 SND_PCI_QUIRK(0x1d05, 0x1147, "TongFang GMxTGxx", ALC269_FIXUP_NO_SHUTUP),
11413 SND_PCI_QUIRK(0x1d05, 0x115c, "TongFang GMxTGxx", ALC269_FIXUP_NO_SHUTUP),
11414 SND_PCI_QUIRK(0x1d05, 0x121b, "TongFang GMxAGxx", ALC269_FIXUP_NO_SHUTUP),
11415 SND_PCI_QUIRK(0x1d05, 0x1387, "TongFang GMxIXxx", ALC2XX_FIXUP_HEADSET_MIC),
11416 SND_PCI_QUIRK(0x1d05, 0x1409, "TongFang GMxIXxx", ALC2XX_FIXUP_HEADSET_MIC),
11417 SND_PCI_QUIRK(0x1d17, 0x3288, "Haier Boyue G42", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS),
11418 SND_PCI_QUIRK(0x1d72, 0x1602, "RedmiBook", ALC255_FIXUP_XIAOMI_HEADSET_MIC),
11419 SND_PCI_QUIRK(0x1d72, 0x1701, "XiaomiNotebook Pro", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE),
11420 SND_PCI_QUIRK(0x1d72, 0x1901, "RedmiBook 14", ALC256_FIXUP_ASUS_HEADSET_MIC),
11421 SND_PCI_QUIRK(0x1d72, 0x1945, "Redmi G", ALC256_FIXUP_ASUS_HEADSET_MIC),
11422 SND_PCI_QUIRK(0x1d72, 0x1947, "RedmiBook Air", ALC255_FIXUP_XIAOMI_HEADSET_MIC),
11423 SND_PCI_QUIRK(0x1f66, 0x0105, "Ayaneo Portable Game Player", ALC287_FIXUP_CS35L41_I2C_2),
11424 SND_PCI_QUIRK(0x2014, 0x800a, "Positivo ARN50", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11425 SND_PCI_QUIRK(0x2782, 0x0214, "VAIO VJFE-CL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
11426 SND_PCI_QUIRK(0x2782, 0x0228, "Infinix ZERO BOOK 13", ALC269VB_FIXUP_INFINIX_ZERO_BOOK_13),
11427 SND_PCI_QUIRK(0x2782, 0x0232, "CHUWI CoreBook XPro", ALC269VB_FIXUP_CHUWI_COREBOOK_XPRO),
11428 SND_PCI_QUIRK(0x2782, 0x1407, "Positivo P15X", ALC269_FIXUP_POSITIVO_P15X_HEADSET_MIC),
11429 SND_PCI_QUIRK(0x2782, 0x1409, "Positivo K116J", ALC269_FIXUP_POSITIVO_P15X_HEADSET_MIC),
11430 SND_PCI_QUIRK(0x2782, 0x1701, "Infinix Y4 Max", ALC269VC_FIXUP_INFINIX_Y4_MAX),
11431 SND_PCI_QUIRK(0x2782, 0x1705, "MEDION E15433", ALC269VC_FIXUP_INFINIX_Y4_MAX),
11432 SND_PCI_QUIRK(0x2782, 0x1707, "Vaio VJFE-ADL", ALC298_FIXUP_SPK_VOLUME),
11433 SND_PCI_QUIRK(0x2782, 0x4900, "MEDION E15443", ALC233_FIXUP_MEDION_MTL_SPK),
11434 SND_PCI_QUIRK(0x8086, 0x2074, "Intel NUC 8", ALC233_FIXUP_INTEL_NUC8_DMIC),
11435 SND_PCI_QUIRK(0x8086, 0x2080, "Intel NUC 8 Rugged", ALC256_FIXUP_INTEL_NUC8_RUGGED),
11436 SND_PCI_QUIRK(0x8086, 0x2081, "Intel NUC 10", ALC256_FIXUP_INTEL_NUC10),
11437 SND_PCI_QUIRK(0x8086, 0x3038, "Intel NUC 13", ALC295_FIXUP_CHROME_BOOK),
11438 SND_PCI_QUIRK(0xf111, 0x0001, "Framework Laptop", ALC295_FIXUP_FRAMEWORK_LAPTOP_MIC_NO_PRESENCE),
11439 SND_PCI_QUIRK(0xf111, 0x0006, "Framework Laptop", ALC295_FIXUP_FRAMEWORK_LAPTOP_MIC_NO_PRESENCE),
11440 SND_PCI_QUIRK(0xf111, 0x0009, "Framework Laptop", ALC295_FIXUP_FRAMEWORK_LAPTOP_MIC_NO_PRESENCE),
11441 SND_PCI_QUIRK(0xf111, 0x000c, "Framework Laptop", ALC295_FIXUP_FRAMEWORK_LAPTOP_MIC_NO_PRESENCE),
11443 #if 0
11449 SND_PCI_QUIRK(0x1043, 0x8330, "ASUS Eeepc P703 P900A",
11451 SND_PCI_QUIRK(0x1043, 0x1013, "ASUS N61Da", ALC269_FIXUP_AMIC),
11452 SND_PCI_QUIRK(0x1043, 0x1143, "ASUS B53f", ALC269_FIXUP_AMIC),
11453 SND_PCI_QUIRK(0x1043, 0x1133, "ASUS UJ20ft", ALC269_FIXUP_AMIC),
11454 SND_PCI_QUIRK(0x1043, 0x1183, "ASUS K72DR", ALC269_FIXUP_AMIC),
11455 SND_PCI_QUIRK(0x1043, 0x11b3, "ASUS K52DR", ALC269_FIXUP_AMIC),
11456 SND_PCI_QUIRK(0x1043, 0x11e3, "ASUS U33Jc", ALC269_FIXUP_AMIC),
11457 SND_PCI_QUIRK(0x1043, 0x1273, "ASUS UL80Jt", ALC269_FIXUP_AMIC),
11458 SND_PCI_QUIRK(0x1043, 0x1283, "ASUS U53Jc", ALC269_FIXUP_AMIC),
11459 SND_PCI_QUIRK(0x1043, 0x12b3, "ASUS N82JV", ALC269_FIXUP_AMIC),
11460 SND_PCI_QUIRK(0x1043, 0x12d3, "ASUS N61Jv", ALC269_FIXUP_AMIC),
11461 SND_PCI_QUIRK(0x1043, 0x13a3, "ASUS UL30Vt", ALC269_FIXUP_AMIC),
11462 SND_PCI_QUIRK(0x1043, 0x1373, "ASUS G73JX", ALC269_FIXUP_AMIC),
11463 SND_PCI_QUIRK(0x1043, 0x1383, "ASUS UJ30Jc", ALC269_FIXUP_AMIC),
11464 SND_PCI_QUIRK(0x1043, 0x13d3, "ASUS N61JA", ALC269_FIXUP_AMIC),
11465 SND_PCI_QUIRK(0x1043, 0x1413, "ASUS UL50", ALC269_FIXUP_AMIC),
11466 SND_PCI_QUIRK(0x1043, 0x1443, "ASUS UL30", ALC269_FIXUP_AMIC),
11467 SND_PCI_QUIRK(0x1043, 0x1453, "ASUS M60Jv", ALC269_FIXUP_AMIC),
11468 SND_PCI_QUIRK(0x1043, 0x1483, "ASUS UL80", ALC269_FIXUP_AMIC),
11469 SND_PCI_QUIRK(0x1043, 0x14f3, "ASUS F83Vf", ALC269_FIXUP_AMIC),
11470 SND_PCI_QUIRK(0x1043, 0x14e3, "ASUS UL20", ALC269_FIXUP_AMIC),
11471 SND_PCI_QUIRK(0x1043, 0x1513, "ASUS UX30", ALC269_FIXUP_AMIC),
11472 SND_PCI_QUIRK(0x1043, 0x1593, "ASUS N51Vn", ALC269_FIXUP_AMIC),
11473 SND_PCI_QUIRK(0x1043, 0x15a3, "ASUS N60Jv", ALC269_FIXUP_AMIC),
11474 SND_PCI_QUIRK(0x1043, 0x15b3, "ASUS N60Dp", ALC269_FIXUP_AMIC),
11475 SND_PCI_QUIRK(0x1043, 0x15c3, "ASUS N70De", ALC269_FIXUP_AMIC),
11476 SND_PCI_QUIRK(0x1043, 0x15e3, "ASUS F83T", ALC269_FIXUP_AMIC),
11477 SND_PCI_QUIRK(0x1043, 0x1643, "ASUS M60J", ALC269_FIXUP_AMIC),
11478 SND_PCI_QUIRK(0x1043, 0x1653, "ASUS U50", ALC269_FIXUP_AMIC),
11479 SND_PCI_QUIRK(0x1043, 0x1693, "ASUS F50N", ALC269_FIXUP_AMIC),
11480 SND_PCI_QUIRK(0x1043, 0x16a3, "ASUS F5Q", ALC269_FIXUP_AMIC),
11481 SND_PCI_QUIRK(0x1043, 0x1723, "ASUS P80", ALC269_FIXUP_AMIC),
11482 SND_PCI_QUIRK(0x1043, 0x1743, "ASUS U80", ALC269_FIXUP_AMIC),
11483 SND_PCI_QUIRK(0x1043, 0x1773, "ASUS U20A", ALC269_FIXUP_AMIC),
11484 SND_PCI_QUIRK(0x1043, 0x1883, "ASUS F81Se", ALC269_FIXUP_AMIC),
11485 SND_PCI_QUIRK(0x152d, 0x1778, "Quanta ON1", ALC269_FIXUP_DMIC),
11486 SND_PCI_QUIRK(0x17aa, 0x3be9, "Quanta Wistron", ALC269_FIXUP_AMIC),
11487 SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_AMIC),
11488 SND_PCI_QUIRK(0x17ff, 0x059a, "Quanta EL3", ALC269_FIXUP_DMIC),
11489 SND_PCI_QUIRK(0x17ff, 0x059b, "Quanta JR1", ALC269_FIXUP_DMIC),
11495 SND_PCI_QUIRK_VENDOR(0x1025, "Acer Aspire", ALC271_FIXUP_DMIC),
11496 SND_PCI_QUIRK_VENDOR(0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED),
11497 SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
11498 SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo XPAD", ALC269_FIXUP_LENOVO_XPAD_ACPI),
11499 SND_PCI_QUIRK_VENDOR(0x19e5, "Huawei Matebook", ALC255_FIXUP_MIC_MUTE_LED),
11504 {.id = ALC269_FIXUP_AMIC, .name = "laptop-amic"},
11505 {.id = ALC269_FIXUP_DMIC, .name = "laptop-dmic"},
11506 {.id = ALC269_FIXUP_STEREO_DMIC, .name = "alc269-dmic"},
11507 {.id = ALC271_FIXUP_DMIC, .name = "alc271-dmic"},
11508 {.id = ALC269_FIXUP_INV_DMIC, .name = "inv-dmic"},
11509 {.id = ALC269_FIXUP_HEADSET_MIC, .name = "headset-mic"},
11510 {.id = ALC269_FIXUP_HEADSET_MODE, .name = "headset-mode"},
11511 {.id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, .name = "headset-mode-no-hp-mic"},
11512 {.id = ALC269_FIXUP_LENOVO_DOCK, .name = "lenovo-dock"},
11513 {.id = ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST, .name = "lenovo-dock-limit-boost"},
11514 {.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
11515 {.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic1-led"},
11516 {.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
11517 {.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
11518 {.id = ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, .name = "dell-headset3"},
11519 {.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, .name = "dell-headset4"},
11520 {.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET, .name = "dell-headset4-quiet"},
11521 {.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},
11522 {.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"},
11523 {.id = ALC292_FIXUP_TPT440_DOCK, .name = "tpt440-dock"},
11526 {.id = ALC298_FIXUP_TPT470_DOCK_FIX, .name = "tpt470-dock-fix"},
11527 {.id = ALC298_FIXUP_TPT470_DOCK, .name = "tpt470-dock"},
11528 {.id = ALC233_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
11529 {.id = ALC700_FIXUP_INTEL_REFERENCE, .name = "alc700-ref"},
11531 {.id = ALC269_FIXUP_DELL_M101Z, .name = "dell-m101z"},
11532 {.id = ALC269_FIXUP_ASUS_G73JW, .name = "asus-g73jw"},
11533 {.id = ALC269_FIXUP_LENOVO_EAPD, .name = "lenovo-eapd"},
11534 {.id = ALC275_FIXUP_SONY_HWEQ, .name = "sony-hweq"},
11537 {.id = ALC269_FIXUP_LIFEBOOK_EXTMIC, .name = "lifebook-extmic"},
11538 {.id = ALC269_FIXUP_LIFEBOOK_HP_PIN, .name = "lifebook-hp-pin"},
11539 {.id = ALC255_FIXUP_LIFEBOOK_U7x7_HEADSET_MIC, .name = "lifebook-u7x7"},
11540 {.id = ALC269VB_FIXUP_AMIC, .name = "alc269vb-amic"},
11541 {.id = ALC269VB_FIXUP_DMIC, .name = "alc269vb-dmic"},
11542 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC1, .name = "hp-mute-led-mic1"},
11543 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC2, .name = "hp-mute-led-mic2"},
11544 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC3, .name = "hp-mute-led-mic3"},
11545 {.id = ALC269_FIXUP_HP_GPIO_MIC1_LED, .name = "hp-gpio-mic1"},
11546 {.id = ALC269_FIXUP_HP_LINE1_MIC1_LED, .name = "hp-line1-mic1"},
11548 {.id = ALC286_FIXUP_SONY_MIC_NO_PRESENCE, .name = "sony-nomic"},
11549 {.id = ALC269_FIXUP_ASPIRE_HEADSET_MIC, .name = "aspire-headset-mic"},
11550 {.id = ALC269_FIXUP_ASUS_X101, .name = "asus-x101"},
11551 {.id = ALC271_FIXUP_HP_GATE_MIC_JACK, .name = "acer-ao7xx"},
11552 {.id = ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572, .name = "acer-aspire-e1"},
11553 {.id = ALC269_FIXUP_ACER_AC700, .name = "acer-ac700"},
11554 {.id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST, .name = "limit-mic-boost"},
11555 {.id = ALC269VB_FIXUP_ASUS_ZENBOOK, .name = "asus-zenbook"},
11556 {.id = ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A, .name = "asus-zenbook-ux31a"},
11558 {.id = ALC282_FIXUP_ASUS_TX300, .name = "asus-tx300"},
11559 {.id = ALC283_FIXUP_INT_MIC, .name = "alc283-int-mic"},
11560 {.id = ALC290_FIXUP_MONO_SPEAKERS_HSJACK, .name = "mono-speakers"},
11561 {.id = ALC290_FIXUP_SUBWOOFER_HSJACK, .name = "alc290-subwoofer"},
11563 {.id = ALC269_FIXUP_LENOVO_XPAD_ACPI, .name = "lenovo-xpad-led"},
11564 {.id = ALC269_FIXUP_DMIC_THINKPAD_ACPI, .name = "dmic-thinkpad"},
11565 {.id = ALC255_FIXUP_ACER_MIC_NO_PRESENCE, .name = "alc255-acer"},
11566 {.id = ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, .name = "alc255-asus"},
11567 {.id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc255-dell1"},
11568 {.id = ALC255_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "alc255-dell2"},
11569 {.id = ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc293-dell1"},
11570 {.id = ALC283_FIXUP_HEADSET_MIC, .name = "alc283-headset"},
11571 {.id = ALC255_FIXUP_MIC_MUTE_LED, .name = "alc255-dell-mute"},
11572 {.id = ALC282_FIXUP_ASPIRE_V5_PINS, .name = "aspire-v5"},
11573 {.id = ALC269VB_FIXUP_ASPIRE_E1_COEF, .name = "aspire-e1-coef"},
11574 {.id = ALC280_FIXUP_HP_GPIO4, .name = "hp-gpio4"},
11575 {.id = ALC286_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
11576 {.id = ALC280_FIXUP_HP_GPIO2_MIC_HOTKEY, .name = "hp-gpio2-hotkey"},
11577 {.id = ALC280_FIXUP_HP_DOCK_PINS, .name = "hp-dock-pins"},
11578 {.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic"},
11579 {.id = ALC280_FIXUP_HP_9480M, .name = "hp-9480m"},
11580 {.id = ALC288_FIXUP_DELL_HEADSET_MODE, .name = "alc288-dell-headset"},
11581 {.id = ALC288_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc288-dell1"},
11582 {.id = ALC288_FIXUP_DELL_XPS_13, .name = "alc288-dell-xps13"},
11583 {.id = ALC292_FIXUP_DELL_E7X, .name = "dell-e7x"},
11584 {.id = ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK, .name = "alc293-dell"},
11585 {.id = ALC298_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc298-dell1"},
11586 {.id = ALC298_FIXUP_DELL_AIO_MIC_NO_PRESENCE, .name = "alc298-dell-aio"},
11587 {.id = ALC275_FIXUP_DELL_XPS, .name = "alc275-dell-xps"},
11588 {.id = ALC293_FIXUP_LENOVO_SPK_NOISE, .name = "lenovo-spk-noise"},
11589 {.id = ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY, .name = "lenovo-hotkey"},
11590 {.id = ALC255_FIXUP_DELL_SPK_NOISE, .name = "dell-spk-noise"},
11591 {.id = ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc225-dell1"},
11592 {.id = ALC295_FIXUP_DISABLE_DAC3, .name = "alc295-disable-dac3"},
11593 {.id = ALC285_FIXUP_SPEAKER2_TO_DAC1, .name = "alc285-speaker2-to-dac1"},
11594 {.id = ALC280_FIXUP_HP_HEADSET_MIC, .name = "alc280-hp-headset"},
11595 {.id = ALC221_FIXUP_HP_FRONT_MIC, .name = "alc221-hp-mic"},
11596 {.id = ALC298_FIXUP_SPK_VOLUME, .name = "alc298-spk-volume"},
11597 {.id = ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER, .name = "dell-inspiron-7559"},
11598 {.id = ALC269_FIXUP_ATIV_BOOK_8, .name = "ativ-book"},
11599 {.id = ALC221_FIXUP_HP_MIC_NO_PRESENCE, .name = "alc221-hp-mic"},
11600 {.id = ALC256_FIXUP_ASUS_HEADSET_MODE, .name = "alc256-asus-headset"},
11601 {.id = ALC256_FIXUP_ASUS_MIC, .name = "alc256-asus-mic"},
11602 {.id = ALC256_FIXUP_ASUS_AIO_GPIO2, .name = "alc256-asus-aio"},
11603 {.id = ALC233_FIXUP_ASUS_MIC_NO_PRESENCE, .name = "alc233-asus"},
11604 {.id = ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE, .name = "alc233-eapd"},
11605 {.id = ALC294_FIXUP_LENOVO_MIC_LOCATION, .name = "alc294-lenovo-mic"},
11606 {.id = ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE, .name = "alc225-wyse"},
11607 {.id = ALC274_FIXUP_DELL_AIO_LINEOUT_VERB, .name = "alc274-dell-aio"},
11608 {.id = ALC255_FIXUP_DUMMY_LINEOUT_VERB, .name = "alc255-dummy-lineout"},
11609 {.id = ALC255_FIXUP_DELL_HEADSET_MIC, .name = "alc255-dell-headset"},
11610 {.id = ALC295_FIXUP_HP_X360, .name = "alc295-hp-x360"},
11611 {.id = ALC225_FIXUP_HEADSET_JACK, .name = "alc-headset-jack"},
11612 {.id = ALC295_FIXUP_CHROME_BOOK, .name = "alc-chrome-book"},
11613 {.id = ALC256_FIXUP_CHROME_BOOK, .name = "alc-2024y-chromebook"},
11614 {.id = ALC299_FIXUP_PREDATOR_SPK, .name = "predator-spk"},
11615 {.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"},
11616 {.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"},
11617 {.id = ALC298_FIXUP_SAMSUNG_AMP, .name = "alc298-samsung-amp"},
11618 {.id = ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS, .name = "alc298-samsung-amp-v2-2-amps"},
11619 {.id = ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS, .name = "alc298-samsung-amp-v2-4-amps"},
11620 {.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"},
11621 {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
11622 {.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"},
11623 {.id = ALC245_FIXUP_HP_X360_AMP, .name = "alc245-hp-x360-amp"},
11624 {.id = ALC295_FIXUP_HP_OMEN, .name = "alc295-hp-omen"},
11625 {.id = ALC285_FIXUP_HP_SPECTRE_X360, .name = "alc285-hp-spectre-x360"},
11626 {.id = ALC285_FIXUP_HP_SPECTRE_X360_EB1, .name = "alc285-hp-spectre-x360-eb1"},
11627 {.id = ALC285_FIXUP_HP_SPECTRE_X360_DF1, .name = "alc285-hp-spectre-x360-df1"},
11628 {.id = ALC285_FIXUP_HP_ENVY_X360, .name = "alc285-hp-envy-x360"},
11629 {.id = ALC287_FIXUP_IDEAPAD_BASS_SPK_AMP, .name = "alc287-ideapad-bass-spk-amp"},
11630 {.id = ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN, .name = "alc287-yoga9-bass-spk-pin"},
11631 {.id = ALC623_FIXUP_LENOVO_THINKSTATION_P340, .name = "alc623-lenovo-thinkstation-p340"},
11632 {.id = ALC255_FIXUP_ACER_HEADPHONE_AND_MIC, .name = "alc255-acer-headphone-and-mic"},
11633 {.id = ALC285_FIXUP_HP_GPIO_AMP_INIT, .name = "alc285-hp-amp-init"},
11634 {.id = ALC236_FIXUP_LENOVO_INV_DMIC, .name = "alc236-fixup-lenovo-inv-mic"},
11635 {.id = ALC2XX_FIXUP_HEADSET_MIC, .name = "alc2xx-fixup-headset-mic"},
11639 {0x21, 0x04211020}
11642 {0x12, 0x90a60140}, \
11643 {0x14, 0x90170110}, \
11644 {0x21, 0x02211020}
11647 {0x14, 0x90170110}
11650 {0x12, 0x99a30130}
11653 {0x14, 0x90170110}, \
11654 {0x15, 0x0221401f}
11657 {0x12, 0xb7a60130}, \
11658 {0x14, 0x90170110}, \
11659 {0x21, 0x04211020}
11662 {0x12, 0x90a60130}, \
11663 {0x21, 0x03211020}
11666 SND_HDA_PIN_QUIRK(0x10ec0221, 0x103c, "HP Workstation", ALC221_FIXUP_HP_HEADSET_MIC,
11667 {0x14, 0x01014020},
11668 {0x17, 0x90170110},
11669 {0x18, 0x02a11030},
11670 {0x19, 0x0181303F},
11671 {0x21, 0x0221102f}),
11672 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1025, "Acer", ALC255_FIXUP_ACER_MIC_NO_PRESENCE,
11673 {0x12, 0x90a601c0},
11674 {0x14, 0x90171120},
11675 {0x21, 0x02211030}),
11676 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1043, "ASUS", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE,
11677 {0x14, 0x90170110},
11678 {0x1b, 0x90a70130},
11679 {0x21, 0x03211020}),
11680 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1043, "ASUS", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE,
11681 {0x1a, 0x90a70130},
11682 {0x1b, 0x90170110},
11683 {0x21, 0x03211020}),
11684 SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
11686 {0x12, 0xb7a60130},
11687 {0x14, 0x901701a0}),
11688 SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
11690 {0x12, 0xb7a60130},
11691 {0x14, 0x901701b0}),
11692 SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
11694 {0x12, 0xb7a60150},
11695 {0x14, 0x901701a0}),
11696 SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
11698 {0x12, 0xb7a60150},
11699 {0x14, 0x901701b0}),
11700 SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
11702 {0x12, 0xb7a60130},
11703 {0x1b, 0x90170110}),
11704 SND_HDA_PIN_QUIRK(0x10ec0233, 0x8086, "Intel NUC Skull Canyon", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
11705 {0x1b, 0x01111010},
11706 {0x1e, 0x01451130},
11707 {0x21, 0x02211020}),
11708 SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY,
11709 {0x12, 0x90a60140},
11710 {0x14, 0x90170110},
11711 {0x19, 0x02a11030},
11712 {0x21, 0x02211020}),
11713 SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
11714 {0x14, 0x90170110},
11715 {0x19, 0x02a11030},
11716 {0x1a, 0x02a11040},
11717 {0x1b, 0x01014020},
11718 {0x21, 0x0221101f}),
11719 SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
11720 {0x14, 0x90170110},
11721 {0x19, 0x02a11030},
11722 {0x1a, 0x02a11040},
11723 {0x1b, 0x01011020},
11724 {0x21, 0x0221101f}),
11725 SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
11726 {0x14, 0x90170110},
11727 {0x19, 0x02a11020},
11728 {0x1a, 0x02a11030},
11729 {0x21, 0x0221101f}),
11730 SND_HDA_PIN_QUIRK(0x10ec0236, 0x1028, "Dell", ALC236_FIXUP_DELL_AIO_HEADSET_MIC,
11731 {0x21, 0x02211010}),
11732 SND_HDA_PIN_QUIRK(0x10ec0236, 0x103c, "HP", ALC256_FIXUP_HP_HEADSET_MIC,
11733 {0x14, 0x90170110},
11734 {0x19, 0x02a11020},
11735 {0x21, 0x02211030}),
11736 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL2_MIC_NO_PRESENCE,
11737 {0x14, 0x90170110},
11738 {0x21, 0x02211020}),
11739 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11740 {0x14, 0x90170130},
11741 {0x21, 0x02211040}),
11742 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11743 {0x12, 0x90a60140},
11744 {0x14, 0x90170110},
11745 {0x21, 0x02211020}),
11746 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11747 {0x12, 0x90a60160},
11748 {0x14, 0x90170120},
11749 {0x21, 0x02211030}),
11750 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11751 {0x14, 0x90170110},
11752 {0x1b, 0x02011020},
11753 {0x21, 0x0221101f}),
11754 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11755 {0x14, 0x90170110},
11756 {0x1b, 0x01011020},
11757 {0x21, 0x0221101f}),
11758 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11759 {0x14, 0x90170130},
11760 {0x1b, 0x01014020},
11761 {0x21, 0x0221103f}),
11762 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11763 {0x14, 0x90170130},
11764 {0x1b, 0x01011020},
11765 {0x21, 0x0221103f}),
11766 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11767 {0x14, 0x90170130},
11768 {0x1b, 0x02011020},
11769 {0x21, 0x0221103f}),
11770 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11771 {0x14, 0x90170150},
11772 {0x1b, 0x02011020},
11773 {0x21, 0x0221105f}),
11774 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11775 {0x14, 0x90170110},
11776 {0x1b, 0x01014020},
11777 {0x21, 0x0221101f}),
11778 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11779 {0x12, 0x90a60160},
11780 {0x14, 0x90170120},
11781 {0x17, 0x90170140},
11782 {0x21, 0x0321102f}),
11783 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11784 {0x12, 0x90a60160},
11785 {0x14, 0x90170130},
11786 {0x21, 0x02211040}),
11787 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11788 {0x12, 0x90a60160},
11789 {0x14, 0x90170140},
11790 {0x21, 0x02211050}),
11791 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11792 {0x12, 0x90a60170},
11793 {0x14, 0x90170120},
11794 {0x21, 0x02211030}),
11795 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11796 {0x12, 0x90a60170},
11797 {0x14, 0x90170130},
11798 {0x21, 0x02211040}),
11799 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11800 {0x12, 0x90a60170},
11801 {0x14, 0x90171130},
11802 {0x21, 0x02211040}),
11803 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11804 {0x12, 0x90a60170},
11805 {0x14, 0x90170140},
11806 {0x21, 0x02211050}),
11807 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell Inspiron 5548", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11808 {0x12, 0x90a60180},
11809 {0x14, 0x90170130},
11810 {0x21, 0x02211040}),
11811 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell Inspiron 5565", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11812 {0x12, 0x90a60180},
11813 {0x14, 0x90170120},
11814 {0x21, 0x02211030}),
11815 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11816 {0x1b, 0x01011020},
11817 {0x21, 0x02211010}),
11818 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC256_FIXUP_ASUS_MIC,
11819 {0x14, 0x90170110},
11820 {0x1b, 0x90a70130},
11821 {0x21, 0x04211020}),
11822 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC256_FIXUP_ASUS_MIC,
11823 {0x14, 0x90170110},
11824 {0x1b, 0x90a70130},
11825 {0x21, 0x03211020}),
11826 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE,
11827 {0x12, 0x90a60130},
11828 {0x14, 0x90170110},
11829 {0x21, 0x03211020}),
11830 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE,
11831 {0x12, 0x90a60130},
11832 {0x14, 0x90170110},
11833 {0x21, 0x04211020}),
11834 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE,
11835 {0x1a, 0x90a70130},
11836 {0x1b, 0x90170110},
11837 {0x21, 0x03211020}),
11838 SND_HDA_PIN_QUIRK(0x10ec0256, 0x103c, "HP", ALC256_FIXUP_HP_HEADSET_MIC,
11839 {0x14, 0x90170110},
11840 {0x19, 0x02a11020},
11841 {0x21, 0x0221101f}),
11842 SND_HDA_PIN_QUIRK(0x10ec0274, 0x103c, "HP", ALC274_FIXUP_HP_HEADSET_MIC,
11843 {0x17, 0x90170110},
11844 {0x19, 0x03a11030},
11845 {0x21, 0x03211020}),
11846 SND_HDA_PIN_QUIRK(0x10ec0280, 0x103c, "HP", ALC280_FIXUP_HP_GPIO4,
11847 {0x12, 0x90a60130},
11848 {0x14, 0x90170110},
11849 {0x15, 0x0421101f},
11850 {0x1a, 0x04a11020}),
11851 SND_HDA_PIN_QUIRK(0x10ec0280, 0x103c, "HP", ALC269_FIXUP_HP_GPIO_MIC1_LED,
11852 {0x12, 0x90a60140},
11853 {0x14, 0x90170110},
11854 {0x15, 0x0421101f},
11855 {0x18, 0x02811030},
11856 {0x1a, 0x04a1103f},
11857 {0x1b, 0x02011020}),
11858 SND_HDA_PIN_QUIRK(0x10ec0282, 0x103c, "HP 15 Touchsmart", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11860 {0x12, 0x99a30130},
11861 {0x19, 0x03a11020},
11862 {0x21, 0x0321101f}),
11863 SND_HDA_PIN_QUIRK(0x10ec0282, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11865 {0x12, 0x99a30130},
11866 {0x19, 0x03a11020},
11867 {0x21, 0x03211040}),
11868 SND_HDA_PIN_QUIRK(0x10ec0282, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11870 {0x12, 0x99a30130},
11871 {0x19, 0x03a11030},
11872 {0x21, 0x03211020}),
11873 SND_HDA_PIN_QUIRK(0x10ec0282, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11875 {0x12, 0x99a30130},
11876 {0x19, 0x04a11020},
11877 {0x21, 0x0421101f}),
11878 SND_HDA_PIN_QUIRK(0x10ec0282, 0x103c, "HP", ALC269_FIXUP_HP_LINE1_MIC1_LED,
11880 {0x12, 0x90a60140},
11881 {0x19, 0x04a11030},
11882 {0x21, 0x04211020}),
11883 SND_HDA_PIN_QUIRK(0x10ec0282, 0x1025, "Acer", ALC282_FIXUP_ACER_DISABLE_LINEOUT,
11885 {0x12, 0x90a609c0},
11886 {0x18, 0x03a11830},
11887 {0x19, 0x04a19831},
11888 {0x1a, 0x0481303f},
11889 {0x1b, 0x04211020},
11890 {0x21, 0x0321101f}),
11891 SND_HDA_PIN_QUIRK(0x10ec0282, 0x1025, "Acer", ALC282_FIXUP_ACER_DISABLE_LINEOUT,
11893 {0x12, 0x90a60940},
11894 {0x18, 0x03a11830},
11895 {0x19, 0x04a19831},
11896 {0x1a, 0x0481303f},
11897 {0x1b, 0x04211020},
11898 {0x21, 0x0321101f}),
11899 SND_HDA_PIN_QUIRK(0x10ec0283, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
11901 {0x12, 0x90a60130},
11902 {0x21, 0x0321101f}),
11903 SND_HDA_PIN_QUIRK(0x10ec0283, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
11904 {0x12, 0x90a60160},
11905 {0x14, 0x90170120},
11906 {0x21, 0x02211030}),
11907 SND_HDA_PIN_QUIRK(0x10ec0283, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
11909 {0x12, 0x90a60130},
11910 {0x19, 0x03a11020},
11911 {0x21, 0x0321101f}),
11912 SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE,
11913 {0x12, 0x90a60130},
11914 {0x14, 0x90170110},
11915 {0x19, 0x04a11040},
11916 {0x21, 0x04211020}),
11917 SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE,
11918 {0x14, 0x90170110},
11919 {0x19, 0x04a11040},
11920 {0x1d, 0x40600001},
11921 {0x21, 0x04211020}),
11922 SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK,
11923 {0x14, 0x90170110},
11924 {0x19, 0x04a11040},
11925 {0x21, 0x04211020}),
11926 SND_HDA_PIN_QUIRK(0x10ec0287, 0x17aa, "Lenovo", ALC285_FIXUP_THINKPAD_HEADSET_JACK,
11927 {0x14, 0x90170110},
11928 {0x17, 0x90170111},
11929 {0x19, 0x03a11030},
11930 {0x21, 0x03211020}),
11931 SND_HDA_PIN_QUIRK(0x10ec0287, 0x17aa, "Lenovo", ALC287_FIXUP_THINKPAD_I2S_SPK,
11932 {0x17, 0x90170110},
11933 {0x19, 0x03a11030},
11934 {0x21, 0x03211020}),
11935 SND_HDA_PIN_QUIRK(0x10ec0287, 0x17aa, "Lenovo", ALC287_FIXUP_THINKPAD_I2S_SPK,
11936 {0x17, 0x90170110}, /* 0x231f with RTK I2S AMP */
11937 {0x19, 0x04a11040},
11938 {0x21, 0x04211020}),
11939 SND_HDA_PIN_QUIRK(0x10ec0286, 0x1025, "Acer", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE,
11940 {0x12, 0x90a60130},
11941 {0x17, 0x90170110},
11942 {0x21, 0x02211020}),
11943 SND_HDA_PIN_QUIRK(0x10ec0288, 0x1028, "Dell", ALC288_FIXUP_DELL1_MIC_NO_PRESENCE,
11944 {0x12, 0x90a60120},
11945 {0x14, 0x90170110},
11946 {0x21, 0x0321101f}),
11947 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11949 {0x15, 0x04211040},
11950 {0x18, 0x90170112},
11951 {0x1a, 0x04a11020}),
11952 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11954 {0x15, 0x04211040},
11955 {0x18, 0x90170110},
11956 {0x1a, 0x04a11020}),
11957 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11959 {0x15, 0x0421101f},
11960 {0x1a, 0x04a11020}),
11961 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11963 {0x15, 0x04211020},
11964 {0x1a, 0x04a11040}),
11965 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11967 {0x14, 0x90170110},
11968 {0x15, 0x04211020},
11969 {0x1a, 0x04a11040}),
11970 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11972 {0x14, 0x90170110},
11973 {0x15, 0x04211020},
11974 {0x1a, 0x04a11020}),
11975 SND_HDA_PIN_QUIRK(0x10ec0290, 0x103c, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1,
11977 {0x14, 0x90170110},
11978 {0x15, 0x0421101f},
11979 {0x1a, 0x04a11020}),
11980 SND_HDA_PIN_QUIRK(0x10ec0292, 0x1028, "Dell", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE,
11982 {0x12, 0x90a60140},
11983 {0x16, 0x01014020},
11984 {0x19, 0x01a19030}),
11985 SND_HDA_PIN_QUIRK(0x10ec0292, 0x1028, "Dell", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE,
11987 {0x12, 0x90a60140},
11988 {0x16, 0x01014020},
11989 {0x18, 0x02a19031},
11990 {0x19, 0x01a1903e}),
11991 SND_HDA_PIN_QUIRK(0x10ec0292, 0x1028, "Dell", ALC269_FIXUP_DELL3_MIC_NO_PRESENCE,
11993 {0x12, 0x90a60140}),
11994 SND_HDA_PIN_QUIRK(0x10ec0293, 0x1028, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE,
11996 {0x13, 0x90a60140},
11997 {0x16, 0x21014020},
11998 {0x19, 0x21a19030}),
11999 SND_HDA_PIN_QUIRK(0x10ec0293, 0x1028, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE,
12001 {0x13, 0x90a60140}),
12002 SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_HPE,
12003 {0x17, 0x90170110},
12004 {0x21, 0x04211020}),
12005 SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_MIC,
12006 {0x14, 0x90170110},
12007 {0x1b, 0x90a70130},
12008 {0x21, 0x04211020}),
12009 SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_SPK,
12010 {0x12, 0x90a60130},
12011 {0x17, 0x90170110},
12012 {0x21, 0x03211020}),
12013 SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_SPK,
12014 {0x12, 0x90a60130},
12015 {0x17, 0x90170110},
12016 {0x21, 0x04211020}),
12017 SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC294_FIXUP_ASUS_SPK,
12018 {0x12, 0x90a60130},
12019 {0x17, 0x90170110},
12020 {0x21, 0x03211020}),
12021 SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
12022 {0x12, 0x90a60120},
12023 {0x17, 0x90170110},
12024 {0x21, 0x04211030}),
12025 SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
12026 {0x12, 0x90a60130},
12027 {0x17, 0x90170110},
12028 {0x21, 0x03211020}),
12029 SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE,
12030 {0x12, 0x90a60130},
12031 {0x17, 0x90170110},
12032 {0x21, 0x03211020}),
12033 SND_HDA_PIN_QUIRK(0x10ec0298, 0x1028, "Dell", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE,
12035 {0x17, 0x90170110}),
12036 SND_HDA_PIN_QUIRK(0x10ec0298, 0x1028, "Dell", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE,
12038 {0x17, 0x90170140}),
12039 SND_HDA_PIN_QUIRK(0x10ec0298, 0x1028, "Dell", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE,
12041 {0x17, 0x90170150}),
12042 SND_HDA_PIN_QUIRK(0x10ec0298, 0x1028, "Dell", ALC298_FIXUP_SPK_VOLUME,
12043 {0x12, 0xb7a60140},
12044 {0x13, 0xb7a60150},
12045 {0x17, 0x90170110},
12046 {0x1a, 0x03011020},
12047 {0x21, 0x03211030}),
12048 SND_HDA_PIN_QUIRK(0x10ec0298, 0x1028, "Dell", ALC298_FIXUP_ALIENWARE_MIC_NO_PRESENCE,
12049 {0x12, 0xb7a60140},
12050 {0x17, 0x90170110},
12051 {0x1a, 0x03a11030},
12052 {0x21, 0x03211020}),
12053 SND_HDA_PIN_QUIRK(0x10ec0299, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
12055 {0x12, 0xb7a60130},
12056 {0x17, 0x90170110}),
12057 SND_HDA_PIN_QUIRK(0x10ec0623, 0x17aa, "Lenovo", ALC283_FIXUP_HEADSET_MIC,
12058 {0x14, 0x01014010},
12059 {0x17, 0x90170120},
12060 {0x18, 0x02a11030},
12061 {0x19, 0x02a1103f},
12062 {0x21, 0x0221101f}),
12070 * at most one tbl is allowed to define for the same vendor and same codec
12073 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1025, "Acer", ALC2XX_FIXUP_HEADSET_MIC,
12074 {0x19, 0x40000000}),
12075 SND_HDA_PIN_QUIRK(0x10ec0289, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
12076 {0x19, 0x40000000},
12077 {0x1b, 0x40000000}),
12078 SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET,
12079 {0x19, 0x40000000},
12080 {0x1b, 0x40000000}),
12081 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
12082 {0x19, 0x40000000},
12083 {0x1a, 0x40000000}),
12084 SND_HDA_PIN_QUIRK(0x10ec0236, 0x1028, "Dell", ALC255_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
12085 {0x19, 0x40000000},
12086 {0x1a, 0x40000000}),
12087 SND_HDA_PIN_QUIRK(0x10ec0274, 0x1028, "Dell", ALC269_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
12088 {0x19, 0x40000000},
12089 {0x1a, 0x40000000}),
12090 SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC2XX_FIXUP_HEADSET_MIC,
12091 {0x19, 0x40000000}),
12092 SND_HDA_PIN_QUIRK(0x10ec0255, 0x1558, "Clevo", ALC2XX_FIXUP_HEADSET_MIC,
12093 {0x19, 0x40000000}),
12097 static void alc269_fill_coef(struct hda_codec *codec) in alc269_fill_coef() argument
12099 struct alc_spec *spec = codec->spec; in alc269_fill_coef()
12102 if (spec->codec_variant != ALC269_TYPE_ALC269VB) in alc269_fill_coef()
12105 if ((alc_get_coef0(codec) & 0x00ff) < 0x015) { in alc269_fill_coef()
12106 alc_write_coef_idx(codec, 0xf, 0x960b); in alc269_fill_coef()
12107 alc_write_coef_idx(codec, 0xe, 0x8817); in alc269_fill_coef()
12110 if ((alc_get_coef0(codec) & 0x00ff) == 0x016) { in alc269_fill_coef()
12111 alc_write_coef_idx(codec, 0xf, 0x960b); in alc269_fill_coef()
12112 alc_write_coef_idx(codec, 0xe, 0x8814); in alc269_fill_coef()
12115 if ((alc_get_coef0(codec) & 0x00ff) == 0x017) { in alc269_fill_coef()
12117 alc_update_coef_idx(codec, 0x04, 0, 1<<11); in alc269_fill_coef()
12120 if ((alc_get_coef0(codec) & 0x00ff) == 0x018) { in alc269_fill_coef()
12121 val = alc_read_coef_idx(codec, 0xd); in alc269_fill_coef()
12122 if (val != -1 && (val & 0x0c00) >> 10 != 0x1) { in alc269_fill_coef()
12124 alc_write_coef_idx(codec, 0xd, val | (1<<10)); in alc269_fill_coef()
12126 val = alc_read_coef_idx(codec, 0x17); in alc269_fill_coef()
12127 if (val != -1 && (val & 0x01c0) >> 6 != 0x4) { in alc269_fill_coef()
12129 alc_write_coef_idx(codec, 0x17, val | (1<<7)); in alc269_fill_coef()
12134 alc_update_coef_idx(codec, 0x4, 0, 1<<11); in alc269_fill_coef()
12139 static int patch_alc269(struct hda_codec *codec) in patch_alc269() argument
12144 err = alc_alloc_spec(codec, 0x0b); in patch_alc269()
12145 if (err < 0) in patch_alc269()
12148 spec = codec->spec; in patch_alc269()
12149 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc269()
12150 codec->power_save_node = 0; in patch_alc269()
12151 spec->en_3kpull_low = true; in patch_alc269()
12153 codec->patch_ops.suspend = alc269_suspend; in patch_alc269()
12154 codec->patch_ops.resume = alc269_resume; in patch_alc269()
12155 spec->shutup = alc_default_shutup; in patch_alc269()
12156 spec->init_hook = alc_default_init; in patch_alc269()
12158 switch (codec->core.vendor_id) { in patch_alc269()
12159 case 0x10ec0269: in patch_alc269()
12160 spec->codec_variant = ALC269_TYPE_ALC269VA; in patch_alc269()
12161 switch (alc_get_coef0(codec) & 0x00f0) { in patch_alc269()
12162 case 0x0010: in patch_alc269()
12163 if (codec->bus->pci && in patch_alc269()
12164 codec->bus->pci->subsystem_vendor == 0x1025 && in patch_alc269()
12165 spec->cdefine.platform_type == 1) in patch_alc269()
12166 err = alc_codec_rename(codec, "ALC271X"); in patch_alc269()
12167 spec->codec_variant = ALC269_TYPE_ALC269VB; in patch_alc269()
12169 case 0x0020: in patch_alc269()
12170 if (codec->bus->pci && in patch_alc269()
12171 codec->bus->pci->subsystem_vendor == 0x17aa && in patch_alc269()
12172 codec->bus->pci->subsystem_device == 0x21f3) in patch_alc269()
12173 err = alc_codec_rename(codec, "ALC3202"); in patch_alc269()
12174 spec->codec_variant = ALC269_TYPE_ALC269VC; in patch_alc269()
12176 case 0x0030: in patch_alc269()
12177 spec->codec_variant = ALC269_TYPE_ALC269VD; in patch_alc269()
12180 alc_fix_pll_init(codec, 0x20, 0x04, 15); in patch_alc269()
12182 if (err < 0) in patch_alc269()
12184 spec->shutup = alc269_shutup; in patch_alc269()
12185 spec->init_hook = alc269_fill_coef; in patch_alc269()
12186 alc269_fill_coef(codec); in patch_alc269()
12189 case 0x10ec0280: in patch_alc269()
12190 case 0x10ec0290: in patch_alc269()
12191 spec->codec_variant = ALC269_TYPE_ALC280; in patch_alc269()
12193 case 0x10ec0282: in patch_alc269()
12194 spec->codec_variant = ALC269_TYPE_ALC282; in patch_alc269()
12195 spec->shutup = alc282_shutup; in patch_alc269()
12196 spec->init_hook = alc282_init; in patch_alc269()
12198 case 0x10ec0233: in patch_alc269()
12199 case 0x10ec0283: in patch_alc269()
12200 spec->codec_variant = ALC269_TYPE_ALC283; in patch_alc269()
12201 spec->shutup = alc283_shutup; in patch_alc269()
12202 spec->init_hook = alc283_init; in patch_alc269()
12204 case 0x10ec0284: in patch_alc269()
12205 case 0x10ec0292: in patch_alc269()
12206 spec->codec_variant = ALC269_TYPE_ALC284; in patch_alc269()
12208 case 0x10ec0293: in patch_alc269()
12209 spec->codec_variant = ALC269_TYPE_ALC293; in patch_alc269()
12211 case 0x10ec0286: in patch_alc269()
12212 case 0x10ec0288: in patch_alc269()
12213 spec->codec_variant = ALC269_TYPE_ALC286; in patch_alc269()
12215 case 0x10ec0298: in patch_alc269()
12216 spec->codec_variant = ALC269_TYPE_ALC298; in patch_alc269()
12218 case 0x10ec0235: in patch_alc269()
12219 case 0x10ec0255: in patch_alc269()
12220 spec->codec_variant = ALC269_TYPE_ALC255; in patch_alc269()
12221 spec->shutup = alc256_shutup; in patch_alc269()
12222 spec->init_hook = alc256_init; in patch_alc269()
12224 case 0x10ec0230: in patch_alc269()
12225 case 0x10ec0236: in patch_alc269()
12226 case 0x10ec0256: in patch_alc269()
12227 case 0x19e58326: in patch_alc269()
12228 spec->codec_variant = ALC269_TYPE_ALC256; in patch_alc269()
12229 spec->shutup = alc256_shutup; in patch_alc269()
12230 spec->init_hook = alc256_init; in patch_alc269()
12231 spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ in patch_alc269()
12232 if (codec->core.vendor_id == 0x10ec0236 && in patch_alc269()
12233 codec->bus->pci->vendor != PCI_VENDOR_ID_AMD) in patch_alc269()
12234 spec->en_3kpull_low = false; in patch_alc269()
12236 case 0x10ec0257: in patch_alc269()
12237 spec->codec_variant = ALC269_TYPE_ALC257; in patch_alc269()
12238 spec->shutup = alc256_shutup; in patch_alc269()
12239 spec->init_hook = alc256_init; in patch_alc269()
12240 spec->gen.mixer_nid = 0; in patch_alc269()
12241 spec->en_3kpull_low = false; in patch_alc269()
12243 case 0x10ec0215: in patch_alc269()
12244 case 0x10ec0245: in patch_alc269()
12245 case 0x10ec0285: in patch_alc269()
12246 case 0x10ec0289: in patch_alc269()
12247 if (alc_get_coef0(codec) & 0x0010) in patch_alc269()
12248 spec->codec_variant = ALC269_TYPE_ALC245; in patch_alc269()
12250 spec->codec_variant = ALC269_TYPE_ALC215; in patch_alc269()
12251 spec->shutup = alc225_shutup; in patch_alc269()
12252 spec->init_hook = alc225_init; in patch_alc269()
12253 spec->gen.mixer_nid = 0; in patch_alc269()
12255 case 0x10ec0225: in patch_alc269()
12256 case 0x10ec0295: in patch_alc269()
12257 case 0x10ec0299: in patch_alc269()
12258 spec->codec_variant = ALC269_TYPE_ALC225; in patch_alc269()
12259 spec->shutup = alc225_shutup; in patch_alc269()
12260 spec->init_hook = alc225_init; in patch_alc269()
12261 spec->gen.mixer_nid = 0; /* no loopback on ALC225, ALC295 and ALC299 */ in patch_alc269()
12263 case 0x10ec0287: in patch_alc269()
12264 spec->codec_variant = ALC269_TYPE_ALC287; in patch_alc269()
12265 spec->shutup = alc225_shutup; in patch_alc269()
12266 spec->init_hook = alc225_init; in patch_alc269()
12267 spec->gen.mixer_nid = 0; /* no loopback on ALC287 */ in patch_alc269()
12269 case 0x10ec0234: in patch_alc269()
12270 case 0x10ec0274: in patch_alc269()
12271 case 0x10ec0294: in patch_alc269()
12272 spec->codec_variant = ALC269_TYPE_ALC294; in patch_alc269()
12273 spec->gen.mixer_nid = 0; /* ALC2x4 does not have any loopback mixer path */ in patch_alc269()
12274 alc_update_coef_idx(codec, 0x6b, 0x0018, (1<<4) | (1<<3)); /* UAJ MIC Vref control by verb */ in patch_alc269()
12275 spec->init_hook = alc294_init; in patch_alc269()
12277 case 0x10ec0300: in patch_alc269()
12278 spec->codec_variant = ALC269_TYPE_ALC300; in patch_alc269()
12279 spec->gen.mixer_nid = 0; /* no loopback on ALC300 */ in patch_alc269()
12281 case 0x10ec0222: in patch_alc269()
12282 case 0x10ec0623: in patch_alc269()
12283 spec->codec_variant = ALC269_TYPE_ALC623; in patch_alc269()
12284 spec->shutup = alc222_shutup; in patch_alc269()
12285 spec->init_hook = alc222_init; in patch_alc269()
12287 case 0x10ec0700: in patch_alc269()
12288 case 0x10ec0701: in patch_alc269()
12289 case 0x10ec0703: in patch_alc269()
12290 case 0x10ec0711: in patch_alc269()
12291 spec->codec_variant = ALC269_TYPE_ALC700; in patch_alc269()
12292 spec->gen.mixer_nid = 0; /* ALC700 does not have any loopback mixer path */ in patch_alc269()
12293 alc_update_coef_idx(codec, 0x4a, 1 << 15, 0); /* Combo jack auto trigger control */ in patch_alc269()
12294 spec->init_hook = alc294_init; in patch_alc269()
12299 if (snd_hda_codec_read(codec, 0x51, 0, AC_VERB_PARAMETERS, 0) == 0x10ec5505) { in patch_alc269()
12300 spec->has_alc5505_dsp = 1; in patch_alc269()
12301 spec->init_hook = alc5505_dsp_init; in patch_alc269()
12304 alc_pre_init(codec); in patch_alc269()
12306 snd_hda_pick_fixup(codec, alc269_fixup_models, in patch_alc269()
12312 if (codec->fixup_id == ALC282_FIXUP_ASUS_TX300 && in patch_alc269()
12313 codec->core.vendor_id == 0x10ec0294) { in patch_alc269()
12314 codec_dbg(codec, "Clear wrong fixup for ASUS ROG Strix G17\n"); in patch_alc269()
12315 codec->fixup_id = HDA_FIXUP_ID_NOT_SET; in patch_alc269()
12318 snd_hda_pick_pin_fixup(codec, alc269_pin_fixup_tbl, alc269_fixups, true); in patch_alc269()
12319 snd_hda_pick_pin_fixup(codec, alc269_fallback_pin_fixup_tbl, alc269_fixups, false); in patch_alc269()
12320 snd_hda_pick_fixup(codec, NULL, alc269_fixup_vendor_tbl, in patch_alc269()
12327 find_cirrus_companion_amps(codec); in patch_alc269()
12329 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc269()
12331 alc_auto_parse_customize_define(codec); in patch_alc269()
12333 if (has_cdefine_beep(codec)) in patch_alc269()
12334 spec->gen.beep_nid = 0x01; in patch_alc269()
12337 err = alc269_parse_auto_config(codec); in patch_alc269()
12338 if (err < 0) in patch_alc269()
12341 if (!spec->gen.no_analog && spec->gen.beep_nid && spec->gen.mixer_nid) { in patch_alc269()
12342 err = set_beep_amp(spec, spec->gen.mixer_nid, 0x04, HDA_INPUT); in patch_alc269()
12343 if (err < 0) in patch_alc269()
12347 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc269()
12349 return 0; in patch_alc269()
12352 alc_free(codec); in patch_alc269()
12360 static int alc861_parse_auto_config(struct hda_codec *codec) in alc861_parse_auto_config() argument
12362 static const hda_nid_t alc861_ignore[] = { 0x1d, 0 }; in alc861_parse_auto_config()
12363 static const hda_nid_t alc861_ssids[] = { 0x0e, 0x0f, 0x0b, 0 }; in alc861_parse_auto_config()
12364 return alc_parse_auto_config(codec, alc861_ignore, alc861_ssids); in alc861_parse_auto_config()
12376 /* On some laptops, VREF of pin 0x0f is abused for controlling the main amp */
12377 static void alc861_fixup_asus_amp_vref_0f(struct hda_codec *codec, in alc861_fixup_asus_amp_vref_0f() argument
12380 struct alc_spec *spec = codec->spec; in alc861_fixup_asus_amp_vref_0f()
12385 val = snd_hda_codec_get_pin_target(codec, 0x0f); in alc861_fixup_asus_amp_vref_0f()
12389 snd_hda_set_pin_ctl(codec, 0x0f, val); in alc861_fixup_asus_amp_vref_0f()
12390 spec->gen.keep_vref_in_automute = 1; in alc861_fixup_asus_amp_vref_0f()
12393 /* suppress the jack-detection */
12394 static void alc_fixup_no_jack_detect(struct hda_codec *codec, in alc_fixup_no_jack_detect() argument
12398 codec->no_jack_detect = 1; in alc_fixup_no_jack_detect()
12405 { 0x0b, 0x0221101f }, /* HP */
12406 { 0x0f, 0x90170310 }, /* speaker */
12427 /* ASUS W7J needs a magic pin setup on unused NID 0x10
12430 {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24},
12437 SND_PCI_QUIRK(0x1043, 0x1253, "ASUS W7J", ALC660_FIXUP_ASUS_W7J),
12438 SND_PCI_QUIRK(0x1043, 0x1263, "ASUS Z35HL", ALC660_FIXUP_ASUS_W7J),
12439 SND_PCI_QUIRK(0x1043, 0x1393, "ASUS A6Rp", ALC861_FIXUP_ASUS_A6RP),
12440 SND_PCI_QUIRK_VENDOR(0x1043, "ASUS laptop", ALC861_FIXUP_AMP_VREF_0F),
12441 SND_PCI_QUIRK(0x1462, 0x7254, "HP DX2200", ALC861_FIXUP_NO_JACK_DETECT),
12442 SND_PCI_QUIRK_VENDOR(0x1584, "Haier/Uniwill", ALC861_FIXUP_AMP_VREF_0F),
12443 SND_PCI_QUIRK(0x1734, 0x10c7, "FSC Amilo Pi1505", ALC861_FIXUP_FSC_AMILO_PI1505),
12449 static int patch_alc861(struct hda_codec *codec) in patch_alc861() argument
12454 err = alc_alloc_spec(codec, 0x15); in patch_alc861()
12455 if (err < 0) in patch_alc861()
12458 spec = codec->spec; in patch_alc861()
12459 if (has_cdefine_beep(codec)) in patch_alc861()
12460 spec->gen.beep_nid = 0x23; in patch_alc861()
12462 spec->power_hook = alc_power_eapd; in patch_alc861()
12464 alc_pre_init(codec); in patch_alc861()
12466 snd_hda_pick_fixup(codec, NULL, alc861_fixup_tbl, alc861_fixups); in patch_alc861()
12467 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc861()
12470 err = alc861_parse_auto_config(codec); in patch_alc861()
12471 if (err < 0) in patch_alc861()
12474 if (!spec->gen.no_analog) { in patch_alc861()
12475 err = set_beep_amp(spec, 0x23, 0, HDA_OUTPUT); in patch_alc861()
12476 if (err < 0) in patch_alc861()
12480 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc861()
12482 return 0; in patch_alc861()
12485 alc_free(codec); in patch_alc861()
12490 * ALC861-VD support
12496 static int alc861vd_parse_auto_config(struct hda_codec *codec) in alc861vd_parse_auto_config() argument
12498 static const hda_nid_t alc861vd_ignore[] = { 0x1d, 0 }; in alc861vd_parse_auto_config()
12499 static const hda_nid_t alc861vd_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc861vd_parse_auto_config()
12500 return alc_parse_auto_config(codec, alc861vd_ignore, alc861vd_ssids); in alc861vd_parse_auto_config()
12509 static void alc861vd_fixup_dallas(struct hda_codec *codec, in alc861vd_fixup_dallas() argument
12513 snd_hda_override_pin_caps(codec, 0x18, 0x00000734); in alc861vd_fixup_dallas()
12514 snd_hda_override_pin_caps(codec, 0x19, 0x0000073c); in alc861vd_fixup_dallas()
12519 static void alc660vd_fixup_asus_gpio1(struct hda_codec *codec, in alc660vd_fixup_asus_gpio1() argument
12522 struct alc_spec *spec = codec->spec; in alc660vd_fixup_asus_gpio1()
12525 spec->gpio_mask |= 0x02; in alc660vd_fixup_asus_gpio1()
12526 alc_fixup_gpio(codec, action, 0x01); in alc660vd_fixup_asus_gpio1()
12541 SND_PCI_QUIRK(0x103c, 0x30bf, "HP TX1000", ALC861VD_FIX_DALLAS),
12542 SND_PCI_QUIRK(0x1043, 0x1339, "ASUS A7-K", ALC660VD_FIX_ASUS_GPIO1),
12543 SND_PCI_QUIRK(0x1179, 0xff31, "Toshiba L30-149", ALC861VD_FIX_DALLAS),
12549 static int patch_alc861vd(struct hda_codec *codec) in patch_alc861vd() argument
12554 err = alc_alloc_spec(codec, 0x0b); in patch_alc861vd()
12555 if (err < 0) in patch_alc861vd()
12558 spec = codec->spec; in patch_alc861vd()
12559 if (has_cdefine_beep(codec)) in patch_alc861vd()
12560 spec->gen.beep_nid = 0x23; in patch_alc861vd()
12562 spec->shutup = alc_eapd_shutup; in patch_alc861vd()
12564 alc_pre_init(codec); in patch_alc861vd()
12566 snd_hda_pick_fixup(codec, NULL, alc861vd_fixup_tbl, alc861vd_fixups); in patch_alc861vd()
12567 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc861vd()
12570 err = alc861vd_parse_auto_config(codec); in patch_alc861vd()
12571 if (err < 0) in patch_alc861vd()
12574 if (!spec->gen.no_analog) { in patch_alc861vd()
12575 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc861vd()
12576 if (err < 0) in patch_alc861vd()
12580 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc861vd()
12582 return 0; in patch_alc861vd()
12585 alc_free(codec); in patch_alc861vd()
12595 * 6-channel independent captures.
12597 * In addition, an independent DAC for the multi-playback (not used in this
12605 static int alc662_parse_auto_config(struct hda_codec *codec) in alc662_parse_auto_config() argument
12607 static const hda_nid_t alc662_ignore[] = { 0x1d, 0 }; in alc662_parse_auto_config()
12608 static const hda_nid_t alc663_ssids[] = { 0x15, 0x1b, 0x14, 0x21 }; in alc662_parse_auto_config()
12609 static const hda_nid_t alc662_ssids[] = { 0x15, 0x1b, 0x14, 0 }; in alc662_parse_auto_config()
12612 if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 || in alc662_parse_auto_config()
12613 codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 || in alc662_parse_auto_config()
12614 codec->core.vendor_id == 0x10ec0671) in alc662_parse_auto_config()
12618 return alc_parse_auto_config(codec, alc662_ignore, ssids); in alc662_parse_auto_config()
12621 static void alc272_fixup_mario(struct hda_codec *codec, in alc272_fixup_mario() argument
12626 if (snd_hda_override_amp_caps(codec, 0x2, HDA_OUTPUT, in alc272_fixup_mario()
12627 (0x3b << AC_AMPCAP_OFFSET_SHIFT) | in alc272_fixup_mario()
12628 (0x3b << AC_AMPCAP_NUM_STEPS_SHIFT) | in alc272_fixup_mario()
12629 (0x03 << AC_AMPCAP_STEP_SIZE_SHIFT) | in alc272_fixup_mario()
12630 (0 << AC_AMPCAP_MUTE_SHIFT))) in alc272_fixup_mario()
12631 codec_warn(codec, "failed to override amp caps for NID 0x2\n"); in alc272_fixup_mario()
12644 static void alc_fixup_bass_chmap(struct hda_codec *codec, in alc_fixup_bass_chmap() argument
12648 struct alc_spec *spec = codec->spec; in alc_fixup_bass_chmap()
12649 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
12654 static unsigned int gpio_led_power_filter(struct hda_codec *codec, in gpio_led_power_filter() argument
12658 struct alc_spec *spec = codec->spec; in gpio_led_power_filter()
12659 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
12664 static void alc662_fixup_led_gpio1(struct hda_codec *codec, in alc662_fixup_led_gpio1() argument
12667 struct alc_spec *spec = codec->spec; in alc662_fixup_led_gpio1()
12669 alc_fixup_hp_gpio_led(codec, action, 0x01, 0); in alc662_fixup_led_gpio1()
12671 spec->mute_led_polarity = 1; in alc662_fixup_led_gpio1()
12672 codec->power_filter = gpio_led_power_filter; in alc662_fixup_led_gpio1()
12676 static void alc662_usi_automute_hook(struct hda_codec *codec, in alc662_usi_automute_hook() argument
12679 struct alc_spec *spec = codec->spec; in alc662_usi_automute_hook()
12682 snd_hda_gen_hp_automute(codec, jack); in alc662_usi_automute_hook()
12684 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc662_usi_automute_hook()
12686 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, in alc662_usi_automute_hook()
12690 static void alc662_fixup_usi_headset_mic(struct hda_codec *codec, in alc662_fixup_usi_headset_mic() argument
12693 struct alc_spec *spec = codec->spec; in alc662_fixup_usi_headset_mic()
12695 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc662_fixup_usi_headset_mic()
12696 spec->gen.hp_automute_hook = alc662_usi_automute_hook; in alc662_fixup_usi_headset_mic()
12700 static void alc662_aspire_ethos_mute_speakers(struct hda_codec *codec, in alc662_aspire_ethos_mute_speakers() argument
12703 /* surround speakers at 0x1b already get muted automatically when in alc662_aspire_ethos_mute_speakers()
12706 * 0x15 - front left/front right in alc662_aspire_ethos_mute_speakers()
12707 * 0x18 - front center/ LFE in alc662_aspire_ethos_mute_speakers()
12709 if (snd_hda_jack_detect_state(codec, 0x1b) == HDA_JACK_PRESENT) { in alc662_aspire_ethos_mute_speakers()
12710 snd_hda_set_pin_ctl_cache(codec, 0x15, 0); in alc662_aspire_ethos_mute_speakers()
12711 snd_hda_set_pin_ctl_cache(codec, 0x18, 0); in alc662_aspire_ethos_mute_speakers()
12713 snd_hda_set_pin_ctl_cache(codec, 0x15, PIN_OUT); in alc662_aspire_ethos_mute_speakers()
12714 snd_hda_set_pin_ctl_cache(codec, 0x18, PIN_OUT); in alc662_aspire_ethos_mute_speakers()
12718 static void alc662_fixup_aspire_ethos_hp(struct hda_codec *codec, in alc662_fixup_aspire_ethos_hp() argument
12721 /* Pin 0x1b: shared headphones jack and surround speakers */ in alc662_fixup_aspire_ethos_hp()
12722 if (!is_jack_detectable(codec, 0x1b)) in alc662_fixup_aspire_ethos_hp()
12727 snd_hda_jack_detect_enable_callback(codec, 0x1b, in alc662_fixup_aspire_ethos_hp()
12730 alc_setup_gpio(codec, 0x02); in alc662_fixup_aspire_ethos_hp()
12736 alc662_aspire_ethos_mute_speakers(codec, NULL); in alc662_fixup_aspire_ethos_hp()
12741 static void alc671_fixup_hp_headset_mic2(struct hda_codec *codec, in alc671_fixup_hp_headset_mic2() argument
12744 struct alc_spec *spec = codec->spec; in alc671_fixup_hp_headset_mic2()
12747 { 0x19, 0x02a11040 }, /* use as headset mic, with its own jack detect */ in alc671_fixup_hp_headset_mic2()
12748 { 0x1b, 0x0181304f }, in alc671_fixup_hp_headset_mic2()
12754 spec->gen.mixer_nid = 0; in alc671_fixup_hp_headset_mic2()
12755 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc671_fixup_hp_headset_mic2()
12756 snd_hda_apply_pincfgs(codec, pincfgs); in alc671_fixup_hp_headset_mic2()
12759 alc_write_coef_idx(codec, 0x19, 0xa054); in alc671_fixup_hp_headset_mic2()
12764 static void alc897_hp_automute_hook(struct hda_codec *codec, in alc897_hp_automute_hook() argument
12767 struct alc_spec *spec = codec->spec; in alc897_hp_automute_hook()
12770 snd_hda_gen_hp_automute(codec, jack); in alc897_hp_automute_hook()
12771 vref = spec->gen.hp_jack_present ? (PIN_HP | AC_PINCTL_VREF_100) : PIN_HP; in alc897_hp_automute_hook()
12772 snd_hda_set_pin_ctl(codec, 0x1b, vref); in alc897_hp_automute_hook()
12775 static void alc897_fixup_lenovo_headset_mic(struct hda_codec *codec, in alc897_fixup_lenovo_headset_mic() argument
12778 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mic()
12780 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mic()
12781 spec->no_shutup_pins = 1; in alc897_fixup_lenovo_headset_mic()
12784 snd_hda_set_pin_ctl_cache(codec, 0x1a, PIN_IN | AC_PINCTL_VREF_100); in alc897_fixup_lenovo_headset_mic()
12788 static void alc897_fixup_lenovo_headset_mode(struct hda_codec *codec, in alc897_fixup_lenovo_headset_mode() argument
12791 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mode()
12794 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc897_fixup_lenovo_headset_mode()
12795 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mode()
12800 WRITE_COEF(0x01, 0xbebe), WRITE_COEF(0x02, 0xaaaa), WRITE_COEF(0x03, 0x0),
12801 WRITE_COEF(0x04, 0x0180), WRITE_COEF(0x06, 0x0), WRITE_COEF(0x07, 0x0f80),
12802 WRITE_COEF(0x08, 0x0031), WRITE_COEF(0x0a, 0x0060), WRITE_COEF(0x0b, 0x0),
12803 WRITE_COEF(0x0c, 0x7cf7), WRITE_COEF(0x0d, 0x1080), WRITE_COEF(0x0e, 0x7f7f),
12804 WRITE_COEF(0x0f, 0xcccc), WRITE_COEF(0x10, 0xddcc), WRITE_COEF(0x11, 0x0001),
12805 WRITE_COEF(0x13, 0x0), WRITE_COEF(0x14, 0x2aa0), WRITE_COEF(0x17, 0xa940),
12806 WRITE_COEF(0x19, 0x0), WRITE_COEF(0x1a, 0x0), WRITE_COEF(0x1b, 0x0),
12807 WRITE_COEF(0x1c, 0x0), WRITE_COEF(0x1d, 0x0), WRITE_COEF(0x1e, 0x7418),
12808 WRITE_COEF(0x1f, 0x0804), WRITE_COEF(0x20, 0x4200), WRITE_COEF(0x21, 0x0468),
12809 WRITE_COEF(0x22, 0x8ccc), WRITE_COEF(0x23, 0x0250), WRITE_COEF(0x24, 0x7418),
12810 WRITE_COEF(0x27, 0x0), WRITE_COEF(0x28, 0x8ccc), WRITE_COEF(0x2a, 0xff00),
12811 WRITE_COEF(0x2b, 0x8000), WRITE_COEF(0xa7, 0xff00), WRITE_COEF(0xa8, 0x8000),
12812 WRITE_COEF(0xaa, 0x2e17), WRITE_COEF(0xab, 0xa0c0), WRITE_COEF(0xac, 0x0),
12813 WRITE_COEF(0xad, 0x0), WRITE_COEF(0xae, 0x2ac6), WRITE_COEF(0xaf, 0xa480),
12814 WRITE_COEF(0xb0, 0x0), WRITE_COEF(0xb1, 0x0), WRITE_COEF(0xb2, 0x0),
12815 WRITE_COEF(0xb3, 0x0), WRITE_COEF(0xb4, 0x0), WRITE_COEF(0xb5, 0x1040),
12816 WRITE_COEF(0xb6, 0xd697), WRITE_COEF(0xb7, 0x902b), WRITE_COEF(0xb8, 0xd697),
12817 WRITE_COEF(0xb9, 0x902b), WRITE_COEF(0xba, 0xb8ba), WRITE_COEF(0xbb, 0xaaab),
12818 WRITE_COEF(0xbc, 0xaaaf), WRITE_COEF(0xbd, 0x6aaa), WRITE_COEF(0xbe, 0x1c02),
12819 WRITE_COEF(0xc0, 0x00ff), WRITE_COEF(0xc1, 0x0fa6),
12823 static void alc668_restore_default_value(struct hda_codec *codec) in alc668_restore_default_value() argument
12825 alc_process_coef_fw(codec, alc668_coefs); in alc668_restore_default_value()
12892 { 0x15, 0x99130112 }, /* subwoofer */
12903 { 0x17, 0x99130112 }, /* subwoofer */
12916 {0x12, 0x403cc000},
12917 {0x14, 0x90170110}, /* speaker */
12918 {0x15, 0x411111f0},
12919 {0x16, 0x411111f0},
12920 {0x18, 0x01a19030}, /* mic */
12921 {0x19, 0x90a7013f}, /* int-mic */
12922 {0x1a, 0x01014020},
12923 {0x1b, 0x0121401f},
12924 {0x1c, 0x411111f0},
12925 {0x1d, 0x411111f0},
12926 {0x1e, 0x40478e35},
12935 {0x14, AC_VERB_SET_EAPD_BTLENABLE, 0},
12946 { 0x14, 0x0221201f }, /* HP out */
12955 { 0x14, 0x99130110 }, /* speaker */
12956 { 0x18, 0x01a19c20 }, /* mic */
12957 { 0x19, 0x99a3092f }, /* int-mic */
12958 { 0x21, 0x0121401f }, /* HP out */
12967 { 0x14, 0x99130110 }, /* speaker */
12968 { 0x18, 0x01a19820 }, /* mic */
12969 { 0x19, 0x99a3092f }, /* int-mic */
12970 { 0x1b, 0x0121401f }, /* HP out */
12979 { 0x14, 0x99130110 }, /* speaker */
12980 { 0x15, 0x0121441f }, /* HP */
12981 { 0x18, 0x01a19840 }, /* mic */
12982 { 0x19, 0x99a3094f }, /* int-mic */
12983 { 0x21, 0x01211420 }, /* HP2 */
12992 { 0x14, 0x99130110 }, /* speaker */
12993 { 0x16, 0x99130111 }, /* speaker */
12994 { 0x18, 0x01a19840 }, /* mic */
12995 { 0x19, 0x99a3094f }, /* int-mic */
12996 { 0x21, 0x0121441f }, /* HP */
13005 { 0x14, 0x99130110 }, /* speaker */
13006 { 0x15, 0x0121441f }, /* HP */
13007 { 0x16, 0x99130111 }, /* speaker */
13008 { 0x18, 0x01a19840 }, /* mic */
13009 { 0x19, 0x99a3094f }, /* int-mic */
13018 { 0x14, 0x99130110 }, /* speaker */
13019 { 0x15, 0x01211420 }, /* HP2 */
13020 { 0x18, 0x01a19840 }, /* mic */
13021 { 0x19, 0x99a3094f }, /* int-mic */
13022 { 0x1b, 0x0121441f }, /* HP */
13031 { 0x14, 0x99130110 }, /* speaker */
13032 { 0x17, 0x99130111 }, /* speaker */
13033 { 0x18, 0x01a19840 }, /* mic */
13034 { 0x19, 0x99a3094f }, /* int-mic */
13035 { 0x1b, 0x01214020 }, /* HP */
13036 { 0x21, 0x0121401f }, /* HP */
13045 { 0x14, 0x99130110 }, /* speaker */
13046 { 0x12, 0x99a30970 }, /* int-mic */
13047 { 0x15, 0x01214020 }, /* HP */
13048 { 0x17, 0x99130111 }, /* speaker */
13049 { 0x18, 0x01a19840 }, /* mic */
13050 { 0x21, 0x0121401f }, /* HP */
13063 { 0x1b, 0x02214020 }, /* Front HP */
13092 { 0x19, 0x03a1113c }, /* use as headset mic, without its own jack detect */
13093 /* headphone mic by setting pin control of 0x1b (headphone out) to in + vref_50 */
13106 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
13107 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
13126 {0x16, 0x80106111}, /* bass speaker */
13135 {0x1a, 0x80106111}, /* bass speaker */
13159 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
13160 { 0x1a, 0x90170151 }, /* bass speaker */
13161 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
13170 { 0x20, AC_VERB_SET_COEF_INDEX, 0xc3 },
13171 { 0x20, AC_VERB_SET_PROC_COEF, 0x4000 },
13178 { 0x16, 0x0421101f }, /* HP */
13191 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
13192 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
13201 { 0x15, 0x50170120 }, /* no internal speaker */
13208 { 0x15, 0x40f000f0 }, /* disabled */
13209 { 0x16, 0x40f000f0 }, /* disabled */
13220 { 0x19, 0x02a1913c }, /* use as headset mic, without its own jack detect */
13221 { 0x18, 0x01a1903d },
13238 { 0x15, 0x92130110 }, /* front speakers */
13239 { 0x18, 0x99130111 }, /* center/subwoofer */
13240 { 0x1b, 0x11130012 }, /* surround plus jack for HP */
13253 { 0x1a, 0x02a1113c }, /* use as headset mic, without its own jack detect */
13262 { 0x1a, 0x01a11140 }, /* use as headset mic, without its own jack detect */
13263 { 0x1b, 0x0221144f },
13272 { 0x1b, 0x04a1112c },
13287 { 0x20, AC_VERB_SET_COEF_INDEX, 0x15 },
13288 { 0x20, AC_VERB_SET_PROC_COEF, 0x0d60 },
13299 { 0x1a, 0x03a11050 },
13308 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
13319 { 0x1a, 0x01a11140 }, /* use as headset mic, without its own jack detect */
13328 { 0x14, AC_VERB_SET_EAPD_BTLENABLE, 0 },
13335 { 0x19, 0x03a11050 }, /* use as headset mic */
13342 SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ASUS_MODE2),
13343 SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
13344 SND_PCI_QUIRK(0x1025, 0x022f, "Acer Aspire One", ALC662_FIXUP_INV_DMIC),
13345 SND_PCI_QUIRK(0x1025, 0x0241, "Packard Bell DOTS", ALC662_FIXUP_INV_DMIC),
13346 SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE),
13347 SND_PCI_QUIRK(0x1025, 0x031c, "Gateway NV79", ALC662_FIXUP_SKU_IGNORE),
13348 SND_PCI_QUIRK(0x1025, 0x0349, "eMachines eM250", ALC662_FIXUP_INV_DMIC),
13349 SND_PCI_QUIRK(0x1025, 0x034a, "Gateway LT27", ALC662_FIXUP_INV_DMIC),
13350 SND_PCI_QUIRK(0x1025, 0x038b, "Acer Aspire 8943G", ALC662_FIXUP_ASPIRE),
13351 SND_PCI_QUIRK(0x1025, 0x0566, "Acer Aspire Ethos 8951G", ALC669_FIXUP_ACER_ASPIRE_ETHOS),
13352 SND_PCI_QUIRK(0x1025, 0x123c, "Acer Nitro N50-600", ALC662_FIXUP_ACER_NITRO_HEADSET_MODE),
13353 SND_PCI_QUIRK(0x1025, 0x124e, "Acer 2660G", ALC662_FIXUP_ACER_X2660G_HEADSET_MODE),
13354 SND_PCI_QUIRK(0x1028, 0x05d8, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13355 SND_PCI_QUIRK(0x1028, 0x05db, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13356 SND_PCI_QUIRK(0x1028, 0x05fe, "Dell XPS 15", ALC668_FIXUP_DELL_XPS13),
13357 SND_PCI_QUIRK(0x1028, 0x060a, "Dell XPS 13", ALC668_FIXUP_DELL_XPS13),
13358 SND_PCI_QUIRK(0x1028, 0x060d, "Dell M3800", ALC668_FIXUP_DELL_XPS13),
13359 SND_PCI_QUIRK(0x1028, 0x0625, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13360 SND_PCI_QUIRK(0x1028, 0x0626, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13361 SND_PCI_QUIRK(0x1028, 0x0696, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13362 SND_PCI_QUIRK(0x1028, 0x0698, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13363 SND_PCI_QUIRK(0x1028, 0x069f, "Dell", ALC668_FIXUP_DELL_MIC_NO_PRESENCE),
13364 SND_PCI_QUIRK(0x103c, 0x1632, "HP RP5800", ALC662_FIXUP_HP_RP5800),
13365 SND_PCI_QUIRK(0x103c, 0x870c, "HP", ALC897_FIXUP_HP_HSMIC_VERB),
13366 SND_PCI_QUIRK(0x103c, 0x8719, "HP", ALC897_FIXUP_HP_HSMIC_VERB),
13367 SND_PCI_QUIRK(0x103c, 0x872b, "HP", ALC897_FIXUP_HP_HSMIC_VERB),
13368 SND_PCI_QUIRK(0x103c, 0x873e, "HP", ALC671_FIXUP_HP_HEADSET_MIC2),
13369 SND_PCI_QUIRK(0x103c, 0x8768, "HP Slim Desktop S01", ALC671_FIXUP_HP_HEADSET_MIC2),
13370 SND_PCI_QUIRK(0x103c, 0x877e, "HP 288 Pro G6", ALC671_FIXUP_HP_HEADSET_MIC2),
13371 SND_PCI_QUIRK(0x103c, 0x885f, "HP 288 Pro G8", ALC671_FIXUP_HP_HEADSET_MIC2),
13372 SND_PCI_QUIRK(0x1043, 0x1080, "Asus UX501VW", ALC668_FIXUP_HEADSET_MODE),
13373 SND_PCI_QUIRK(0x1043, 0x11cd, "Asus N550", ALC662_FIXUP_ASUS_Nx50),
13374 SND_PCI_QUIRK(0x1043, 0x129d, "Asus N750", ALC662_FIXUP_ASUS_Nx50),
13375 SND_PCI_QUIRK(0x1043, 0x12ff, "ASUS G751", ALC668_FIXUP_ASUS_G751),
13376 SND_PCI_QUIRK(0x1043, 0x13df, "Asus N550JX", ALC662_FIXUP_BASS_1A),
13377 SND_PCI_QUIRK(0x1043, 0x1477, "ASUS N56VZ", ALC662_FIXUP_BASS_MODE4_CHMAP),
13378 SND_PCI_QUIRK(0x1043, 0x15a7, "ASUS UX51VZH", ALC662_FIXUP_BASS_16),
13379 SND_PCI_QUIRK(0x1043, 0x177d, "ASUS N551", ALC668_FIXUP_ASUS_Nx51),
13380 SND_PCI_QUIRK(0x1043, 0x17bd, "ASUS N751", ALC668_FIXUP_ASUS_Nx51),
13381 SND_PCI_QUIRK(0x1043, 0x185d, "ASUS G551JW", ALC668_FIXUP_ASUS_NO_HEADSET_MIC),
13382 SND_PCI_QUIRK(0x1043, 0x1963, "ASUS X71SL", ALC662_FIXUP_ASUS_MODE8),
13383 SND_PCI_QUIRK(0x1043, 0x1b73, "ASUS N55SF", ALC662_FIXUP_BASS_16),
13384 SND_PCI_QUIRK(0x1043, 0x1bf3, "ASUS N76VZ", ALC662_FIXUP_BASS_MODE4_CHMAP),
13385 SND_PCI_QUIRK(0x1043, 0x8469, "ASUS mobo", ALC662_FIXUP_NO_JACK_DETECT),
13386 SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ASUS_MODE2),
13387 SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
13388 SND_PCI_QUIRK(0x14cd, 0x5003, "USI", ALC662_FIXUP_USI_HEADSET_MODE),
13389 SND_PCI_QUIRK(0x17aa, 0x1036, "Lenovo P520", ALC662_FIXUP_LENOVO_MULTI_CODECS),
13390 SND_PCI_QUIRK(0x17aa, 0x1057, "Lenovo P360", ALC897_FIXUP_HEADSET_MIC_PIN),
13391 SND_PCI_QUIRK(0x17aa, 0x1064, "Lenovo P3 Tower", ALC897_FIXUP_HEADSET_MIC_PIN),
13392 SND_PCI_QUIRK(0x17aa, 0x32ca, "Lenovo ThinkCentre M80", ALC897_FIXUP_HEADSET_MIC_PIN),
13393 SND_PCI_QUIRK(0x17aa, 0x32cb, "Lenovo ThinkCentre M70", ALC897_FIXUP_HEADSET_MIC_PIN),
13394 SND_PCI_QUIRK(0x17aa, 0x32cf, "Lenovo ThinkCentre M950", ALC897_FIXUP_HEADSET_MIC_PIN),
13395 SND_PCI_QUIRK(0x17aa, 0x32f7, "Lenovo ThinkCentre M90", ALC897_FIXUP_HEADSET_MIC_PIN),
13396 SND_PCI_QUIRK(0x17aa, 0x3321, "Lenovo ThinkCentre M70 Gen4", ALC897_FIXUP_HEADSET_MIC_PIN),
13397 SND_PCI_QUIRK(0x17aa, 0x331b, "Lenovo ThinkCentre M90 Gen4", ALC897_FIXUP_HEADSET_MIC_PIN),
13398 SND_PCI_QUIRK(0x17aa, 0x3364, "Lenovo ThinkCentre M90 Gen5", ALC897_FIXUP_HEADSET_MIC_PIN),
13399 SND_PCI_QUIRK(0x17aa, 0x3742, "Lenovo TianYi510Pro-14IOB", ALC897_FIXUP_HEADSET_MIC_PIN2),
13400 SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo Ideapad Y550P", ALC662_FIXUP_IDEAPAD),
13401 SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Ideapad Y550", ALC662_FIXUP_IDEAPAD),
13402 SND_PCI_QUIRK(0x1849, 0x5892, "ASRock B150M", ALC892_FIXUP_ASROCK_MOBO),
13403 SND_PCI_QUIRK(0x19da, 0xa130, "Zotac Z68", ALC662_FIXUP_ZOTAC_Z68),
13404 SND_PCI_QUIRK(0x1b0a, 0x01b8, "ACER Veriton", ALC662_FIXUP_ACER_VERITON),
13405 SND_PCI_QUIRK(0x1b35, 0x1234, "CZC ET26", ALC662_FIXUP_CZC_ET26),
13406 SND_PCI_QUIRK(0x1b35, 0x2206, "CZC P10T", ALC662_FIXUP_CZC_P10T),
13407 SND_PCI_QUIRK(0x1c6c, 0x1239, "Compaq N14JP6-V2", ALC897_FIXUP_HP_HSMIC_VERB),
13409 #if 0
13415 SND_PCI_QUIRK(0x1043, 0x1000, "ASUS N50Vm", ALC662_FIXUP_ASUS_MODE1),
13416 SND_PCI_QUIRK(0x1043, 0x1092, "ASUS NB", ALC662_FIXUP_ASUS_MODE3),
13417 SND_PCI_QUIRK(0x1043, 0x1173, "ASUS K73Jn", ALC662_FIXUP_ASUS_MODE1),
13418 SND_PCI_QUIRK(0x1043, 0x11c3, "ASUS M70V", ALC662_FIXUP_ASUS_MODE3),
13419 SND_PCI_QUIRK(0x1043, 0x11d3, "ASUS NB", ALC662_FIXUP_ASUS_MODE1),
13420 SND_PCI_QUIRK(0x1043, 0x11f3, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13421 SND_PCI_QUIRK(0x1043, 0x1203, "ASUS NB", ALC662_FIXUP_ASUS_MODE1),
13422 SND_PCI_QUIRK(0x1043, 0x1303, "ASUS G60J", ALC662_FIXUP_ASUS_MODE1),
13423 SND_PCI_QUIRK(0x1043, 0x1333, "ASUS G60Jx", ALC662_FIXUP_ASUS_MODE1),
13424 SND_PCI_QUIRK(0x1043, 0x1339, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13425 SND_PCI_QUIRK(0x1043, 0x13e3, "ASUS N71JA", ALC662_FIXUP_ASUS_MODE7),
13426 SND_PCI_QUIRK(0x1043, 0x1463, "ASUS N71", ALC662_FIXUP_ASUS_MODE7),
13427 SND_PCI_QUIRK(0x1043, 0x14d3, "ASUS G72", ALC662_FIXUP_ASUS_MODE8),
13428 SND_PCI_QUIRK(0x1043, 0x1563, "ASUS N90", ALC662_FIXUP_ASUS_MODE3),
13429 SND_PCI_QUIRK(0x1043, 0x15d3, "ASUS N50SF F50SF", ALC662_FIXUP_ASUS_MODE1),
13430 SND_PCI_QUIRK(0x1043, 0x16c3, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13431 SND_PCI_QUIRK(0x1043, 0x16f3, "ASUS K40C K50C", ALC662_FIXUP_ASUS_MODE2),
13432 SND_PCI_QUIRK(0x1043, 0x1733, "ASUS N81De", ALC662_FIXUP_ASUS_MODE1),
13433 SND_PCI_QUIRK(0x1043, 0x1753, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13434 SND_PCI_QUIRK(0x1043, 0x1763, "ASUS NB", ALC662_FIXUP_ASUS_MODE6),
13435 SND_PCI_QUIRK(0x1043, 0x1765, "ASUS NB", ALC662_FIXUP_ASUS_MODE6),
13436 SND_PCI_QUIRK(0x1043, 0x1783, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13437 SND_PCI_QUIRK(0x1043, 0x1793, "ASUS F50GX", ALC662_FIXUP_ASUS_MODE1),
13438 SND_PCI_QUIRK(0x1043, 0x17b3, "ASUS F70SL", ALC662_FIXUP_ASUS_MODE3),
13439 SND_PCI_QUIRK(0x1043, 0x17f3, "ASUS X58LE", ALC662_FIXUP_ASUS_MODE2),
13440 SND_PCI_QUIRK(0x1043, 0x1813, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13441 SND_PCI_QUIRK(0x1043, 0x1823, "ASUS NB", ALC662_FIXUP_ASUS_MODE5),
13442 SND_PCI_QUIRK(0x1043, 0x1833, "ASUS NB", ALC662_FIXUP_ASUS_MODE6),
13443 SND_PCI_QUIRK(0x1043, 0x1843, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13444 SND_PCI_QUIRK(0x1043, 0x1853, "ASUS F50Z", ALC662_FIXUP_ASUS_MODE1),
13445 SND_PCI_QUIRK(0x1043, 0x1864, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13446 SND_PCI_QUIRK(0x1043, 0x1876, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13447 SND_PCI_QUIRK(0x1043, 0x1893, "ASUS M50Vm", ALC662_FIXUP_ASUS_MODE3),
13448 SND_PCI_QUIRK(0x1043, 0x1894, "ASUS X55", ALC662_FIXUP_ASUS_MODE3),
13449 SND_PCI_QUIRK(0x1043, 0x18b3, "ASUS N80Vc", ALC662_FIXUP_ASUS_MODE1),
13450 SND_PCI_QUIRK(0x1043, 0x18c3, "ASUS VX5", ALC662_FIXUP_ASUS_MODE1),
13451 SND_PCI_QUIRK(0x1043, 0x18d3, "ASUS N81Te", ALC662_FIXUP_ASUS_MODE1),
13452 SND_PCI_QUIRK(0x1043, 0x18f3, "ASUS N505Tp", ALC662_FIXUP_ASUS_MODE1),
13453 SND_PCI_QUIRK(0x1043, 0x1903, "ASUS F5GL", ALC662_FIXUP_ASUS_MODE1),
13454 SND_PCI_QUIRK(0x1043, 0x1913, "ASUS NB", ALC662_FIXUP_ASUS_MODE2),
13455 SND_PCI_QUIRK(0x1043, 0x1933, "ASUS F80Q", ALC662_FIXUP_ASUS_MODE2),
13456 SND_PCI_QUIRK(0x1043, 0x1943, "ASUS Vx3V", ALC662_FIXUP_ASUS_MODE1),
13457 SND_PCI_QUIRK(0x1043, 0x1953, "ASUS NB", ALC662_FIXUP_ASUS_MODE1),
13458 SND_PCI_QUIRK(0x1043, 0x1963, "ASUS X71C", ALC662_FIXUP_ASUS_MODE3),
13459 SND_PCI_QUIRK(0x1043, 0x1983, "ASUS N5051A", ALC662_FIXUP_ASUS_MODE1),
13460 SND_PCI_QUIRK(0x1043, 0x1993, "ASUS N20", ALC662_FIXUP_ASUS_MODE1),
13461 SND_PCI_QUIRK(0x1043, 0x19b3, "ASUS F7Z", ALC662_FIXUP_ASUS_MODE1),
13462 SND_PCI_QUIRK(0x1043, 0x19c3, "ASUS F5Z/F6x", ALC662_FIXUP_ASUS_MODE2),
13463 SND_PCI_QUIRK(0x1043, 0x19e3, "ASUS NB", ALC662_FIXUP_ASUS_MODE1),
13464 SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC662_FIXUP_ASUS_MODE4),
13473 {.id = ALC662_FIXUP_HP_RP5800, .name = "hp-rp5800"},
13474 {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
13475 {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
13476 {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
13477 {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
13478 {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
13479 {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
13480 {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
13481 {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
13482 {.id = ALC662_FIXUP_ZOTAC_Z68, .name = "zotac-z68"},
13483 {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
13484 {.id = ALC662_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc662-headset-multi"},
13485 {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
13486 {.id = ALC662_FIXUP_HEADSET_MODE, .name = "alc662-headset"},
13487 {.id = ALC668_FIXUP_HEADSET_MODE, .name = "alc668-headset"},
13491 {.id = ALC668_FIXUP_DELL_XPS13, .name = "dell-xps13"},
13492 {.id = ALC662_FIXUP_ASUS_Nx50, .name = "asus-nx50"},
13493 {.id = ALC668_FIXUP_ASUS_Nx51, .name = "asus-nx51"},
13494 {.id = ALC668_FIXUP_ASUS_G751, .name = "asus-g751"},
13495 {.id = ALC891_FIXUP_HEADSET_MODE, .name = "alc891-headset"},
13496 {.id = ALC891_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc891-headset-multi"},
13497 {.id = ALC662_FIXUP_ACER_VERITON, .name = "acer-veriton"},
13498 {.id = ALC892_FIXUP_ASROCK_MOBO, .name = "asrock-mobo"},
13499 {.id = ALC662_FIXUP_USI_HEADSET_MODE, .name = "usi-headset"},
13500 {.id = ALC662_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
13501 {.id = ALC669_FIXUP_ACER_ASPIRE_ETHOS, .name = "aspire-ethos"},
13502 {.id = ALC897_FIXUP_UNIS_H3C_X500S, .name = "unis-h3c-x500s"},
13507 SND_HDA_PIN_QUIRK(0x10ec0867, 0x1028, "Dell", ALC891_FIXUP_DELL_MIC_NO_PRESENCE,
13508 {0x17, 0x02211010},
13509 {0x18, 0x01a19030},
13510 {0x1a, 0x01813040},
13511 {0x21, 0x01014020}),
13512 SND_HDA_PIN_QUIRK(0x10ec0867, 0x1028, "Dell", ALC891_FIXUP_DELL_MIC_NO_PRESENCE,
13513 {0x16, 0x01813030},
13514 {0x17, 0x02211010},
13515 {0x18, 0x01a19040},
13516 {0x21, 0x01014020}),
13517 SND_HDA_PIN_QUIRK(0x10ec0662, 0x1028, "Dell", ALC662_FIXUP_DELL_MIC_NO_PRESENCE,
13518 {0x14, 0x01014010},
13519 {0x18, 0x01a19020},
13520 {0x1a, 0x0181302f},
13521 {0x1b, 0x0221401f}),
13522 SND_HDA_PIN_QUIRK(0x10ec0668, 0x1028, "Dell", ALC668_FIXUP_AUTO_MUTE,
13523 {0x12, 0x99a30130},
13524 {0x14, 0x90170110},
13525 {0x15, 0x0321101f},
13526 {0x16, 0x03011020}),
13527 SND_HDA_PIN_QUIRK(0x10ec0668, 0x1028, "Dell", ALC668_FIXUP_AUTO_MUTE,
13528 {0x12, 0x99a30140},
13529 {0x14, 0x90170110},
13530 {0x15, 0x0321101f},
13531 {0x16, 0x03011020}),
13532 SND_HDA_PIN_QUIRK(0x10ec0668, 0x1028, "Dell", ALC668_FIXUP_AUTO_MUTE,
13533 {0x12, 0x99a30150},
13534 {0x14, 0x90170110},
13535 {0x15, 0x0321101f},
13536 {0x16, 0x03011020}),
13537 SND_HDA_PIN_QUIRK(0x10ec0668, 0x1028, "Dell", ALC668_FIXUP_AUTO_MUTE,
13538 {0x14, 0x90170110},
13539 {0x15, 0x0321101f},
13540 {0x16, 0x03011020}),
13541 SND_HDA_PIN_QUIRK(0x10ec0668, 0x1028, "Dell XPS 15", ALC668_FIXUP_AUTO_MUTE,
13542 {0x12, 0x90a60130},
13543 {0x14, 0x90170110},
13544 {0x15, 0x0321101f}),
13545 SND_HDA_PIN_QUIRK(0x10ec0671, 0x103c, "HP cPC", ALC671_FIXUP_HP_HEADSET_MIC2,
13546 {0x14, 0x01014010},
13547 {0x17, 0x90170150},
13548 {0x19, 0x02a11060},
13549 {0x1b, 0x01813030},
13550 {0x21, 0x02211020}),
13551 SND_HDA_PIN_QUIRK(0x10ec0671, 0x103c, "HP cPC", ALC671_FIXUP_HP_HEADSET_MIC2,
13552 {0x14, 0x01014010},
13553 {0x18, 0x01a19040},
13554 {0x1b, 0x01813030},
13555 {0x21, 0x02211020}),
13556 SND_HDA_PIN_QUIRK(0x10ec0671, 0x103c, "HP cPC", ALC671_FIXUP_HP_HEADSET_MIC2,
13557 {0x14, 0x01014020},
13558 {0x17, 0x90170110},
13559 {0x18, 0x01a19050},
13560 {0x1b, 0x01813040},
13561 {0x21, 0x02211030}),
13567 static int patch_alc662(struct hda_codec *codec) in patch_alc662() argument
13572 err = alc_alloc_spec(codec, 0x0b); in patch_alc662()
13573 if (err < 0) in patch_alc662()
13576 spec = codec->spec; in patch_alc662()
13578 spec->shutup = alc_eapd_shutup; in patch_alc662()
13581 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in patch_alc662()
13583 alc_fix_pll_init(codec, 0x20, 0x04, 15); in patch_alc662()
13585 switch (codec->core.vendor_id) { in patch_alc662()
13586 case 0x10ec0668: in patch_alc662()
13587 spec->init_hook = alc668_restore_default_value; in patch_alc662()
13591 alc_pre_init(codec); in patch_alc662()
13593 snd_hda_pick_fixup(codec, alc662_fixup_models, in patch_alc662()
13595 snd_hda_pick_pin_fixup(codec, alc662_pin_fixup_tbl, alc662_fixups, true); in patch_alc662()
13596 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_alc662()
13598 alc_auto_parse_customize_define(codec); in patch_alc662()
13600 if (has_cdefine_beep(codec)) in patch_alc662()
13601 spec->gen.beep_nid = 0x01; in patch_alc662()
13603 if ((alc_get_coef0(codec) & (1 << 14)) && in patch_alc662()
13604 codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && in patch_alc662()
13605 spec->cdefine.platform_type == 1) { in patch_alc662()
13606 err = alc_codec_rename(codec, "ALC272X"); in patch_alc662()
13607 if (err < 0) in patch_alc662()
13612 err = alc662_parse_auto_config(codec); in patch_alc662()
13613 if (err < 0) in patch_alc662()
13616 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc662()
13617 switch (codec->core.vendor_id) { in patch_alc662()
13618 case 0x10ec0662: in patch_alc662()
13619 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc662()
13621 case 0x10ec0272: in patch_alc662()
13622 case 0x10ec0663: in patch_alc662()
13623 case 0x10ec0665: in patch_alc662()
13624 case 0x10ec0668: in patch_alc662()
13625 err = set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT); in patch_alc662()
13627 case 0x10ec0273: in patch_alc662()
13628 err = set_beep_amp(spec, 0x0b, 0x03, HDA_INPUT); in patch_alc662()
13631 if (err < 0) in patch_alc662()
13635 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_alc662()
13637 return 0; in patch_alc662()
13640 alc_free(codec); in patch_alc662()
13648 static int alc680_parse_auto_config(struct hda_codec *codec) in alc680_parse_auto_config() argument
13650 return alc_parse_auto_config(codec, NULL, NULL); in alc680_parse_auto_config()
13655 static int patch_alc680(struct hda_codec *codec) in patch_alc680() argument
13659 /* ALC680 has no aa-loopback mixer */ in patch_alc680()
13660 err = alc_alloc_spec(codec, 0); in patch_alc680()
13661 if (err < 0) in patch_alc680()
13665 err = alc680_parse_auto_config(codec); in patch_alc680()
13666 if (err < 0) { in patch_alc680()
13667 alc_free(codec); in patch_alc680()
13671 return 0; in patch_alc680()
13678 HDA_CODEC_ENTRY(0x10ec0215, "ALC215", patch_alc269),
13679 HDA_CODEC_ENTRY(0x10ec0221, "ALC221", patch_alc269),
13680 HDA_CODEC_ENTRY(0x10ec0222, "ALC222", patch_alc269),
13681 HDA_CODEC_ENTRY(0x10ec0225, "ALC225", patch_alc269),
13682 HDA_CODEC_ENTRY(0x10ec0230, "ALC236", patch_alc269),
13683 HDA_CODEC_ENTRY(0x10ec0231, "ALC231", patch_alc269),
13684 HDA_CODEC_ENTRY(0x10ec0233, "ALC233", patch_alc269),
13685 HDA_CODEC_ENTRY(0x10ec0234, "ALC234", patch_alc269),
13686 HDA_CODEC_ENTRY(0x10ec0235, "ALC233", patch_alc269),
13687 HDA_CODEC_ENTRY(0x10ec0236, "ALC236", patch_alc269),
13688 HDA_CODEC_ENTRY(0x10ec0245, "ALC245", patch_alc269),
13689 HDA_CODEC_ENTRY(0x10ec0255, "ALC255", patch_alc269),
13690 HDA_CODEC_ENTRY(0x10ec0256, "ALC256", patch_alc269),
13691 HDA_CODEC_ENTRY(0x10ec0257, "ALC257", patch_alc269),
13692 HDA_CODEC_ENTRY(0x10ec0260, "ALC260", patch_alc260),
13693 HDA_CODEC_ENTRY(0x10ec0262, "ALC262", patch_alc262),
13694 HDA_CODEC_ENTRY(0x10ec0267, "ALC267", patch_alc268),
13695 HDA_CODEC_ENTRY(0x10ec0268, "ALC268", patch_alc268),
13696 HDA_CODEC_ENTRY(0x10ec0269, "ALC269", patch_alc269),
13697 HDA_CODEC_ENTRY(0x10ec0270, "ALC270", patch_alc269),
13698 HDA_CODEC_ENTRY(0x10ec0272, "ALC272", patch_alc662),
13699 HDA_CODEC_ENTRY(0x10ec0274, "ALC274", patch_alc269),
13700 HDA_CODEC_ENTRY(0x10ec0275, "ALC275", patch_alc269),
13701 HDA_CODEC_ENTRY(0x10ec0276, "ALC276", patch_alc269),
13702 HDA_CODEC_ENTRY(0x10ec0280, "ALC280", patch_alc269),
13703 HDA_CODEC_ENTRY(0x10ec0282, "ALC282", patch_alc269),
13704 HDA_CODEC_ENTRY(0x10ec0283, "ALC283", patch_alc269),
13705 HDA_CODEC_ENTRY(0x10ec0284, "ALC284", patch_alc269),
13706 HDA_CODEC_ENTRY(0x10ec0285, "ALC285", patch_alc269),
13707 HDA_CODEC_ENTRY(0x10ec0286, "ALC286", patch_alc269),
13708 HDA_CODEC_ENTRY(0x10ec0287, "ALC287", patch_alc269),
13709 HDA_CODEC_ENTRY(0x10ec0288, "ALC288", patch_alc269),
13710 HDA_CODEC_ENTRY(0x10ec0289, "ALC289", patch_alc269),
13711 HDA_CODEC_ENTRY(0x10ec0290, "ALC290", patch_alc269),
13712 HDA_CODEC_ENTRY(0x10ec0292, "ALC292", patch_alc269),
13713 HDA_CODEC_ENTRY(0x10ec0293, "ALC293", patch_alc269),
13714 HDA_CODEC_ENTRY(0x10ec0294, "ALC294", patch_alc269),
13715 HDA_CODEC_ENTRY(0x10ec0295, "ALC295", patch_alc269),
13716 HDA_CODEC_ENTRY(0x10ec0298, "ALC298", patch_alc269),
13717 HDA_CODEC_ENTRY(0x10ec0299, "ALC299", patch_alc269),
13718 HDA_CODEC_ENTRY(0x10ec0300, "ALC300", patch_alc269),
13719 HDA_CODEC_ENTRY(0x10ec0623, "ALC623", patch_alc269),
13720 HDA_CODEC_REV_ENTRY(0x10ec0861, 0x100340, "ALC660", patch_alc861),
13721 HDA_CODEC_ENTRY(0x10ec0660, "ALC660-VD", patch_alc861vd),
13722 HDA_CODEC_ENTRY(0x10ec0861, "ALC861", patch_alc861),
13723 HDA_CODEC_ENTRY(0x10ec0862, "ALC861-VD", patch_alc861vd),
13724 HDA_CODEC_REV_ENTRY(0x10ec0662, 0x100002, "ALC662 rev2", patch_alc882),
13725 HDA_CODEC_REV_ENTRY(0x10ec0662, 0x100101, "ALC662 rev1", patch_alc662),
13726 HDA_CODEC_REV_ENTRY(0x10ec0662, 0x100300, "ALC662 rev3", patch_alc662),
13727 HDA_CODEC_ENTRY(0x10ec0663, "ALC663", patch_alc662),
13728 HDA_CODEC_ENTRY(0x10ec0665, "ALC665", patch_alc662),
13729 HDA_CODEC_ENTRY(0x10ec0667, "ALC667", patch_alc662),
13730 HDA_CODEC_ENTRY(0x10ec0668, "ALC668", patch_alc662),
13731 HDA_CODEC_ENTRY(0x10ec0670, "ALC670", patch_alc662),
13732 HDA_CODEC_ENTRY(0x10ec0671, "ALC671", patch_alc662),
13733 HDA_CODEC_ENTRY(0x10ec0680, "ALC680", patch_alc680),
13734 HDA_CODEC_ENTRY(0x10ec0700, "ALC700", patch_alc269),
13735 HDA_CODEC_ENTRY(0x10ec0701, "ALC701", patch_alc269),
13736 HDA_CODEC_ENTRY(0x10ec0703, "ALC703", patch_alc269),
13737 HDA_CODEC_ENTRY(0x10ec0711, "ALC711", patch_alc269),
13738 HDA_CODEC_ENTRY(0x10ec0867, "ALC891", patch_alc662),
13739 HDA_CODEC_ENTRY(0x10ec0880, "ALC880", patch_alc880),
13740 HDA_CODEC_ENTRY(0x10ec0882, "ALC882", patch_alc882),
13741 HDA_CODEC_ENTRY(0x10ec0883, "ALC883", patch_alc882),
13742 HDA_CODEC_REV_ENTRY(0x10ec0885, 0x100101, "ALC889A", patch_alc882),
13743 HDA_CODEC_REV_ENTRY(0x10ec0885, 0x100103, "ALC889A", patch_alc882),
13744 HDA_CODEC_ENTRY(0x10ec0885, "ALC885", patch_alc882),
13745 HDA_CODEC_ENTRY(0x10ec0887, "ALC887", patch_alc882),
13746 HDA_CODEC_REV_ENTRY(0x10ec0888, 0x100101, "ALC1200", patch_alc882),
13747 HDA_CODEC_ENTRY(0x10ec0888, "ALC888", patch_alc882),
13748 HDA_CODEC_ENTRY(0x10ec0889, "ALC889", patch_alc882),
13749 HDA_CODEC_ENTRY(0x10ec0892, "ALC892", patch_alc662),
13750 HDA_CODEC_ENTRY(0x10ec0897, "ALC897", patch_alc662),
13751 HDA_CODEC_ENTRY(0x10ec0899, "ALC898", patch_alc882),
13752 HDA_CODEC_ENTRY(0x10ec0900, "ALC1150", patch_alc882),
13753 HDA_CODEC_ENTRY(0x10ec0b00, "ALCS1200A", patch_alc882),
13754 HDA_CODEC_ENTRY(0x10ec1168, "ALC1220", patch_alc882),
13755 HDA_CODEC_ENTRY(0x10ec1220, "ALC1220", patch_alc882),
13756 HDA_CODEC_ENTRY(0x19e58326, "HW8326", patch_alc269),
13762 MODULE_DESCRIPTION("Realtek HD-audio codec");