Lines Matching refs:spec
256 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
257 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
258 msleep(spec->stream_delay); in stac_playback_pcm_hook()
266 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
269 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
272 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
273 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
284 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
289 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
338 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_hook() local
346 prev_mute = !spec->mic_enabled; in stac_capture_led_hook()
349 spec->mic_enabled |= mask; in stac_capture_led_hook()
351 spec->mic_enabled &= ~mask; in stac_capture_led_hook()
352 cur_mute = !spec->mic_enabled; in stac_capture_led_hook()
355 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_capture_led_hook()
357 spec->gpio_data &= ~spec->mic_mute_led_gpio; in stac_capture_led_hook()
358 stac_gpio_set(codec, spec->gpio_mask, in stac_capture_led_hook()
359 spec->gpio_dir, spec->gpio_data); in stac_capture_led_hook()
400 struct sigmatel_spec *spec = codec->spec; in stac_update_led_status() local
403 if (!spec->gpio_led) in stac_update_led_status()
407 if (spec->gpio_led_polarity) in stac_update_led_status()
410 if (!spec->vref_mute_led_nid) { in stac_update_led_status()
412 spec->gpio_data |= spec->gpio_led; in stac_update_led_status()
414 spec->gpio_data &= ~spec->gpio_led; in stac_update_led_status()
415 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status()
416 spec->gpio_dir, spec->gpio_data); in stac_update_led_status()
418 spec->vref_led = muted ? AC_PINCTL_VREF_50 : AC_PINCTL_VREF_GRD; in stac_update_led_status()
419 stac_vrefout_set(codec, spec->vref_mute_led_nid, in stac_update_led_status()
420 spec->vref_led); in stac_update_led_status()
433 struct sigmatel_spec *spec = codec->spec; in stac_update_outputs() local
435 if (spec->gpio_mute) in stac_update_outputs()
436 spec->gen.master_mute = in stac_update_outputs()
438 AC_VERB_GET_GPIO_DATA, 0) & spec->gpio_mute); in stac_update_outputs()
442 if (spec->eapd_mask && spec->eapd_switch) { in stac_update_outputs()
443 unsigned int val = spec->gpio_data; in stac_update_outputs()
444 if (spec->gen.speaker_muted) in stac_update_outputs()
445 val &= ~spec->eapd_mask; in stac_update_outputs()
447 val |= spec->eapd_mask; in stac_update_outputs()
448 if (spec->gpio_data != val) { in stac_update_outputs()
449 spec->gpio_data = val; in stac_update_outputs()
450 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs()
459 struct sigmatel_spec *spec = codec->spec; in stac_toggle_power_map() local
462 for (idx = 0; idx < spec->num_pwrs; idx++) { in stac_toggle_power_map()
463 if (spec->pwr_nids[idx] == nid) in stac_toggle_power_map()
466 if (idx >= spec->num_pwrs) in stac_toggle_power_map()
471 val = spec->power_map_bits; in stac_toggle_power_map()
478 if (val != spec->power_map_bits) { in stac_toggle_power_map()
479 spec->power_map_bits = val; in stac_toggle_power_map()
490 struct sigmatel_spec *spec = codec->spec; in jack_update_power() local
493 if (!spec->num_pwrs) in jack_update_power()
504 for (i = 0; i < spec->num_pwrs; i++) { in jack_update_power()
505 hda_nid_t nid = spec->pwr_nids[i]; in jack_update_power()
515 spec->power_map_bits); in jack_update_power()
535 struct sigmatel_spec *spec = codec->spec; in stac_init_power_map() local
538 for (i = 0; i < spec->num_pwrs; i++) { in stac_init_power_map()
539 hda_nid_t nid = spec->pwr_nids[i]; in stac_init_power_map()
543 spec->vref_mute_led_nid != nid && in stac_init_power_map()
568 struct sigmatel_spec *spec = codec->spec; in stac_store_hints() local
571 if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { in stac_store_hints()
572 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints()
573 spec->gpio_mask; in stac_store_hints()
575 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints()
576 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints()
577 if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) in stac_store_hints()
578 spec->gpio_data &= spec->gpio_mask; in stac_store_hints()
579 if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) in stac_store_hints()
580 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints()
581 if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) in stac_store_hints()
582 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints()
585 spec->eapd_switch = val; in stac_store_hints()
599 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_get() local
601 ucontrol->value.integer.value[0] = !!(spec->aloopback & in stac_aloopback_get()
602 (spec->aloopback_mask << idx)); in stac_aloopback_get()
610 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_put() local
615 idx_val = spec->aloopback_mask << idx; in stac_aloopback_put()
617 val = spec->aloopback | idx_val; in stac_aloopback_put()
619 val = spec->aloopback & ~idx_val; in stac_aloopback_put()
620 if (spec->aloopback == val) in stac_aloopback_put()
623 spec->aloopback = val; in stac_aloopback_put()
630 dac_mode >>= spec->aloopback_shift; in stac_aloopback_put()
632 if (spec->aloopback & idx_val) { in stac_aloopback_put()
734 struct sigmatel_spec *spec = codec->spec; in set_hp_led_gpio() local
737 if (spec->gpio_led) in set_hp_led_gpio()
743 spec->gpio_led = 0x08; /* GPIO 3 */ in set_hp_led_gpio()
745 spec->gpio_led = 0x01; /* GPIO 0 */ in set_hp_led_gpio()
770 struct sigmatel_spec *spec = codec->spec; in find_mute_led_cfg() local
773 if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) { in find_mute_led_cfg()
775 &spec->gpio_led_polarity); in find_mute_led_cfg()
781 &spec->gpio_led_polarity, in find_mute_led_cfg()
782 &spec->gpio_led) == 2) { in find_mute_led_cfg()
787 if (spec->gpio_led < max_gpio) in find_mute_led_cfg()
788 spec->gpio_led = 1 << spec->gpio_led; in find_mute_led_cfg()
790 spec->vref_mute_led_nid = spec->gpio_led; in find_mute_led_cfg()
794 &spec->gpio_led_polarity) == 1) { in find_mute_led_cfg()
802 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
804 spec->gpio_led_polarity = 1; in find_mute_led_cfg()
817 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
826 struct sigmatel_spec *spec = codec->spec; in has_builtin_speaker() local
830 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
831 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
832 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
834 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
835 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
854 struct sigmatel_spec *spec = codec->spec; in stac_auto_create_beep_ctls() local
867 if (spec->anabeep_nid == nid) in stac_auto_create_beep_ctls()
871 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
881 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
920 struct sigmatel_spec *spec = codec->spec; in stac_beep_switch_ctl() local
922 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl)) in stac_beep_switch_ctl()
936 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_info() local
937 return snd_hda_input_mux_info(&spec->spdif_mux, uinfo); in stac_smux_enum_info()
944 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_get() local
947 ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx]; in stac_smux_enum_get()
955 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_put() local
958 return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, in stac_smux_enum_put()
959 spec->gen.autocfg.dig_out_pins[smux_idx], in stac_smux_enum_put()
960 &spec->cur_smux[smux_idx]); in stac_smux_enum_put()
978 struct sigmatel_spec *spec = codec->spec; in stac_create_spdif_mux_ctls() local
979 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in stac_create_spdif_mux_ctls()
980 const char * const *labels = spec->spdif_labels; in stac_create_spdif_mux_ctls()
996 snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL); in stac_create_spdif_mux_ctls()
999 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1367 struct sigmatel_spec *spec = codec->spec; in stac9200_fixup_panasonic() local
1370 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic()
1371 spec->gpio_data = 0x00; in stac9200_fixup_panasonic()
1375 spec->gen.suppress_auto_mute = 1; in stac9200_fixup_panasonic()
1793 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_ref() local
1799 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref()
1804 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell() local
1807 spec->eapd_switch = 0; in stac92hd73xx_fixup_dell()
1813 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell_eq() local
1820 spec->volknob_init = 1; in stac92hd73xx_fixup_dell_eq()
1860 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_alienware_m17x() local
1866 spec->eapd_switch = 0; in stac92hd73xx_fixup_alienware_m17x()
2082 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp() local
2092 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd83xxx_fixup_hp()
2094 spec->gpio_led, in stac92hd83xxx_fixup_hp()
2095 spec->gpio_led_polarity); in stac92hd83xxx_fixup_hp()
2098 spec->gen.line_in_auto_switch = true; in stac92hd83xxx_fixup_hp()
2114 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led() local
2117 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led()
2123 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_inv_led() local
2126 spec->default_polarity = 1; in stac92hd83xxx_fixup_hp_inv_led()
2132 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_mic_led() local
2135 spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ in stac92hd83xxx_fixup_hp_mic_led()
2146 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led_gpio10() local
2149 spec->gpio_led = 0x10; /* GPIO4 */ in stac92hd83xxx_fixup_hp_led_gpio10()
2150 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led_gpio10()
2157 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_headset_jack() local
2160 spec->headset_jack = 1; in stac92hd83xxx_fixup_headset_jack()
2167 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_gpio10_eapd() local
2171 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd()
2172 spec->gpio_data = 0x10; in stac92hd83xxx_fixup_gpio10_eapd()
2173 spec->eapd_switch = 0; in stac92hd83xxx_fixup_gpio10_eapd()
2180 struct sigmatel_spec *spec = codec->spec; in hp_envy_ts_fixup_dac_bind() local
2189 spec->gen.preferred_dacs = preferred_pairs; in hp_envy_ts_fixup_dac_bind()
2936 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_get() local
2937 ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20); in stac_hp_bass_gpio_get()
2945 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_put() local
2948 gpio_data = (spec->gpio_data & ~0x20) | in stac_hp_bass_gpio_put()
2950 if (gpio_data == spec->gpio_data) in stac_hp_bass_gpio_put()
2952 spec->gpio_data = gpio_data; in stac_hp_bass_gpio_put()
2953 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_hp_bass_gpio_put()
2966 struct sigmatel_spec *spec = codec->spec; in stac_add_hp_bass_switch() local
2968 if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch", in stac_add_hp_bass_switch()
2972 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch()
2973 spec->gpio_dir |= 0x20; in stac_add_hp_bass_switch()
2974 spec->gpio_data |= 0x20; in stac_add_hp_bass_switch()
3041 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_ref() local
3047 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd71bxx_fixup_ref()
3053 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_m4() local
3067 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4()
3076 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_dv4() local
3080 spec->gpio_led = 0x01; in stac92hd71bxx_fixup_hp_dv4()
3106 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_hdx() local
3110 spec->gpio_led = 0x08; in stac92hd71bxx_fixup_hp_hdx()
3140 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp() local
3155 spec->gpio_led, in stac92hd71bxx_fixup_hp()
3156 spec->gpio_led_polarity); in stac92hd71bxx_fixup_hp()
3518 struct sigmatel_spec *spec = codec->spec; in stac922x_fixup_intel_mac_gpio() local
3521 spec->gpio_mask = spec->gpio_dir = 0x03; in stac922x_fixup_intel_mac_gpio()
3522 spec->gpio_data = 0x03; in stac922x_fixup_intel_mac_gpio()
3817 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_ref() local
3821 spec->eapd_mask = spec->gpio_mask = 0; in stac927x_fixup_ref()
3822 spec->gpio_dir = spec->gpio_data = 0; in stac927x_fixup_ref()
3829 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_dell_dmic() local
3836 spec->eapd_mask = spec->gpio_mask = 0x04; in stac927x_fixup_dell_dmic()
3837 spec->gpio_dir = spec->gpio_data = 0x04; in stac927x_fixup_dell_dmic()
3841 spec->volknob_init = 1; in stac927x_fixup_dell_dmic()
3847 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_volknob() local
3851 spec->volknob_init = 1; in stac927x_fixup_volknob()
4076 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_ref() local
4081 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0; in stac9205_fixup_ref()
4088 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_dell_m43() local
4102 spec->gpio_dir = 0x0b; in stac9205_fixup_dell_m43()
4103 spec->eapd_mask = 0x01; in stac9205_fixup_dell_m43()
4104 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43()
4105 spec->gpio_mute = 0x10; in stac9205_fixup_dell_m43()
4109 spec->gpio_data = 0x01; in stac9205_fixup_dell_m43()
4116 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_eapd() local
4119 spec->eapd_switch = 0; in stac9205_fixup_eapd()
4205 struct sigmatel_spec *spec = codec->spec; in stac92hd95_fixup_hp_led() local
4210 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd95_fixup_hp_led()
4212 spec->gpio_led, in stac92hd95_fixup_hp_led()
4213 spec->gpio_led_polarity); in stac92hd95_fixup_hp_led()
4246 struct sigmatel_spec *spec = codec->spec; in stac_parse_auto_config() local
4250 if (spec->headset_jack) in stac_parse_auto_config()
4253 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); in stac_parse_auto_config()
4258 spec->gen.pcm_playback_hook = stac_playback_pcm_hook; in stac_parse_auto_config()
4259 spec->gen.pcm_capture_hook = stac_capture_pcm_hook; in stac_parse_auto_config()
4261 spec->gen.automute_hook = stac_update_outputs; in stac_parse_auto_config()
4263 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in stac_parse_auto_config()
4267 if (spec->vref_mute_led_nid) { in stac_parse_auto_config()
4268 err = snd_hda_gen_fix_pin_power(codec, spec->vref_mute_led_nid); in stac_parse_auto_config()
4274 if (spec->anabeep_nid > 0) { in stac_parse_auto_config()
4276 spec->anabeep_nid); in stac_parse_auto_config()
4283 if (spec->gen.beep_nid) { in stac_parse_auto_config()
4284 hda_nid_t nid = spec->gen.beep_nid; in stac_parse_auto_config()
4292 codec->beep->linear_tone = spec->linear_tone_beep; in stac_parse_auto_config()
4304 if (spec->gpio_led) in stac_parse_auto_config()
4305 spec->gen.vmaster_mute.hook = stac_vmaster_hook; in stac_parse_auto_config()
4307 if (spec->aloopback_ctl && in stac_parse_auto_config()
4310 spec->aloopback_ctl->private_value >> 16; in stac_parse_auto_config()
4313 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl)) in stac_parse_auto_config()
4317 if (spec->have_spdif_mux) { in stac_parse_auto_config()
4330 struct sigmatel_spec *spec = codec->spec; in stac_init() local
4340 if (!spec->eapd_switch) in stac_init()
4341 spec->gpio_data |= spec->eapd_mask; in stac_init()
4342 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_init()
4347 if (spec->num_pwrs) in stac_init()
4350 spec->power_map_bits); in stac_init()
4353 if (spec->powerdown_adcs) { in stac_init()
4354 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_init()
4355 if (spec->active_adcs & (1 << i)) in stac_init()
4357 snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, in stac_init()
4368 struct sigmatel_spec *spec = codec->spec; in stac_shutup() local
4372 if (spec->eapd_mask) in stac_shutup()
4373 stac_gpio_set(codec, spec->gpio_mask, in stac_shutup()
4374 spec->gpio_dir, spec->gpio_data & in stac_shutup()
4375 ~spec->eapd_mask); in stac_shutup()
4451 struct sigmatel_spec *spec; in alloc_stac_spec() local
4453 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in alloc_stac_spec()
4454 if (!spec) in alloc_stac_spec()
4456 snd_hda_gen_spec_init(&spec->gen); in alloc_stac_spec()
4457 codec->spec = spec; in alloc_stac_spec()
4459 spec->gen.dac_min_mute = true; in alloc_stac_spec()
4465 struct sigmatel_spec *spec; in patch_stac9200() local
4472 spec = codec->spec; in patch_stac9200()
4473 spec->linear_tone_beep = 1; in patch_stac9200()
4474 spec->gen.own_eapd_ctl = 1; in patch_stac9200()
4498 struct sigmatel_spec *spec; in patch_stac925x() local
4505 spec = codec->spec; in patch_stac925x()
4506 spec->linear_tone_beep = 1; in patch_stac925x()
4507 spec->gen.own_eapd_ctl = 1; in patch_stac925x()
4530 struct sigmatel_spec *spec; in patch_stac92hd73xx() local
4538 spec = codec->spec; in patch_stac92hd73xx()
4544 spec->linear_tone_beep = 0; in patch_stac92hd73xx()
4545 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
4546 spec->have_spdif_mux = 1; in patch_stac92hd73xx()
4557 spec->aloopback_ctl = &stac92hd73xx_6ch_loopback; in patch_stac92hd73xx()
4560 spec->aloopback_ctl = &stac92hd73xx_8ch_loopback; in patch_stac92hd73xx()
4563 spec->aloopback_ctl = &stac92hd73xx_10ch_loopback; in patch_stac92hd73xx()
4567 spec->aloopback_mask = 0x01; in patch_stac92hd73xx()
4568 spec->aloopback_shift = 8; in patch_stac92hd73xx()
4570 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
4573 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac92hd73xx()
4574 spec->gpio_data = 0x01; in patch_stac92hd73xx()
4576 spec->eapd_switch = 1; in patch_stac92hd73xx()
4578 spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids); in patch_stac92hd73xx()
4579 spec->pwr_nids = stac92hd73xx_pwr_nids; in patch_stac92hd73xx()
4581 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
4582 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
4590 if (!spec->volknob_init) in patch_stac92hd73xx()
4602 if (spec->eapd_switch && !has_builtin_speaker(codec)) in patch_stac92hd73xx()
4603 spec->eapd_switch = 0; in patch_stac92hd73xx()
4614 struct sigmatel_spec *spec = codec->spec; in stac_setup_gpio() local
4616 spec->gpio_mask |= spec->eapd_mask; in stac_setup_gpio()
4617 if (spec->gpio_led) { in stac_setup_gpio()
4618 if (!spec->vref_mute_led_nid) { in stac_setup_gpio()
4619 spec->gpio_mask |= spec->gpio_led; in stac_setup_gpio()
4620 spec->gpio_dir |= spec->gpio_led; in stac_setup_gpio()
4621 spec->gpio_data |= spec->gpio_led; in stac_setup_gpio()
4627 if (spec->mic_mute_led_gpio) { in stac_setup_gpio()
4628 spec->gpio_mask |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4629 spec->gpio_dir |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4630 spec->mic_enabled = 0; in stac_setup_gpio()
4631 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4633 spec->gen.cap_sync_hook = stac_capture_led_hook; in stac_setup_gpio()
4639 struct sigmatel_spec *spec; in patch_stac92hd83xxx() local
4649 spec = codec->spec; in patch_stac92hd83xxx()
4651 spec->linear_tone_beep = 0; in patch_stac92hd83xxx()
4652 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
4653 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
4654 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
4656 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
4657 spec->pwr_nids = stac92hd83xxx_pwr_nids; in patch_stac92hd83xxx()
4658 spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids); in patch_stac92hd83xxx()
4659 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd83xxx()
4690 struct sigmatel_spec *spec; in patch_stac92hd95() local
4700 spec = codec->spec; in patch_stac92hd95()
4702 spec->linear_tone_beep = 0; in patch_stac92hd95()
4703 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4704 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4706 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4707 spec->pwr_nids = stac92hd95_pwr_nids; in patch_stac92hd95()
4708 spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids); in patch_stac92hd95()
4709 spec->default_polarity = 0; in patch_stac92hd95()
4734 struct sigmatel_spec *spec; in patch_stac92hd71bxx() local
4742 spec = codec->spec; in patch_stac92hd71bxx()
4745 spec->linear_tone_beep = 0; in patch_stac92hd71bxx()
4746 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4747 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4748 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4749 spec->have_spdif_mux = 1; in patch_stac92hd71bxx()
4754 spec->gpio_mask = 0x01; in patch_stac92hd71bxx()
4755 spec->gpio_dir = 0x01; in patch_stac92hd71bxx()
4756 spec->gpio_data = 0x01; in patch_stac92hd71bxx()
4766 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4775 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4790 spec->aloopback_ctl = &stac92hd71bxx_loopback; in patch_stac92hd71bxx()
4791 spec->aloopback_mask = 0x50; in patch_stac92hd71bxx()
4792 spec->aloopback_shift = 0; in patch_stac92hd71bxx()
4794 spec->powerdown_adcs = 1; in patch_stac92hd71bxx()
4795 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4796 spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids); in patch_stac92hd71bxx()
4797 spec->pwr_nids = stac92hd71bxx_pwr_nids; in patch_stac92hd71bxx()
4820 struct sigmatel_spec *spec; in patch_stac922x() local
4827 spec = codec->spec; in patch_stac922x()
4828 spec->linear_tone_beep = 1; in patch_stac922x()
4829 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4864 struct sigmatel_spec *spec; in patch_stac927x() local
4871 spec = codec->spec; in patch_stac927x()
4872 spec->linear_tone_beep = 1; in patch_stac927x()
4873 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4874 spec->have_spdif_mux = 1; in patch_stac927x()
4875 spec->spdif_labels = stac927x_spdif_labels; in patch_stac927x()
4877 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4880 spec->eapd_mask = spec->gpio_mask = 0x01; in patch_stac927x()
4881 spec->gpio_dir = spec->gpio_data = 0x01; in patch_stac927x()
4883 spec->aloopback_ctl = &stac927x_loopback; in patch_stac927x()
4884 spec->aloopback_mask = 0x40; in patch_stac927x()
4885 spec->aloopback_shift = 0; in patch_stac927x()
4886 spec->eapd_switch = 1; in patch_stac927x()
4894 if (!spec->volknob_init) in patch_stac927x()
4924 struct sigmatel_spec *spec; in patch_stac9205() local
4931 spec = codec->spec; in patch_stac9205()
4932 spec->linear_tone_beep = 1; in patch_stac9205()
4933 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4934 spec->have_spdif_mux = 1; in patch_stac9205()
4936 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
4939 spec->aloopback_ctl = &stac9205_loopback; in patch_stac9205()
4941 spec->aloopback_mask = 0x40; in patch_stac9205()
4942 spec->aloopback_shift = 0; in patch_stac9205()
4945 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac9205()
4946 spec->gpio_data = 0x01; in patch_stac9205()
4949 spec->eapd_switch = 1; in patch_stac9205()
5013 struct sigmatel_spec *spec; in patch_stac9872() local
5020 spec = codec->spec; in patch_stac9872()
5021 spec->linear_tone_beep = 1; in patch_stac9872()
5022 spec->gen.own_eapd_ctl = 1; in patch_stac9872()