• Home
  • Raw
  • Download

Lines Matching +full:codec +full:- +full:0

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * HD audio interface patch for Conexant HDA audio codec
7 * Tobin Davis <tdavis@dsl-only.net>
25 CX_HEADSET_NOPRESENT = 0,
59 HDA_CODEC_VOLUME_MONO("Beep Playback Volume", 0, 1, 0, HDA_OUTPUT),
60 HDA_CODEC_MUTE_BEEP_MONO("Beep Playback Switch", 0, 1, 0, HDA_OUTPUT),
70 spec->gen.beep_nid = nid; in set_beep_amp()
71 for (i = 0; i < ARRAY_SIZE(cxt_beep_mixer); i++) { in set_beep_amp()
72 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
75 return -ENOMEM; in set_beep_amp()
76 knew->private_value = beep_amp; in set_beep_amp()
78 return 0; in set_beep_amp()
81 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument
83 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep()
86 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep()
87 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep()
88 return set_beep_amp(spec, nid, 0, HDA_OUTPUT); in cx_auto_parse_beep()
89 return 0; in cx_auto_parse_beep()
92 #define cx_auto_parse_beep(codec) 0 argument
100 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument
102 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd()
105 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd()
106 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in cx_auto_parse_eapd()
108 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) in cx_auto_parse_eapd()
110 spec->eapds[spec->num_eapds++] = nid; in cx_auto_parse_eapd()
111 if (spec->num_eapds >= ARRAY_SIZE(spec->eapds)) in cx_auto_parse_eapd()
121 if (spec->num_eapds > 2) in cx_auto_parse_eapd()
122 spec->dynamic_eapd = 1; in cx_auto_parse_eapd()
125 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd() argument
129 for (i = 0; i < num_pins; i++) { in cx_auto_turn_eapd()
130 if (snd_hda_query_pin_caps(codec, pins[i]) & AC_PINCAP_EAPD) in cx_auto_turn_eapd()
131 snd_hda_codec_write(codec, pins[i], 0, in cx_auto_turn_eapd()
133 on ? 0x02 : 0); in cx_auto_turn_eapd()
140 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook() local
141 struct conexant_spec *spec = codec->spec; in cx_auto_vmaster_hook()
143 cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, enabled); in cx_auto_vmaster_hook()
150 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in cx_auto_vmaster_mute_led() local
151 struct conexant_spec *spec = codec->spec; in cx_auto_vmaster_mute_led()
153 snd_hda_codec_write(codec, spec->mute_led_eapd, 0, in cx_auto_vmaster_mute_led()
155 brightness ? 0x02 : 0x00); in cx_auto_vmaster_mute_led()
156 return 0; in cx_auto_vmaster_mute_led()
159 static void cxt_init_gpio_led(struct hda_codec *codec) in cxt_init_gpio_led() argument
161 struct conexant_spec *spec = codec->spec; in cxt_init_gpio_led()
162 unsigned int mask = spec->gpio_mute_led_mask | spec->gpio_mic_led_mask; in cxt_init_gpio_led()
165 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, in cxt_init_gpio_led()
167 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DIRECTION, in cxt_init_gpio_led()
169 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, in cxt_init_gpio_led()
170 spec->gpio_led); in cxt_init_gpio_led()
174 static void cx_fixup_headset_recog(struct hda_codec *codec) in cx_fixup_headset_recog() argument
180 snd_hda_codec_write(codec, 0x1c, 0, 0x320, 0x010); in cx_fixup_headset_recog()
181 /* set OFF voltage for DFET from -1.2V to -0.8V, set headset micbias registor in cx_fixup_headset_recog()
184 snd_hda_codec_write(codec, 0x1c, 0, 0x3b0, 0xe10); in cx_fixup_headset_recog()
186 mic_persent = snd_hda_codec_read(codec, 0x19, 0, AC_VERB_GET_PIN_SENSE, 0x0); in cx_fixup_headset_recog()
189 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24); in cx_fixup_headset_recog()
192 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x20); in cx_fixup_headset_recog()
195 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init() argument
197 struct conexant_spec *spec = codec->spec; in cx_auto_init()
198 snd_hda_gen_init(codec); in cx_auto_init()
199 if (!spec->dynamic_eapd) in cx_auto_init()
200 cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, true); in cx_auto_init()
202 cxt_init_gpio_led(codec); in cx_auto_init()
203 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); in cx_auto_init()
205 if (spec->is_cx8070_sn6140) in cx_auto_init()
206 cx_fixup_headset_recog(codec); in cx_auto_init()
208 return 0; in cx_auto_init()
211 static void cx_auto_shutdown(struct hda_codec *codec) in cx_auto_shutdown() argument
213 struct conexant_spec *spec = codec->spec; in cx_auto_shutdown()
215 /* Turn the problematic codec into D3 to avoid spurious noises in cx_auto_shutdown()
217 cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, false); in cx_auto_shutdown()
220 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free() argument
222 cx_auto_shutdown(codec); in cx_auto_free()
223 snd_hda_gen_free(codec); in cx_auto_free()
226 static void cx_process_headset_plugin(struct hda_codec *codec) in cx_process_headset_plugin() argument
229 unsigned int count = 0; in cx_process_headset_plugin()
233 val = snd_hda_codec_read(codec, 0x1c, 0, 0xca0, 0x0); in cx_process_headset_plugin()
234 if (val & 0x080) { in cx_process_headset_plugin()
235 codec_dbg(codec, "headset type detect done!\n"); in cx_process_headset_plugin()
241 val = snd_hda_codec_read(codec, 0x1c, 0, 0xcb0, 0x0); in cx_process_headset_plugin()
242 if (val & 0x800) { in cx_process_headset_plugin()
243 codec_dbg(codec, "headset plugin, type is CTIA\n"); in cx_process_headset_plugin()
244 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24); in cx_process_headset_plugin()
245 } else if (val & 0x400) { in cx_process_headset_plugin()
246 codec_dbg(codec, "headset plugin, type is OMTP\n"); in cx_process_headset_plugin()
247 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24); in cx_process_headset_plugin()
249 codec_dbg(codec, "headphone plugin\n"); in cx_process_headset_plugin()
253 static void cx_update_headset_mic_vref(struct hda_codec *codec, unsigned int res) in cx_update_headset_mic_vref() argument
256 struct conexant_spec *spec = codec->spec; in cx_update_headset_mic_vref()
262 phone_tag = snd_hda_codec_read(codec, 0x16, 0, AC_VERB_GET_UNSOLICITED_RESPONSE, 0x0); in cx_update_headset_mic_vref()
263 mic_tag = snd_hda_codec_read(codec, 0x19, 0, AC_VERB_GET_UNSOLICITED_RESPONSE, 0x0); in cx_update_headset_mic_vref()
266 phone_present = snd_hda_codec_read(codec, 0x16, 0, AC_VERB_GET_PIN_SENSE, 0x0); in cx_update_headset_mic_vref()
268 spec->headset_present_flag = CX_HEADSET_NOPRESENT; in cx_update_headset_mic_vref()
269 snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x20); in cx_update_headset_mic_vref()
272 if (spec->headset_present_flag == CX_HEADSET_NOPRESENT) { in cx_update_headset_mic_vref()
273 spec->headset_present_flag = CX_HEADSET_PARTPRESENT; in cx_update_headset_mic_vref()
274 } else if (spec->headset_present_flag == CX_HEADSET_PARTPRESENT) { in cx_update_headset_mic_vref()
275 mic_persent = snd_hda_codec_read(codec, 0x19, 0, in cx_update_headset_mic_vref()
276 AC_VERB_GET_PIN_SENSE, 0x0); in cx_update_headset_mic_vref()
280 cx_process_headset_plugin(codec); in cx_update_headset_mic_vref()
281 spec->headset_present_flag = CX_HEADSET_ALLPRESENT; in cx_update_headset_mic_vref()
287 static void cx_jack_unsol_event(struct hda_codec *codec, unsigned int res) in cx_jack_unsol_event() argument
289 struct conexant_spec *spec = codec->spec; in cx_jack_unsol_event()
291 if (spec->is_cx8070_sn6140) in cx_jack_unsol_event()
292 cx_update_headset_mic_vref(codec, res); in cx_jack_unsol_event()
294 snd_hda_jack_unsol_event(codec, res); in cx_jack_unsol_event()
298 static int cx_auto_suspend(struct hda_codec *codec) in cx_auto_suspend() argument
300 cx_auto_shutdown(codec); in cx_auto_suspend()
301 return 0; in cx_auto_suspend()
318 * pin fix-up
353 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic() argument
356 struct conexant_spec *spec = codec->spec; in cxt_fixup_stereo_dmic()
357 spec->gen.inv_dmic_split = 1; in cxt_fixup_stereo_dmic()
360 static void cxt5066_increase_mic_boost(struct hda_codec *codec, in cxt5066_increase_mic_boost() argument
366 snd_hda_override_amp_caps(codec, 0x17, HDA_OUTPUT, in cxt5066_increase_mic_boost()
367 (0x3 << AC_AMPCAP_OFFSET_SHIFT) | in cxt5066_increase_mic_boost()
368 (0x4 << AC_AMPCAP_NUM_STEPS_SHIFT) | in cxt5066_increase_mic_boost()
369 (0x27 << AC_AMPCAP_STEP_SIZE_SHIFT) | in cxt5066_increase_mic_boost()
370 (0 << AC_AMPCAP_MUTE_SHIFT)); in cxt5066_increase_mic_boost()
373 static void cxt_update_headset_mode(struct hda_codec *codec) in cxt_update_headset_mode() argument
375 /* The verbs used in this function were tested on a Conexant CX20751/2 codec. */ in cxt_update_headset_mode()
378 struct conexant_spec *spec = codec->spec; in cxt_update_headset_mode()
379 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in cxt_update_headset_mode()
381 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode()
383 for (i = 0; i < cfg->num_inputs; i++) in cxt_update_headset_mode()
384 if (cfg->inputs[i].pin == mux_pin) { in cxt_update_headset_mode()
385 mic_mode = !!cfg->inputs[i].is_headphone_mic; in cxt_update_headset_mode()
390 …snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x7c); /* enable merged mode for analog int-mic */ in cxt_update_headset_mode()
391 spec->gen.hp_jack_present = false; in cxt_update_headset_mode()
393 …snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x54); /* disable merged mode for analog int-mic … in cxt_update_headset_mode()
394 spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); in cxt_update_headset_mode()
397 snd_hda_gen_update_outputs(codec); in cxt_update_headset_mode()
400 static void cxt_update_headset_mode_hook(struct hda_codec *codec, in cxt_update_headset_mode_hook() argument
404 cxt_update_headset_mode(codec); in cxt_update_headset_mode_hook()
407 static void cxt_fixup_headphone_mic(struct hda_codec *codec, in cxt_fixup_headphone_mic() argument
410 struct conexant_spec *spec = codec->spec; in cxt_fixup_headphone_mic()
414 spec->parse_flags |= HDA_PINCFG_HEADPHONE_MIC; in cxt_fixup_headphone_mic()
415 snd_hdac_regmap_add_vendor_verb(&codec->core, 0x410); in cxt_fixup_headphone_mic()
418 WARN_ON(spec->gen.cap_sync_hook); in cxt_fixup_headphone_mic()
419 spec->gen.cap_sync_hook = cxt_update_headset_mode_hook; in cxt_fixup_headphone_mic()
420 spec->gen.automute_hook = cxt_update_headset_mode; in cxt_fixup_headphone_mic()
423 cxt_update_headset_mode(codec); in cxt_fixup_headphone_mic()
428 static void cxt_fixup_headset_mic(struct hda_codec *codec, in cxt_fixup_headset_mic() argument
431 struct conexant_spec *spec = codec->spec; in cxt_fixup_headset_mic()
435 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in cxt_fixup_headset_mic()
442 /* OLPC XO-1.5 supports DC input mode (e.g. for use with analog sensors)
445 * external microphones are disabled. Gain is fixed at 0dB. In this mode,
449 #define update_mic_pin(codec, nid, val) \ argument
450 snd_hda_codec_write_cache(codec, nid, 0, \
462 static void olpc_xo_update_mic_boost(struct hda_codec *codec) in olpc_xo_update_mic_boost() argument
464 struct conexant_spec *spec = codec->spec; in olpc_xo_update_mic_boost()
467 for (ch = 0; ch < 2; ch++) { in olpc_xo_update_mic_boost()
470 if (!spec->dc_enable) in olpc_xo_update_mic_boost()
471 val |= snd_hda_codec_amp_read(codec, 0x17, ch, HDA_OUTPUT, 0); in olpc_xo_update_mic_boost()
472 snd_hda_codec_write(codec, 0x17, 0, in olpc_xo_update_mic_boost()
477 static void olpc_xo_update_mic_pins(struct hda_codec *codec) in olpc_xo_update_mic_pins() argument
479 struct conexant_spec *spec = codec->spec; in olpc_xo_update_mic_pins()
483 cur_input = spec->gen.input_paths[0][spec->gen.cur_mux[0]]; in olpc_xo_update_mic_pins()
485 /* Set up mic pins for port-B, C and F dynamically as the recording in olpc_xo_update_mic_pins()
488 if (!spec->dc_enable) { in olpc_xo_update_mic_pins()
490 update_mic_pin(codec, 0x1e, 0); in olpc_xo_update_mic_pins()
491 snd_hda_activate_path(codec, spec->dc_mode_path, false, false); in olpc_xo_update_mic_pins()
500 update_mic_pin(codec, 0x1a, spec->recording ? in olpc_xo_update_mic_pins()
501 snd_hda_codec_get_pin_target(codec, 0x1a) : 0); in olpc_xo_update_mic_pins()
502 update_mic_pin(codec, 0x1b, spec->recording ? in olpc_xo_update_mic_pins()
503 snd_hda_codec_get_pin_target(codec, 0x1b) : 0); in olpc_xo_update_mic_pins()
505 path = snd_hda_get_path_from_idx(codec, cur_input); in olpc_xo_update_mic_pins()
507 snd_hda_activate_path(codec, path, true, false); in olpc_xo_update_mic_pins()
510 path = snd_hda_get_path_from_idx(codec, cur_input); in olpc_xo_update_mic_pins()
512 snd_hda_activate_path(codec, path, false, false); in olpc_xo_update_mic_pins()
519 if (spec->recording) in olpc_xo_update_mic_pins()
520 val = olpc_xo_dc_bias.items[spec->dc_input_bias].index; in olpc_xo_update_mic_pins()
522 val = 0; in olpc_xo_update_mic_pins()
523 update_mic_pin(codec, 0x1a, val); in olpc_xo_update_mic_pins()
524 update_mic_pin(codec, 0x1b, 0); in olpc_xo_update_mic_pins()
526 update_mic_pin(codec, 0x1e, spec->recording ? PIN_IN : 0); in olpc_xo_update_mic_pins()
527 snd_hda_activate_path(codec, spec->dc_mode_path, true, false); in olpc_xo_update_mic_pins()
532 static void olpc_xo_automic(struct hda_codec *codec, in olpc_xo_automic() argument
535 struct conexant_spec *spec = codec->spec; in olpc_xo_automic()
538 if (!spec->dc_enable) in olpc_xo_automic()
539 snd_hda_gen_mic_autoswitch(codec, jack); in olpc_xo_automic()
540 olpc_xo_update_mic_pins(codec); in olpc_xo_automic()
541 if (spec->dc_enable) in olpc_xo_automic()
542 olpc_xo_update_mic_boost(codec); in olpc_xo_automic()
547 struct hda_codec *codec, in olpc_xo_capture_hook() argument
551 struct conexant_spec *spec = codec->spec; in olpc_xo_capture_hook()
553 /* toggle spec->recording flag and update mic pins accordingly in olpc_xo_capture_hook()
558 spec->recording = 1; in olpc_xo_capture_hook()
559 olpc_xo_update_mic_pins(codec); in olpc_xo_capture_hook()
562 spec->recording = 0; in olpc_xo_capture_hook()
563 olpc_xo_update_mic_pins(codec); in olpc_xo_capture_hook()
571 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_mode_get() local
572 struct conexant_spec *spec = codec->spec; in olpc_xo_dc_mode_get()
573 ucontrol->value.integer.value[0] = spec->dc_enable; in olpc_xo_dc_mode_get()
574 return 0; in olpc_xo_dc_mode_get()
580 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_mode_put() local
581 struct conexant_spec *spec = codec->spec; in olpc_xo_dc_mode_put()
582 int dc_enable = !!ucontrol->value.integer.value[0]; in olpc_xo_dc_mode_put()
584 if (dc_enable == spec->dc_enable) in olpc_xo_dc_mode_put()
585 return 0; in olpc_xo_dc_mode_put()
587 spec->dc_enable = dc_enable; in olpc_xo_dc_mode_put()
588 olpc_xo_update_mic_pins(codec); in olpc_xo_dc_mode_put()
589 olpc_xo_update_mic_boost(codec); in olpc_xo_dc_mode_put()
596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_bias_enum_get() local
597 struct conexant_spec *spec = codec->spec; in olpc_xo_dc_bias_enum_get()
598 ucontrol->value.enumerated.item[0] = spec->dc_input_bias; in olpc_xo_dc_bias_enum_get()
599 return 0; in olpc_xo_dc_bias_enum_get()
611 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_bias_enum_put() local
612 struct conexant_spec *spec = codec->spec; in olpc_xo_dc_bias_enum_put()
616 idx = ucontrol->value.enumerated.item[0]; in olpc_xo_dc_bias_enum_put()
617 if (idx >= imux->num_items) in olpc_xo_dc_bias_enum_put()
618 idx = imux->num_items - 1; in olpc_xo_dc_bias_enum_put()
619 if (spec->dc_input_bias == idx) in olpc_xo_dc_bias_enum_put()
620 return 0; in olpc_xo_dc_bias_enum_put()
622 spec->dc_input_bias = idx; in olpc_xo_dc_bias_enum_put()
623 if (spec->dc_enable) in olpc_xo_dc_bias_enum_put()
624 olpc_xo_update_mic_pins(codec); in olpc_xo_dc_bias_enum_put()
652 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_mic_boost_put() local
653 struct conexant_spec *spec = codec->spec; in olpc_xo_mic_boost_put()
655 if (ret > 0 && spec->dc_enable) in olpc_xo_mic_boost_put()
656 olpc_xo_update_mic_boost(codec); in olpc_xo_mic_boost_put()
660 static void cxt_fixup_olpc_xo(struct hda_codec *codec, in cxt_fixup_olpc_xo() argument
663 struct conexant_spec *spec = codec->spec; in cxt_fixup_olpc_xo()
670 spec->gen.mic_autoswitch_hook = olpc_xo_automic; in cxt_fixup_olpc_xo()
671 spec->gen.pcm_capture_hook = olpc_xo_capture_hook; in cxt_fixup_olpc_xo()
672 spec->dc_mode_path = snd_hda_add_new_path(codec, 0x1e, 0x14, 0); in cxt_fixup_olpc_xo()
674 snd_hda_add_new_ctls(codec, olpc_xo_mixers); in cxt_fixup_olpc_xo()
678 * with the DC input range of the codec. in cxt_fixup_olpc_xo()
680 snd_hda_codec_set_pin_target(codec, 0x1a, PIN_VREF50); in cxt_fixup_olpc_xo()
683 snd_array_for_each(&spec->gen.kctls, i, kctl) { in cxt_fixup_olpc_xo()
684 if (!strcmp(kctl->name, "Mic Boost Volume")) { in cxt_fixup_olpc_xo()
685 kctl->put = olpc_xo_mic_boost_put; in cxt_fixup_olpc_xo()
691 static void cxt_fixup_mute_led_eapd(struct hda_codec *codec, in cxt_fixup_mute_led_eapd() argument
694 struct conexant_spec *spec = codec->spec; in cxt_fixup_mute_led_eapd()
697 spec->mute_led_eapd = 0x1b; in cxt_fixup_mute_led_eapd()
698 spec->dynamic_eapd = true; in cxt_fixup_mute_led_eapd()
699 snd_hda_gen_add_mute_led_cdev(codec, cx_auto_vmaster_mute_led); in cxt_fixup_mute_led_eapd()
704 * Fix max input level on mixer widget to 0dB
705 * (originally it has 0x2b steps with 0dB offset 0x14)
707 static void cxt_fixup_cap_mix_amp(struct hda_codec *codec, in cxt_fixup_cap_mix_amp() argument
710 snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, in cxt_fixup_cap_mix_amp()
711 (0x14 << AC_AMPCAP_OFFSET_SHIFT) | in cxt_fixup_cap_mix_amp()
712 (0x14 << AC_AMPCAP_NUM_STEPS_SHIFT) | in cxt_fixup_cap_mix_amp()
713 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | in cxt_fixup_cap_mix_amp()
718 * Fix max input level on mixer widget to 0dB
719 * (originally it has 0x1e steps with 0 dB offset 0x17)
721 static void cxt_fixup_cap_mix_amp_5047(struct hda_codec *codec, in cxt_fixup_cap_mix_amp_5047() argument
724 snd_hda_override_amp_caps(codec, 0x10, HDA_INPUT, in cxt_fixup_cap_mix_amp_5047()
725 (0x17 << AC_AMPCAP_OFFSET_SHIFT) | in cxt_fixup_cap_mix_amp_5047()
726 (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | in cxt_fixup_cap_mix_amp_5047()
727 (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | in cxt_fixup_cap_mix_amp_5047()
731 static void cxt_fixup_hp_gate_mic_jack(struct hda_codec *codec, in cxt_fixup_hp_gate_mic_jack() argument
735 /* the mic pin (0x19) doesn't give an unsolicited event; in cxt_fixup_hp_gate_mic_jack()
736 * probe the mic pin together with the headphone pin (0x16) in cxt_fixup_hp_gate_mic_jack()
739 snd_hda_jack_set_gating_jack(codec, 0x19, 0x16); in cxt_fixup_hp_gate_mic_jack()
743 static void cxt_update_gpio_led(struct hda_codec *codec, unsigned int mask, in cxt_update_gpio_led() argument
746 struct conexant_spec *spec = codec->spec; in cxt_update_gpio_led()
747 unsigned int oldval = spec->gpio_led; in cxt_update_gpio_led()
749 if (spec->mute_led_polarity) in cxt_update_gpio_led()
753 spec->gpio_led |= mask; in cxt_update_gpio_led()
755 spec->gpio_led &= ~mask; in cxt_update_gpio_led()
756 codec_dbg(codec, "mask:%d enabled:%d gpio_led:%d\n", in cxt_update_gpio_led()
757 mask, led_on, spec->gpio_led); in cxt_update_gpio_led()
758 if (spec->gpio_led != oldval) in cxt_update_gpio_led()
759 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, in cxt_update_gpio_led()
760 spec->gpio_led); in cxt_update_gpio_led()
767 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in cxt_gpio_mute_update() local
768 struct conexant_spec *spec = codec->spec; in cxt_gpio_mute_update()
770 cxt_update_gpio_led(codec, spec->gpio_mute_led_mask, brightness); in cxt_gpio_mute_update()
771 return 0; in cxt_gpio_mute_update()
774 /* turn on/off mic-mute LED via GPIO per capture hook */
778 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in cxt_gpio_micmute_update() local
779 struct conexant_spec *spec = codec->spec; in cxt_gpio_micmute_update()
781 cxt_update_gpio_led(codec, spec->gpio_mic_led_mask, brightness); in cxt_gpio_micmute_update()
782 return 0; in cxt_gpio_micmute_update()
785 static void cxt_setup_mute_led(struct hda_codec *codec, in cxt_setup_mute_led() argument
788 struct conexant_spec *spec = codec->spec; in cxt_setup_mute_led()
790 spec->gpio_led = 0; in cxt_setup_mute_led()
791 spec->mute_led_polarity = 0; in cxt_setup_mute_led()
793 snd_hda_gen_add_mute_led_cdev(codec, cxt_gpio_mute_update); in cxt_setup_mute_led()
794 spec->gpio_mute_led_mask = mute; in cxt_setup_mute_led()
797 snd_hda_gen_add_micmute_led_cdev(codec, cxt_gpio_micmute_update); in cxt_setup_mute_led()
798 spec->gpio_mic_led_mask = mic_mute; in cxt_setup_mute_led()
802 static void cxt_fixup_mute_led_gpio(struct hda_codec *codec, in cxt_fixup_mute_led_gpio() argument
806 cxt_setup_mute_led(codec, 0x01, 0x02); in cxt_fixup_mute_led_gpio()
809 static void cxt_fixup_hp_zbook_mute_led(struct hda_codec *codec, in cxt_fixup_hp_zbook_mute_led() argument
813 cxt_setup_mute_led(codec, 0x10, 0x20); in cxt_fixup_hp_zbook_mute_led()
818 { 0x16, 0x042140ff }, /* HP (seq# overridden) */
819 { 0x17, 0x21a11000 }, /* dock-mic */
820 { 0x19, 0x2121103f }, /* dock-HP */
821 { 0x1c, 0x21440100 }, /* dock SPDIF out */
827 { 0x19, 0x042110ff }, /* HP (seq# overridden) */
828 { 0x1a, 0x21a190f0 }, /* dock-mic */
829 { 0x1c, 0x212140ff }, /* dock-HP */
835 { 0x1a, 0x90a10020 }, /* Internal mic */
836 { 0x1b, 0x03a11020 }, /* External mic */
837 { 0x1d, 0x400101f0 }, /* Not used */
838 { 0x1e, 0x40a701f0 }, /* Not used */
839 { 0x20, 0x404501f0 }, /* Not used */
840 { 0x22, 0x404401f0 }, /* Not used */
841 { 0x23, 0x40a701f0 }, /* Not used */
845 /* SuoWoSi/South-holding JS201D with sn6140 */
847 { 0x16, 0x03211040 }, /* hp out */
848 { 0x17, 0x91170110 }, /* SPK/Class_D */
849 { 0x18, 0x95a70130 }, /* Internal mic */
850 { 0x19, 0x03a11020 }, /* Headset Mic */
851 { 0x1a, 0x40f001f0 }, /* Not used */
852 { 0x21, 0x40f001f0 }, /* Not used */
880 /* 0x17 was falsely set up as a mic, it should 0x1d */
881 { 0x17, 0x400001f0 },
882 { 0x1d, 0x97a70120 },
893 { 0x1a, 0x05d71030 },
907 { 0x18, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
918 { 0x01, AC_VERB_SET_GPIO_MASK, 0x01 },
919 { 0x01, AC_VERB_SET_GPIO_DIRECTION, 0x01 },
920 { 0x01, AC_VERB_SET_GPIO_DATA, 0x01 },
945 { 0x10, 0x961701f0 }, /* speaker/hp */
946 { 0x12, 0x02a1901e }, /* ext mic */
947 { 0x14, 0x95a70110 }, /* int mic */
954 { 0x12, 0x90a60160 }, /* int mic */
971 { 0x16, 0x21011020 }, /* line-out */
972 { 0x18, 0x2181103f }, /* line-in */
981 /* enable NID 0x1d for the speaker on top */
982 { 0x1d, 0x91170111 },
1005 { 0x1a, 0x02a1113c },
1018 SND_PCI_QUIRK(0x103c, 0x30d5, "HP 530", CXT_FIXUP_HP_530),
1019 SND_PCI_QUIRK(0x1179, 0xff31, "Toshiba P105", CXT_FIXUP_TOSHIBA_P105),
1020 /* HP, Packard Bell, Fujitsu-Siemens & Lenovo laptops have
1021 * really bad sound over 0dB on NID 0x17.
1023 SND_PCI_QUIRK_VENDOR(0x103c, "HP", CXT_FIXUP_CAP_MIX_AMP),
1024 SND_PCI_QUIRK_VENDOR(0x1631, "Packard Bell", CXT_FIXUP_CAP_MIX_AMP),
1025 SND_PCI_QUIRK_VENDOR(0x1734, "Fujitsu", CXT_FIXUP_CAP_MIX_AMP),
1026 SND_PCI_QUIRK_VENDOR(0x17aa, "Lenovo", CXT_FIXUP_CAP_MIX_AMP),
1031 { .id = CXT_FIXUP_CAP_MIX_AMP, .name = "cap-mix-amp" },
1032 { .id = CXT_FIXUP_TOSHIBA_P105, .name = "toshiba-p105" },
1033 { .id = CXT_FIXUP_HP_530, .name = "hp-530" },
1038 /* HP laptops have really bad sound over 0 dB on NID 0x10.
1040 SND_PCI_QUIRK_VENDOR(0x103c, "HP", CXT_FIXUP_CAP_MIX_AMP_5047),
1045 { .id = CXT_FIXUP_CAP_MIX_AMP_5047, .name = "cap-mix-amp" },
1050 SND_PCI_QUIRK(0x103c, 0x360b, "Compaq CQ60", CXT_PINCFG_COMPAQ_CQ60),
1051 SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo X200", CXT_PINCFG_LENOVO_X200),
1056 { .id = CXT_PINCFG_LENOVO_X200, .name = "lenovo-x200" },
1061 SND_PCI_QUIRK(0x1025, 0x0543, "Acer Aspire One 522", CXT_FIXUP_STEREO_DMIC),
1062 SND_PCI_QUIRK(0x1025, 0x054c, "Acer Aspire 3830TG", CXT_FIXUP_ASPIRE_DMIC),
1063 SND_PCI_QUIRK(0x1025, 0x054f, "Acer Aspire 4830T", CXT_FIXUP_ASPIRE_DMIC),
1064 SND_PCI_QUIRK(0x103c, 0x8079, "HP EliteBook 840 G3", CXT_FIXUP_HP_DOCK),
1065 SND_PCI_QUIRK(0x103c, 0x807C, "HP EliteBook 820 G3", CXT_FIXUP_HP_DOCK),
1066 SND_PCI_QUIRK(0x103c, 0x80FD, "HP ProBook 640 G2", CXT_FIXUP_HP_DOCK),
1067 SND_PCI_QUIRK(0x103c, 0x8115, "HP Z1 Gen3", CXT_FIXUP_HP_GATE_MIC),
1068 SND_PCI_QUIRK(0x103c, 0x814f, "HP ZBook 15u G3", CXT_FIXUP_MUTE_LED_GPIO),
1069 SND_PCI_QUIRK(0x103c, 0x8174, "HP Spectre x360", CXT_FIXUP_HP_SPECTRE),
1070 SND_PCI_QUIRK(0x103c, 0x822e, "HP ProBook 440 G4", CXT_FIXUP_MUTE_LED_GPIO),
1071 SND_PCI_QUIRK(0x103c, 0x828c, "HP EliteBook 840 G4", CXT_FIXUP_HP_DOCK),
1072 SND_PCI_QUIRK(0x103c, 0x8299, "HP 800 G3 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1073 SND_PCI_QUIRK(0x103c, 0x829a, "HP 800 G3 DM", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1074 SND_PCI_QUIRK(0x103c, 0x82b4, "HP ProDesk 600 G3", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1075 SND_PCI_QUIRK(0x103c, 0x836e, "HP ProBook 455 G5", CXT_FIXUP_MUTE_LED_GPIO),
1076 SND_PCI_QUIRK(0x103c, 0x837f, "HP ProBook 470 G5", CXT_FIXUP_MUTE_LED_GPIO),
1077 SND_PCI_QUIRK(0x103c, 0x83b2, "HP EliteBook 840 G5", CXT_FIXUP_HP_DOCK),
1078 SND_PCI_QUIRK(0x103c, 0x83b3, "HP EliteBook 830 G5", CXT_FIXUP_HP_DOCK),
1079 SND_PCI_QUIRK(0x103c, 0x83d3, "HP ProBook 640 G4", CXT_FIXUP_HP_DOCK),
1080 SND_PCI_QUIRK(0x103c, 0x8402, "HP ProBook 645 G4", CXT_FIXUP_MUTE_LED_GPIO),
1081 SND_PCI_QUIRK(0x103c, 0x8427, "HP ZBook Studio G5", CXT_FIXUP_HP_ZBOOK_MUTE_LED),
1082 SND_PCI_QUIRK(0x103c, 0x844f, "HP ZBook Studio G5", CXT_FIXUP_HP_ZBOOK_MUTE_LED),
1083 SND_PCI_QUIRK(0x103c, 0x8455, "HP Z2 G4", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1084 SND_PCI_QUIRK(0x103c, 0x8456, "HP Z2 G4 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1085 SND_PCI_QUIRK(0x103c, 0x8457, "HP Z2 G4 mini", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1086 SND_PCI_QUIRK(0x103c, 0x8458, "HP Z2 G4 mini premium", CXT_FIXUP_HP_MIC_NO_PRESENCE),
1087 SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN),
1088 SND_PCI_QUIRK(0x14f1, 0x0265, "SWS JS201D", CXT_PINCFG_SWS_JS201D),
1089 SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO),
1090 SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410),
1091 SND_PCI_QUIRK(0x17aa, 0x215e, "Lenovo T410", CXT_PINCFG_LENOVO_TP410),
1092 SND_PCI_QUIRK(0x17aa, 0x215f, "Lenovo T510", CXT_PINCFG_LENOVO_TP410),
1093 SND_PCI_QUIRK(0x17aa, 0x21ce, "Lenovo T420", CXT_PINCFG_LENOVO_TP410),
1094 SND_PCI_QUIRK(0x17aa, 0x21cf, "Lenovo T520", CXT_PINCFG_LENOVO_TP410),
1095 SND_PCI_QUIRK(0x17aa, 0x21d2, "Lenovo T420s", CXT_PINCFG_LENOVO_TP410),
1096 SND_PCI_QUIRK(0x17aa, 0x21da, "Lenovo X220", CXT_PINCFG_LENOVO_TP410),
1097 SND_PCI_QUIRK(0x17aa, 0x21db, "Lenovo X220-tablet", CXT_PINCFG_LENOVO_TP410),
1098 SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo IdeaPad Z560", CXT_FIXUP_MUTE_LED_EAPD),
1099 SND_PCI_QUIRK(0x17aa, 0x3905, "Lenovo G50-30", CXT_FIXUP_STEREO_DMIC),
1100 SND_PCI_QUIRK(0x17aa, 0x390b, "Lenovo G50-80", CXT_FIXUP_STEREO_DMIC),
1101 SND_PCI_QUIRK(0x17aa, 0x3975, "Lenovo U300s", CXT_FIXUP_STEREO_DMIC),
1105 SND_PCI_QUIRK(0x17aa, 0x3977, "Lenovo IdeaPad U310", CXT_FIXUP_STEREO_DMIC),
1106 SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo G50-70", CXT_FIXUP_STEREO_DMIC),
1107 SND_PCI_QUIRK(0x17aa, 0x397b, "Lenovo S205", CXT_FIXUP_STEREO_DMIC),
1108 SND_PCI_QUIRK_VENDOR(0x17aa, "Thinkpad", CXT_FIXUP_THINKPAD_ACPI),
1109 SND_PCI_QUIRK(0x1c06, 0x2011, "Lemote A1004", CXT_PINCFG_LEMOTE_A1004),
1110 SND_PCI_QUIRK(0x1c06, 0x2012, "Lemote A1205", CXT_PINCFG_LEMOTE_A1205),
1115 { .id = CXT_FIXUP_STEREO_DMIC, .name = "stereo-dmic" },
1117 { .id = CXT_FIXUP_HEADPHONE_MIC_PIN, .name = "headphone-mic-pin" },
1120 { .id = CXT_PINCFG_LEMOTE_A1004, .name = "lemote-a1004" },
1121 { .id = CXT_PINCFG_LEMOTE_A1205, .name = "lemote-a1205" },
1122 { .id = CXT_FIXUP_OLPC_XO, .name = "olpc-xo" },
1123 { .id = CXT_FIXUP_MUTE_LED_EAPD, .name = "mute-led-eapd" },
1124 { .id = CXT_FIXUP_HP_DOCK, .name = "hp-dock" },
1125 { .id = CXT_FIXUP_MUTE_LED_GPIO, .name = "mute-led-gpio" },
1126 { .id = CXT_FIXUP_HP_ZBOOK_MUTE_LED, .name = "hp-zbook-mute-led" },
1127 { .id = CXT_FIXUP_HP_MIC_NO_PRESENCE, .name = "hp-mic-fix" },
1128 { .id = CXT_PINCFG_LENOVO_NOTEBOOK, .name = "lenovo-20149" },
1129 { .id = CXT_PINCFG_SWS_JS201D, .name = "sws-js201d" },
1133 /* add "fake" mute amp-caps to DACs on cx5051 so that mixer mute switches
1136 static void add_cx5051_fake_mutes(struct hda_codec *codec) in add_cx5051_fake_mutes() argument
1138 struct conexant_spec *spec = codec->spec; in add_cx5051_fake_mutes()
1140 0x10, 0x11, 0 in add_cx5051_fake_mutes()
1145 snd_hda_override_amp_caps(codec, *p, HDA_OUTPUT, in add_cx5051_fake_mutes()
1147 query_amp_caps(codec, *p, HDA_OUTPUT)); in add_cx5051_fake_mutes()
1148 spec->gen.dac_min_mute = true; in add_cx5051_fake_mutes()
1151 static int patch_conexant_auto(struct hda_codec *codec) in patch_conexant_auto() argument
1156 codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); in patch_conexant_auto()
1160 return -ENOMEM; in patch_conexant_auto()
1161 snd_hda_gen_spec_init(&spec->gen); in patch_conexant_auto()
1162 codec->spec = spec; in patch_conexant_auto()
1163 codec->patch_ops = cx_auto_patch_ops; in patch_conexant_auto()
1166 switch (codec->core.vendor_id) { in patch_conexant_auto()
1167 case 0x14f11f86: in patch_conexant_auto()
1168 case 0x14f11f87: in patch_conexant_auto()
1169 spec->is_cx8070_sn6140 = true; in patch_conexant_auto()
1170 spec->headset_present_flag = CX_HEADSET_NOPRESENT; in patch_conexant_auto()
1174 cx_auto_parse_eapd(codec); in patch_conexant_auto()
1175 spec->gen.own_eapd_ctl = 1; in patch_conexant_auto()
1177 switch (codec->core.vendor_id) { in patch_conexant_auto()
1178 case 0x14f15045: in patch_conexant_auto()
1179 codec->single_adc_amp = 1; in patch_conexant_auto()
1180 spec->gen.mixer_nid = 0x17; in patch_conexant_auto()
1181 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in patch_conexant_auto()
1182 snd_hda_pick_fixup(codec, cxt5045_fixup_models, in patch_conexant_auto()
1185 case 0x14f15047: in patch_conexant_auto()
1186 codec->pin_amp_workaround = 1; in patch_conexant_auto()
1187 spec->gen.mixer_nid = 0x19; in patch_conexant_auto()
1188 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in patch_conexant_auto()
1189 snd_hda_pick_fixup(codec, cxt5047_fixup_models, in patch_conexant_auto()
1192 case 0x14f15051: in patch_conexant_auto()
1193 add_cx5051_fake_mutes(codec); in patch_conexant_auto()
1194 codec->pin_amp_workaround = 1; in patch_conexant_auto()
1195 snd_hda_pick_fixup(codec, cxt5051_fixup_models, in patch_conexant_auto()
1198 case 0x14f15098: in patch_conexant_auto()
1199 codec->pin_amp_workaround = 1; in patch_conexant_auto()
1200 spec->gen.mixer_nid = 0x22; in patch_conexant_auto()
1201 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in patch_conexant_auto()
1202 snd_hda_pick_fixup(codec, cxt5066_fixup_models, in patch_conexant_auto()
1205 case 0x14f150f2: in patch_conexant_auto()
1206 codec->power_save_node = 1; in patch_conexant_auto()
1209 codec->pin_amp_workaround = 1; in patch_conexant_auto()
1210 snd_hda_pick_fixup(codec, cxt5066_fixup_models, in patch_conexant_auto()
1215 if (!spec->gen.vmaster_mute.hook && spec->dynamic_eapd) in patch_conexant_auto()
1216 spec->gen.vmaster_mute.hook = cx_auto_vmaster_hook; in patch_conexant_auto()
1218 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); in patch_conexant_auto()
1220 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, in patch_conexant_auto()
1221 spec->parse_flags); in patch_conexant_auto()
1222 if (err < 0) in patch_conexant_auto()
1225 err = cx_auto_parse_beep(codec); in patch_conexant_auto()
1226 if (err < 0) in patch_conexant_auto()
1229 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in patch_conexant_auto()
1230 if (err < 0) in patch_conexant_auto()
1234 * which falls into the single-cmd mode. in patch_conexant_auto()
1237 if (!codec->bus->core.sync_write) { in patch_conexant_auto()
1238 codec_info(codec, in patch_conexant_auto()
1240 codec->bus->core.sync_write = 1; in patch_conexant_auto()
1241 codec->bus->allow_bus_reset = 1; in patch_conexant_auto()
1244 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); in patch_conexant_auto()
1246 return 0; in patch_conexant_auto()
1249 cx_auto_free(codec); in patch_conexant_auto()
1257 HDA_CODEC_ENTRY(0x14f11f86, "CX8070", patch_conexant_auto),
1258 HDA_CODEC_ENTRY(0x14f11f87, "SN6140", patch_conexant_auto),
1259 HDA_CODEC_ENTRY(0x14f12008, "CX8200", patch_conexant_auto),
1260 HDA_CODEC_ENTRY(0x14f120d0, "CX11970", patch_conexant_auto),
1261 HDA_CODEC_ENTRY(0x14f120d1, "SN6180", patch_conexant_auto),
1262 HDA_CODEC_ENTRY(0x14f15045, "CX20549 (Venice)", patch_conexant_auto),
1263 HDA_CODEC_ENTRY(0x14f15047, "CX20551 (Waikiki)", patch_conexant_auto),
1264 HDA_CODEC_ENTRY(0x14f15051, "CX20561 (Hermosa)", patch_conexant_auto),
1265 HDA_CODEC_ENTRY(0x14f15066, "CX20582 (Pebble)", patch_conexant_auto),
1266 HDA_CODEC_ENTRY(0x14f15067, "CX20583 (Pebble HSF)", patch_conexant_auto),
1267 HDA_CODEC_ENTRY(0x14f15068, "CX20584", patch_conexant_auto),
1268 HDA_CODEC_ENTRY(0x14f15069, "CX20585", patch_conexant_auto),
1269 HDA_CODEC_ENTRY(0x14f1506c, "CX20588", patch_conexant_auto),
1270 HDA_CODEC_ENTRY(0x14f1506e, "CX20590", patch_conexant_auto),
1271 HDA_CODEC_ENTRY(0x14f15097, "CX20631", patch_conexant_auto),
1272 HDA_CODEC_ENTRY(0x14f15098, "CX20632", patch_conexant_auto),
1273 HDA_CODEC_ENTRY(0x14f150a1, "CX20641", patch_conexant_auto),
1274 HDA_CODEC_ENTRY(0x14f150a2, "CX20642", patch_conexant_auto),
1275 HDA_CODEC_ENTRY(0x14f150ab, "CX20651", patch_conexant_auto),
1276 HDA_CODEC_ENTRY(0x14f150ac, "CX20652", patch_conexant_auto),
1277 HDA_CODEC_ENTRY(0x14f150b8, "CX20664", patch_conexant_auto),
1278 HDA_CODEC_ENTRY(0x14f150b9, "CX20665", patch_conexant_auto),
1279 HDA_CODEC_ENTRY(0x14f150f1, "CX21722", patch_conexant_auto),
1280 HDA_CODEC_ENTRY(0x14f150f2, "CX20722", patch_conexant_auto),
1281 HDA_CODEC_ENTRY(0x14f150f3, "CX21724", patch_conexant_auto),
1282 HDA_CODEC_ENTRY(0x14f150f4, "CX20724", patch_conexant_auto),
1283 HDA_CODEC_ENTRY(0x14f1510f, "CX20751/2", patch_conexant_auto),
1284 HDA_CODEC_ENTRY(0x14f15110, "CX20751/2", patch_conexant_auto),
1285 HDA_CODEC_ENTRY(0x14f15111, "CX20753/4", patch_conexant_auto),
1286 HDA_CODEC_ENTRY(0x14f15113, "CX20755", patch_conexant_auto),
1287 HDA_CODEC_ENTRY(0x14f15114, "CX20756", patch_conexant_auto),
1288 HDA_CODEC_ENTRY(0x14f15115, "CX20757", patch_conexant_auto),
1289 HDA_CODEC_ENTRY(0x14f151d7, "CX20952", patch_conexant_auto),
1295 MODULE_DESCRIPTION("Conexant HD-audio codec");