Lines Matching full:spec

245 	struct sigmatel_spec *spec = codec->spec;  in stac_playback_pcm_hook()  local
246 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
247 msleep(spec->stream_delay); in stac_playback_pcm_hook()
255 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
258 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
261 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
262 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
273 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
278 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
327 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
330 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_capture_led_update()
332 spec->gpio_data &= ~spec->mic_mute_led_gpio; in stac_capture_led_update()
333 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update()
374 struct sigmatel_spec *spec = codec->spec; in stac_update_led_status() local
376 if (!spec->gpio_led) in stac_update_led_status()
380 if (spec->gpio_led_polarity) in stac_update_led_status()
383 if (!spec->vref_mute_led_nid) { in stac_update_led_status()
385 spec->gpio_data |= spec->gpio_led; in stac_update_led_status()
387 spec->gpio_data &= ~spec->gpio_led; in stac_update_led_status()
388 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status()
389 spec->gpio_dir, spec->gpio_data); in stac_update_led_status()
391 spec->vref_led = muted ? AC_PINCTL_VREF_50 : AC_PINCTL_VREF_GRD; in stac_update_led_status()
392 stac_vrefout_set(codec, spec->vref_mute_led_nid, in stac_update_led_status()
393 spec->vref_led); in stac_update_led_status()
410 struct sigmatel_spec *spec = codec->spec; in stac_update_outputs() local
412 if (spec->gpio_mute) in stac_update_outputs()
413 spec->gen.master_mute = in stac_update_outputs()
415 AC_VERB_GET_GPIO_DATA, 0) & spec->gpio_mute); in stac_update_outputs()
419 if (spec->eapd_mask && spec->eapd_switch) { in stac_update_outputs()
420 unsigned int val = spec->gpio_data; in stac_update_outputs()
421 if (spec->gen.speaker_muted) in stac_update_outputs()
422 val &= ~spec->eapd_mask; in stac_update_outputs()
424 val |= spec->eapd_mask; in stac_update_outputs()
425 if (spec->gpio_data != val) { in stac_update_outputs()
426 spec->gpio_data = val; in stac_update_outputs()
427 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs()
436 struct sigmatel_spec *spec = codec->spec; in stac_toggle_power_map() local
439 for (idx = 0; idx < spec->num_pwrs; idx++) { in stac_toggle_power_map()
440 if (spec->pwr_nids[idx] == nid) in stac_toggle_power_map()
443 if (idx >= spec->num_pwrs) in stac_toggle_power_map()
448 val = spec->power_map_bits; in stac_toggle_power_map()
455 if (val != spec->power_map_bits) { in stac_toggle_power_map()
456 spec->power_map_bits = val; in stac_toggle_power_map()
467 struct sigmatel_spec *spec = codec->spec; in jack_update_power() local
470 if (!spec->num_pwrs) in jack_update_power()
481 for (i = 0; i < spec->num_pwrs; i++) { in jack_update_power()
482 hda_nid_t nid = spec->pwr_nids[i]; in jack_update_power()
492 spec->power_map_bits); in jack_update_power()
512 struct sigmatel_spec *spec = codec->spec; in stac_init_power_map() local
515 for (i = 0; i < spec->num_pwrs; i++) { in stac_init_power_map()
516 hda_nid_t nid = spec->pwr_nids[i]; in stac_init_power_map()
520 spec->vref_mute_led_nid != nid && in stac_init_power_map()
545 struct sigmatel_spec *spec = codec->spec; in stac_store_hints() local
548 if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { in stac_store_hints()
549 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints()
550 spec->gpio_mask; in stac_store_hints()
552 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints()
553 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints()
554 if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) in stac_store_hints()
555 spec->gpio_data &= spec->gpio_mask; in stac_store_hints()
556 if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) in stac_store_hints()
557 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints()
558 if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) in stac_store_hints()
559 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints()
562 spec->eapd_switch = val; in stac_store_hints()
576 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_get() local
578 ucontrol->value.integer.value[0] = !!(spec->aloopback & in stac_aloopback_get()
579 (spec->aloopback_mask << idx)); in stac_aloopback_get()
587 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_put() local
592 idx_val = spec->aloopback_mask << idx; in stac_aloopback_put()
594 val = spec->aloopback | idx_val; in stac_aloopback_put()
596 val = spec->aloopback & ~idx_val; in stac_aloopback_put()
597 if (spec->aloopback == val) in stac_aloopback_put()
600 spec->aloopback = val; in stac_aloopback_put()
607 dac_mode >>= spec->aloopback_shift; in stac_aloopback_put()
609 if (spec->aloopback & idx_val) { in stac_aloopback_put()
711 struct sigmatel_spec *spec = codec->spec; in set_hp_led_gpio() local
714 if (spec->gpio_led) in set_hp_led_gpio()
720 spec->gpio_led = 0x08; /* GPIO 3 */ in set_hp_led_gpio()
722 spec->gpio_led = 0x01; /* GPIO 0 */ in set_hp_led_gpio()
747 struct sigmatel_spec *spec = codec->spec; in find_mute_led_cfg() local
750 if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) { in find_mute_led_cfg()
752 &spec->gpio_led_polarity); in find_mute_led_cfg()
758 &spec->gpio_led_polarity, in find_mute_led_cfg()
759 &spec->gpio_led) == 2) { in find_mute_led_cfg()
764 if (spec->gpio_led < max_gpio) in find_mute_led_cfg()
765 spec->gpio_led = 1 << spec->gpio_led; in find_mute_led_cfg()
767 spec->vref_mute_led_nid = spec->gpio_led; in find_mute_led_cfg()
771 &spec->gpio_led_polarity) == 1) { in find_mute_led_cfg()
779 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
781 spec->gpio_led_polarity = 1; in find_mute_led_cfg()
794 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
803 struct sigmatel_spec *spec = codec->spec; in has_builtin_speaker() local
807 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
808 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
809 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
811 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
812 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
831 struct sigmatel_spec *spec = codec->spec; in stac_auto_create_beep_ctls() local
844 if (spec->anabeep_nid == nid) in stac_auto_create_beep_ctls()
848 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
858 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
897 struct sigmatel_spec *spec = codec->spec; in stac_beep_switch_ctl() local
899 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl)) in stac_beep_switch_ctl()
913 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_info() local
914 return snd_hda_input_mux_info(&spec->spdif_mux, uinfo); in stac_smux_enum_info()
921 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_get() local
924 ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx]; in stac_smux_enum_get()
932 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_put() local
935 return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, in stac_smux_enum_put()
936 spec->gen.autocfg.dig_out_pins[smux_idx], in stac_smux_enum_put()
937 &spec->cur_smux[smux_idx]); in stac_smux_enum_put()
955 struct sigmatel_spec *spec = codec->spec; in stac_create_spdif_mux_ctls() local
956 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in stac_create_spdif_mux_ctls()
957 const char * const *labels = spec->spdif_labels; in stac_create_spdif_mux_ctls()
973 snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL); in stac_create_spdif_mux_ctls()
976 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1356 struct sigmatel_spec *spec = codec->spec; in stac9200_fixup_panasonic() local
1359 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic()
1360 spec->gpio_data = 0x00; in stac9200_fixup_panasonic()
1364 spec->gen.suppress_auto_mute = 1; in stac9200_fixup_panasonic()
1784 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_ref() local
1790 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref()
1795 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell() local
1798 spec->eapd_switch = 0; in stac92hd73xx_fixup_dell()
1804 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell_eq() local
1811 spec->volknob_init = 1; in stac92hd73xx_fixup_dell_eq()
1851 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_alienware_m17x() local
1857 spec->eapd_switch = 0; in stac92hd73xx_fixup_alienware_m17x()
1871 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_disable_automute() local
1876 spec->gen.suppress_auto_mute = 1; in stac92hd73xx_disable_automute()
2092 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp() local
2102 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd83xxx_fixup_hp()
2104 spec->gpio_led, in stac92hd83xxx_fixup_hp()
2105 spec->gpio_led_polarity); in stac92hd83xxx_fixup_hp()
2108 spec->gen.line_in_auto_switch = true; in stac92hd83xxx_fixup_hp()
2124 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led() local
2127 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led()
2133 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_inv_led() local
2136 spec->default_polarity = 1; in stac92hd83xxx_fixup_hp_inv_led()
2142 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_mic_led() local
2145 spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ in stac92hd83xxx_fixup_hp_mic_led()
2156 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led_gpio10() local
2159 spec->gpio_led = 0x10; /* GPIO4 */ in stac92hd83xxx_fixup_hp_led_gpio10()
2160 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led_gpio10()
2167 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_headset_jack() local
2170 spec->headset_jack = 1; in stac92hd83xxx_fixup_headset_jack()
2177 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_gpio10_eapd() local
2181 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd()
2182 spec->gpio_data = 0x10; in stac92hd83xxx_fixup_gpio10_eapd()
2183 spec->eapd_switch = 0; in stac92hd83xxx_fixup_gpio10_eapd()
2190 struct sigmatel_spec *spec = codec->spec; in hp_envy_ts_fixup_dac_bind() local
2199 spec->gen.preferred_dacs = preferred_pairs; in hp_envy_ts_fixup_dac_bind()
2946 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_get() local
2947 ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20); in stac_hp_bass_gpio_get()
2955 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_put() local
2958 gpio_data = (spec->gpio_data & ~0x20) | in stac_hp_bass_gpio_put()
2960 if (gpio_data == spec->gpio_data) in stac_hp_bass_gpio_put()
2962 spec->gpio_data = gpio_data; in stac_hp_bass_gpio_put()
2963 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_hp_bass_gpio_put()
2976 struct sigmatel_spec *spec = codec->spec; in stac_add_hp_bass_switch() local
2978 if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch", in stac_add_hp_bass_switch()
2982 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch()
2983 spec->gpio_dir |= 0x20; in stac_add_hp_bass_switch()
2984 spec->gpio_data |= 0x20; in stac_add_hp_bass_switch()
3051 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_ref() local
3057 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd71bxx_fixup_ref()
3063 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_m4() local
3077 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4()
3086 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_dv4() local
3090 spec->gpio_led = 0x01; in stac92hd71bxx_fixup_hp_dv4()
3116 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_hdx() local
3120 spec->gpio_led = 0x08; in stac92hd71bxx_fixup_hp_hdx()
3150 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp() local
3165 spec->gpio_led, in stac92hd71bxx_fixup_hp()
3166 spec->gpio_led_polarity); in stac92hd71bxx_fixup_hp()
3528 struct sigmatel_spec *spec = codec->spec; in stac922x_fixup_intel_mac_gpio() local
3531 spec->gpio_mask = spec->gpio_dir = 0x03; in stac922x_fixup_intel_mac_gpio()
3532 spec->gpio_data = 0x03; in stac922x_fixup_intel_mac_gpio()
3827 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_ref() local
3831 spec->eapd_mask = spec->gpio_mask = 0; in stac927x_fixup_ref()
3832 spec->gpio_dir = spec->gpio_data = 0; in stac927x_fixup_ref()
3839 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_dell_dmic() local
3846 spec->eapd_mask = spec->gpio_mask = 0x04; in stac927x_fixup_dell_dmic()
3847 spec->gpio_dir = spec->gpio_data = 0x04; in stac927x_fixup_dell_dmic()
3851 spec->volknob_init = 1; in stac927x_fixup_dell_dmic()
3857 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_volknob() local
3861 spec->volknob_init = 1; in stac927x_fixup_volknob()
4093 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_ref() local
4098 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0; in stac9205_fixup_ref()
4105 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_dell_m43() local
4119 spec->gpio_dir = 0x0b; in stac9205_fixup_dell_m43()
4120 spec->eapd_mask = 0x01; in stac9205_fixup_dell_m43()
4121 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43()
4122 spec->gpio_mute = 0x10; in stac9205_fixup_dell_m43()
4126 spec->gpio_data = 0x01; in stac9205_fixup_dell_m43()
4133 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_eapd() local
4136 spec->eapd_switch = 0; in stac9205_fixup_eapd()
4222 struct sigmatel_spec *spec = codec->spec; in stac92hd95_fixup_hp_led() local
4227 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd95_fixup_hp_led()
4229 spec->gpio_led, in stac92hd95_fixup_hp_led()
4230 spec->gpio_led_polarity); in stac92hd95_fixup_hp_led()
4263 struct sigmatel_spec *spec = codec->spec; in stac_parse_auto_config() local
4267 if (spec->headset_jack) in stac_parse_auto_config()
4270 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); in stac_parse_auto_config()
4275 spec->gen.pcm_playback_hook = stac_playback_pcm_hook; in stac_parse_auto_config()
4276 spec->gen.pcm_capture_hook = stac_capture_pcm_hook; in stac_parse_auto_config()
4278 spec->gen.automute_hook = stac_update_outputs; in stac_parse_auto_config()
4280 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in stac_parse_auto_config()
4284 if (spec->vref_mute_led_nid) { in stac_parse_auto_config()
4285 err = snd_hda_gen_fix_pin_power(codec, spec->vref_mute_led_nid); in stac_parse_auto_config()
4291 if (spec->anabeep_nid > 0) { in stac_parse_auto_config()
4293 spec->anabeep_nid); in stac_parse_auto_config()
4300 if (spec->gen.beep_nid) { in stac_parse_auto_config()
4301 hda_nid_t nid = spec->gen.beep_nid; in stac_parse_auto_config()
4309 codec->beep->linear_tone = spec->linear_tone_beep; in stac_parse_auto_config()
4321 if (spec->gpio_led) in stac_parse_auto_config()
4324 if (spec->aloopback_ctl && in stac_parse_auto_config()
4327 spec->aloopback_ctl->private_value >> 16; in stac_parse_auto_config()
4330 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl)) in stac_parse_auto_config()
4334 if (spec->have_spdif_mux) { in stac_parse_auto_config()
4347 struct sigmatel_spec *spec = codec->spec; in stac_init() local
4354 /* turn on EAPD statically when spec->eapd_switch isn't set. in stac_init()
4357 if (!spec->eapd_switch) in stac_init()
4358 spec->gpio_data |= spec->eapd_mask; in stac_init()
4359 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_init()
4364 if (spec->num_pwrs) in stac_init()
4367 spec->power_map_bits); in stac_init()
4370 if (spec->powerdown_adcs) { in stac_init()
4371 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_init()
4372 if (spec->active_adcs & (1 << i)) in stac_init()
4374 snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, in stac_init()
4385 struct sigmatel_spec *spec = codec->spec; in stac_shutup() local
4389 if (spec->eapd_mask) in stac_shutup()
4390 stac_gpio_set(codec, spec->gpio_mask, in stac_shutup()
4391 spec->gpio_dir, spec->gpio_data & in stac_shutup()
4392 ~spec->eapd_mask); in stac_shutup()
4468 struct sigmatel_spec *spec; in alloc_stac_spec() local
4470 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in alloc_stac_spec()
4471 if (!spec) in alloc_stac_spec()
4473 snd_hda_gen_spec_init(&spec->gen); in alloc_stac_spec()
4474 codec->spec = spec; in alloc_stac_spec()
4476 spec->gen.dac_min_mute = true; in alloc_stac_spec()
4483 struct sigmatel_spec *spec; in patch_stac9200() local
4490 spec = codec->spec; in patch_stac9200()
4491 spec->linear_tone_beep = 1; in patch_stac9200()
4492 spec->gen.own_eapd_ctl = 1; in patch_stac9200()
4515 struct sigmatel_spec *spec; in patch_stac925x() local
4522 spec = codec->spec; in patch_stac925x()
4523 spec->linear_tone_beep = 1; in patch_stac925x()
4524 spec->gen.own_eapd_ctl = 1; in patch_stac925x()
4545 struct sigmatel_spec *spec; in patch_stac92hd73xx() local
4553 spec = codec->spec; in patch_stac92hd73xx()
4559 spec->linear_tone_beep = 0; in patch_stac92hd73xx()
4560 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
4561 spec->have_spdif_mux = 1; in patch_stac92hd73xx()
4572 spec->aloopback_ctl = &stac92hd73xx_6ch_loopback; in patch_stac92hd73xx()
4575 spec->aloopback_ctl = &stac92hd73xx_8ch_loopback; in patch_stac92hd73xx()
4578 spec->aloopback_ctl = &stac92hd73xx_10ch_loopback; in patch_stac92hd73xx()
4582 spec->aloopback_mask = 0x01; in patch_stac92hd73xx()
4583 spec->aloopback_shift = 8; in patch_stac92hd73xx()
4585 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
4588 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac92hd73xx()
4589 spec->gpio_data = 0x01; in patch_stac92hd73xx()
4591 spec->eapd_switch = 1; in patch_stac92hd73xx()
4593 spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids); in patch_stac92hd73xx()
4594 spec->pwr_nids = stac92hd73xx_pwr_nids; in patch_stac92hd73xx()
4596 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
4597 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
4603 if (!spec->volknob_init) in patch_stac92hd73xx()
4615 if (spec->eapd_switch && !has_builtin_speaker(codec)) in patch_stac92hd73xx()
4616 spec->eapd_switch = 0; in patch_stac92hd73xx()
4627 struct sigmatel_spec *spec = codec->spec; in stac_setup_gpio() local
4629 spec->gpio_mask |= spec->eapd_mask; in stac_setup_gpio()
4630 if (spec->gpio_led) { in stac_setup_gpio()
4631 if (!spec->vref_mute_led_nid) { in stac_setup_gpio()
4632 spec->gpio_mask |= spec->gpio_led; in stac_setup_gpio()
4633 spec->gpio_dir |= spec->gpio_led; in stac_setup_gpio()
4634 spec->gpio_data |= spec->gpio_led; in stac_setup_gpio()
4640 if (spec->mic_mute_led_gpio) { in stac_setup_gpio()
4641 spec->gpio_mask |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4642 spec->gpio_dir |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4643 spec->mic_enabled = 0; in stac_setup_gpio()
4644 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4651 struct sigmatel_spec *spec; in patch_stac92hd83xxx() local
4661 spec = codec->spec; in patch_stac92hd83xxx()
4663 spec->linear_tone_beep = 0; in patch_stac92hd83xxx()
4664 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
4665 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
4666 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
4668 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
4669 spec->pwr_nids = stac92hd83xxx_pwr_nids; in patch_stac92hd83xxx()
4670 spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids); in patch_stac92hd83xxx()
4671 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd83xxx()
4700 struct sigmatel_spec *spec; in patch_stac92hd95() local
4710 spec = codec->spec; in patch_stac92hd95()
4712 spec->linear_tone_beep = 0; in patch_stac92hd95()
4713 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4714 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4716 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4717 spec->pwr_nids = stac92hd95_pwr_nids; in patch_stac92hd95()
4718 spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids); in patch_stac92hd95()
4719 spec->default_polarity = 0; in patch_stac92hd95()
4742 struct sigmatel_spec *spec; in patch_stac92hd71bxx() local
4750 spec = codec->spec; in patch_stac92hd71bxx()
4753 spec->linear_tone_beep = 0; in patch_stac92hd71bxx()
4754 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4755 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4756 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4757 spec->have_spdif_mux = 1; in patch_stac92hd71bxx()
4760 spec->gpio_mask = 0x01; in patch_stac92hd71bxx()
4761 spec->gpio_dir = 0x01; in patch_stac92hd71bxx()
4762 spec->gpio_data = 0x01; in patch_stac92hd71bxx()
4772 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4781 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4796 spec->aloopback_ctl = &stac92hd71bxx_loopback; in patch_stac92hd71bxx()
4797 spec->aloopback_mask = 0x50; in patch_stac92hd71bxx()
4798 spec->aloopback_shift = 0; in patch_stac92hd71bxx()
4800 spec->powerdown_adcs = 1; in patch_stac92hd71bxx()
4801 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4802 spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids); in patch_stac92hd71bxx()
4803 spec->pwr_nids = stac92hd71bxx_pwr_nids; in patch_stac92hd71bxx()
4826 struct sigmatel_spec *spec; in patch_stac922x() local
4833 spec = codec->spec; in patch_stac922x()
4834 spec->linear_tone_beep = 1; in patch_stac922x()
4835 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4868 struct sigmatel_spec *spec; in patch_stac927x() local
4875 spec = codec->spec; in patch_stac927x()
4876 spec->linear_tone_beep = 1; in patch_stac927x()
4877 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4878 spec->have_spdif_mux = 1; in patch_stac927x()
4879 spec->spdif_labels = stac927x_spdif_labels; in patch_stac927x()
4881 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4884 spec->eapd_mask = spec->gpio_mask = 0x01; in patch_stac927x()
4885 spec->gpio_dir = spec->gpio_data = 0x01; in patch_stac927x()
4887 spec->aloopback_ctl = &stac927x_loopback; in patch_stac927x()
4888 spec->aloopback_mask = 0x40; in patch_stac927x()
4889 spec->aloopback_shift = 0; in patch_stac927x()
4890 spec->eapd_switch = 1; in patch_stac927x()
4896 if (!spec->volknob_init) in patch_stac927x()
4926 struct sigmatel_spec *spec; in patch_stac9205() local
4933 spec = codec->spec; in patch_stac9205()
4934 spec->linear_tone_beep = 1; in patch_stac9205()
4935 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4936 spec->have_spdif_mux = 1; in patch_stac9205()
4938 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
4941 spec->aloopback_ctl = &stac9205_loopback; in patch_stac9205()
4943 spec->aloopback_mask = 0x40; in patch_stac9205()
4944 spec->aloopback_shift = 0; in patch_stac9205()
4947 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac9205()
4948 spec->gpio_data = 0x01; in patch_stac9205()
4951 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()