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()
4466 struct sigmatel_spec *spec; in patch_stac9200() local
4473 spec = codec->spec; in patch_stac9200()
4474 spec->linear_tone_beep = 1; in patch_stac9200()
4475 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()
4528 struct sigmatel_spec *spec; in patch_stac92hd73xx() local
4536 spec = codec->spec; in patch_stac92hd73xx()
4542 spec->linear_tone_beep = 0; in patch_stac92hd73xx()
4543 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
4544 spec->have_spdif_mux = 1; in patch_stac92hd73xx()
4555 spec->aloopback_ctl = &stac92hd73xx_6ch_loopback; in patch_stac92hd73xx()
4558 spec->aloopback_ctl = &stac92hd73xx_8ch_loopback; in patch_stac92hd73xx()
4561 spec->aloopback_ctl = &stac92hd73xx_10ch_loopback; in patch_stac92hd73xx()
4565 spec->aloopback_mask = 0x01; in patch_stac92hd73xx()
4566 spec->aloopback_shift = 8; in patch_stac92hd73xx()
4568 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
4571 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac92hd73xx()
4572 spec->gpio_data = 0x01; in patch_stac92hd73xx()
4574 spec->eapd_switch = 1; in patch_stac92hd73xx()
4576 spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids); in patch_stac92hd73xx()
4577 spec->pwr_nids = stac92hd73xx_pwr_nids; in patch_stac92hd73xx()
4579 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
4580 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
4586 if (!spec->volknob_init) in patch_stac92hd73xx()
4598 if (spec->eapd_switch && !has_builtin_speaker(codec)) in patch_stac92hd73xx()
4599 spec->eapd_switch = 0; in patch_stac92hd73xx()
4610 struct sigmatel_spec *spec = codec->spec; in stac_setup_gpio() local
4612 spec->gpio_mask |= spec->eapd_mask; in stac_setup_gpio()
4613 if (spec->gpio_led) { in stac_setup_gpio()
4614 if (!spec->vref_mute_led_nid) { in stac_setup_gpio()
4615 spec->gpio_mask |= spec->gpio_led; in stac_setup_gpio()
4616 spec->gpio_dir |= spec->gpio_led; in stac_setup_gpio()
4617 spec->gpio_data |= spec->gpio_led; in stac_setup_gpio()
4623 if (spec->mic_mute_led_gpio) { in stac_setup_gpio()
4624 spec->gpio_mask |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4625 spec->gpio_dir |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4626 spec->mic_enabled = 0; in stac_setup_gpio()
4627 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4629 spec->gen.cap_sync_hook = stac_capture_led_hook; in stac_setup_gpio()
4635 struct sigmatel_spec *spec; in patch_stac92hd83xxx() local
4645 spec = codec->spec; in patch_stac92hd83xxx()
4647 spec->linear_tone_beep = 0; in patch_stac92hd83xxx()
4648 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
4649 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
4650 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
4652 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
4653 spec->pwr_nids = stac92hd83xxx_pwr_nids; in patch_stac92hd83xxx()
4654 spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids); in patch_stac92hd83xxx()
4655 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd83xxx()
4684 struct sigmatel_spec *spec; in patch_stac92hd95() local
4694 spec = codec->spec; in patch_stac92hd95()
4696 spec->linear_tone_beep = 0; in patch_stac92hd95()
4697 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4698 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4700 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4701 spec->pwr_nids = stac92hd95_pwr_nids; in patch_stac92hd95()
4702 spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids); in patch_stac92hd95()
4703 spec->default_polarity = 0; in patch_stac92hd95()
4726 struct sigmatel_spec *spec; in patch_stac92hd71bxx() local
4734 spec = codec->spec; in patch_stac92hd71bxx()
4737 spec->linear_tone_beep = 0; in patch_stac92hd71bxx()
4738 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4739 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4740 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4741 spec->have_spdif_mux = 1; in patch_stac92hd71bxx()
4744 spec->gpio_mask = 0x01; in patch_stac92hd71bxx()
4745 spec->gpio_dir = 0x01; in patch_stac92hd71bxx()
4746 spec->gpio_data = 0x01; in patch_stac92hd71bxx()
4756 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4765 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4780 spec->aloopback_ctl = &stac92hd71bxx_loopback; in patch_stac92hd71bxx()
4781 spec->aloopback_mask = 0x50; in patch_stac92hd71bxx()
4782 spec->aloopback_shift = 0; in patch_stac92hd71bxx()
4784 spec->powerdown_adcs = 1; in patch_stac92hd71bxx()
4785 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4786 spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids); in patch_stac92hd71bxx()
4787 spec->pwr_nids = stac92hd71bxx_pwr_nids; in patch_stac92hd71bxx()
4810 struct sigmatel_spec *spec; in patch_stac922x() local
4817 spec = codec->spec; in patch_stac922x()
4818 spec->linear_tone_beep = 1; in patch_stac922x()
4819 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4852 struct sigmatel_spec *spec; in patch_stac927x() local
4859 spec = codec->spec; in patch_stac927x()
4860 spec->linear_tone_beep = 1; in patch_stac927x()
4861 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4862 spec->have_spdif_mux = 1; in patch_stac927x()
4863 spec->spdif_labels = stac927x_spdif_labels; in patch_stac927x()
4865 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4868 spec->eapd_mask = spec->gpio_mask = 0x01; in patch_stac927x()
4869 spec->gpio_dir = spec->gpio_data = 0x01; in patch_stac927x()
4871 spec->aloopback_ctl = &stac927x_loopback; in patch_stac927x()
4872 spec->aloopback_mask = 0x40; in patch_stac927x()
4873 spec->aloopback_shift = 0; in patch_stac927x()
4874 spec->eapd_switch = 1; in patch_stac927x()
4880 if (!spec->volknob_init) in patch_stac927x()
4910 struct sigmatel_spec *spec; in patch_stac9205() local
4917 spec = codec->spec; in patch_stac9205()
4918 spec->linear_tone_beep = 1; in patch_stac9205()
4919 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4920 spec->have_spdif_mux = 1; in patch_stac9205()
4922 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
4925 spec->aloopback_ctl = &stac9205_loopback; in patch_stac9205()
4927 spec->aloopback_mask = 0x40; in patch_stac9205()
4928 spec->aloopback_shift = 0; in patch_stac9205()
4931 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac9205()
4932 spec->gpio_data = 0x01; in patch_stac9205()
4935 spec->eapd_switch = 1; in patch_stac9205()
4997 struct sigmatel_spec *spec; in patch_stac9872() local
5004 spec = codec->spec; in patch_stac9872()
5005 spec->linear_tone_beep = 1; in patch_stac9872()
5006 spec->gen.own_eapd_ctl = 1; in patch_stac9872()