Lines Matching full:spec
246 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
247 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
248 msleep(spec->stream_delay); in stac_playback_pcm_hook()
256 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
259 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
262 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
263 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
274 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
279 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
328 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_update() local
331 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_capture_led_update()
333 spec->gpio_data &= ~spec->mic_mute_led_gpio; in stac_capture_led_update()
334 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update()
375 struct sigmatel_spec *spec = codec->spec; in stac_update_led_status() local
377 if (!spec->gpio_led) in stac_update_led_status()
381 if (spec->gpio_led_polarity) in stac_update_led_status()
384 if (!spec->vref_mute_led_nid) { in stac_update_led_status()
386 spec->gpio_data |= spec->gpio_led; in stac_update_led_status()
388 spec->gpio_data &= ~spec->gpio_led; in stac_update_led_status()
389 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status()
390 spec->gpio_dir, spec->gpio_data); in stac_update_led_status()
392 spec->vref_led = muted ? AC_PINCTL_VREF_50 : AC_PINCTL_VREF_GRD; in stac_update_led_status()
393 stac_vrefout_set(codec, spec->vref_mute_led_nid, in stac_update_led_status()
394 spec->vref_led); in stac_update_led_status()
411 struct sigmatel_spec *spec = codec->spec; in stac_update_outputs() local
413 if (spec->gpio_mute) in stac_update_outputs()
414 spec->gen.master_mute = in stac_update_outputs()
416 AC_VERB_GET_GPIO_DATA, 0) & spec->gpio_mute); in stac_update_outputs()
420 if (spec->eapd_mask && spec->eapd_switch) { in stac_update_outputs()
421 unsigned int val = spec->gpio_data; in stac_update_outputs()
422 if (spec->gen.speaker_muted) in stac_update_outputs()
423 val &= ~spec->eapd_mask; in stac_update_outputs()
425 val |= spec->eapd_mask; in stac_update_outputs()
426 if (spec->gpio_data != val) { in stac_update_outputs()
427 spec->gpio_data = val; in stac_update_outputs()
428 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs()
437 struct sigmatel_spec *spec = codec->spec; in stac_toggle_power_map() local
440 for (idx = 0; idx < spec->num_pwrs; idx++) { in stac_toggle_power_map()
441 if (spec->pwr_nids[idx] == nid) in stac_toggle_power_map()
444 if (idx >= spec->num_pwrs) in stac_toggle_power_map()
449 val = spec->power_map_bits; in stac_toggle_power_map()
456 if (val != spec->power_map_bits) { in stac_toggle_power_map()
457 spec->power_map_bits = val; in stac_toggle_power_map()
468 struct sigmatel_spec *spec = codec->spec; in jack_update_power() local
471 if (!spec->num_pwrs) in jack_update_power()
482 for (i = 0; i < spec->num_pwrs; i++) { in jack_update_power()
483 hda_nid_t nid = spec->pwr_nids[i]; in jack_update_power()
493 spec->power_map_bits); in jack_update_power()
513 struct sigmatel_spec *spec = codec->spec; in stac_init_power_map() local
516 for (i = 0; i < spec->num_pwrs; i++) { in stac_init_power_map()
517 hda_nid_t nid = spec->pwr_nids[i]; in stac_init_power_map()
521 spec->vref_mute_led_nid != nid && in stac_init_power_map()
546 struct sigmatel_spec *spec = codec->spec; in stac_store_hints() local
549 if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { in stac_store_hints()
550 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints()
551 spec->gpio_mask; in stac_store_hints()
553 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints()
554 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints()
555 if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) in stac_store_hints()
556 spec->gpio_data &= spec->gpio_mask; in stac_store_hints()
557 if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) in stac_store_hints()
558 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints()
559 if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) in stac_store_hints()
560 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints()
563 spec->eapd_switch = val; in stac_store_hints()
577 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_get() local
579 ucontrol->value.integer.value[0] = !!(spec->aloopback & in stac_aloopback_get()
580 (spec->aloopback_mask << idx)); in stac_aloopback_get()
588 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_put() local
593 idx_val = spec->aloopback_mask << idx; in stac_aloopback_put()
595 val = spec->aloopback | idx_val; in stac_aloopback_put()
597 val = spec->aloopback & ~idx_val; in stac_aloopback_put()
598 if (spec->aloopback == val) in stac_aloopback_put()
601 spec->aloopback = val; in stac_aloopback_put()
608 dac_mode >>= spec->aloopback_shift; in stac_aloopback_put()
610 if (spec->aloopback & idx_val) { in stac_aloopback_put()
712 struct sigmatel_spec *spec = codec->spec; in set_hp_led_gpio() local
715 if (spec->gpio_led) in set_hp_led_gpio()
721 spec->gpio_led = 0x08; /* GPIO 3 */ in set_hp_led_gpio()
723 spec->gpio_led = 0x01; /* GPIO 0 */ in set_hp_led_gpio()
748 struct sigmatel_spec *spec = codec->spec; in find_mute_led_cfg() local
751 if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) { in find_mute_led_cfg()
753 &spec->gpio_led_polarity); in find_mute_led_cfg()
759 &spec->gpio_led_polarity, in find_mute_led_cfg()
760 &spec->gpio_led) == 2) { in find_mute_led_cfg()
765 if (spec->gpio_led < max_gpio) in find_mute_led_cfg()
766 spec->gpio_led = 1 << spec->gpio_led; in find_mute_led_cfg()
768 spec->vref_mute_led_nid = spec->gpio_led; in find_mute_led_cfg()
772 &spec->gpio_led_polarity) == 1) { in find_mute_led_cfg()
780 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
782 spec->gpio_led_polarity = 1; in find_mute_led_cfg()
795 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
804 struct sigmatel_spec *spec = codec->spec; in has_builtin_speaker() local
808 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
809 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
810 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
812 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
813 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
832 struct sigmatel_spec *spec = codec->spec; in stac_auto_create_beep_ctls() local
845 if (spec->anabeep_nid == nid) in stac_auto_create_beep_ctls()
849 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
859 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
898 struct sigmatel_spec *spec = codec->spec; in stac_beep_switch_ctl() local
900 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl)) in stac_beep_switch_ctl()
914 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_info() local
915 return snd_hda_input_mux_info(&spec->spdif_mux, uinfo); in stac_smux_enum_info()
922 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_get() local
925 ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx]; in stac_smux_enum_get()
933 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_put() local
936 return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, in stac_smux_enum_put()
937 spec->gen.autocfg.dig_out_pins[smux_idx], in stac_smux_enum_put()
938 &spec->cur_smux[smux_idx]); in stac_smux_enum_put()
956 struct sigmatel_spec *spec = codec->spec; in stac_create_spdif_mux_ctls() local
957 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in stac_create_spdif_mux_ctls()
958 const char * const *labels = spec->spdif_labels; in stac_create_spdif_mux_ctls()
974 snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL); in stac_create_spdif_mux_ctls()
977 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1357 struct sigmatel_spec *spec = codec->spec; in stac9200_fixup_panasonic() local
1360 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic()
1361 spec->gpio_data = 0x00; in stac9200_fixup_panasonic()
1365 spec->gen.suppress_auto_mute = 1; in stac9200_fixup_panasonic()
1785 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_ref() local
1791 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref()
1796 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell() local
1799 spec->eapd_switch = 0; in stac92hd73xx_fixup_dell()
1805 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell_eq() local
1812 spec->volknob_init = 1; in stac92hd73xx_fixup_dell_eq()
1852 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_alienware_m17x() local
1858 spec->eapd_switch = 0; in stac92hd73xx_fixup_alienware_m17x()
1872 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_disable_automute() local
1877 spec->gen.suppress_auto_mute = 1; in stac92hd73xx_disable_automute()
2093 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp() local
2103 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd83xxx_fixup_hp()
2105 spec->gpio_led, in stac92hd83xxx_fixup_hp()
2106 spec->gpio_led_polarity); in stac92hd83xxx_fixup_hp()
2109 spec->gen.line_in_auto_switch = true; in stac92hd83xxx_fixup_hp()
2125 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led() local
2128 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led()
2134 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_inv_led() local
2137 spec->default_polarity = 1; in stac92hd83xxx_fixup_hp_inv_led()
2143 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_mic_led() local
2146 spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ in stac92hd83xxx_fixup_hp_mic_led()
2157 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led_gpio10() local
2160 spec->gpio_led = 0x10; /* GPIO4 */ in stac92hd83xxx_fixup_hp_led_gpio10()
2161 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led_gpio10()
2168 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_headset_jack() local
2171 spec->headset_jack = 1; in stac92hd83xxx_fixup_headset_jack()
2178 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_gpio10_eapd() local
2182 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = in stac92hd83xxx_fixup_gpio10_eapd()
2183 spec->gpio_data = 0x10; in stac92hd83xxx_fixup_gpio10_eapd()
2184 spec->eapd_switch = 0; in stac92hd83xxx_fixup_gpio10_eapd()
2191 struct sigmatel_spec *spec = codec->spec; in hp_envy_ts_fixup_dac_bind() local
2200 spec->gen.preferred_dacs = preferred_pairs; in hp_envy_ts_fixup_dac_bind()
2947 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_get() local
2948 ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20); in stac_hp_bass_gpio_get()
2956 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_put() local
2959 gpio_data = (spec->gpio_data & ~0x20) | in stac_hp_bass_gpio_put()
2961 if (gpio_data == spec->gpio_data) in stac_hp_bass_gpio_put()
2963 spec->gpio_data = gpio_data; in stac_hp_bass_gpio_put()
2964 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_hp_bass_gpio_put()
2977 struct sigmatel_spec *spec = codec->spec; in stac_add_hp_bass_switch() local
2979 if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch", in stac_add_hp_bass_switch()
2983 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch()
2984 spec->gpio_dir |= 0x20; in stac_add_hp_bass_switch()
2985 spec->gpio_data |= 0x20; in stac_add_hp_bass_switch()
3052 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_ref() local
3058 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd71bxx_fixup_ref()
3064 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_m4() local
3078 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4()
3087 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_dv4() local
3091 spec->gpio_led = 0x01; in stac92hd71bxx_fixup_hp_dv4()
3117 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_hdx() local
3121 spec->gpio_led = 0x08; in stac92hd71bxx_fixup_hp_hdx()
3151 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp() local
3166 spec->gpio_led, in stac92hd71bxx_fixup_hp()
3167 spec->gpio_led_polarity); in stac92hd71bxx_fixup_hp()
3529 struct sigmatel_spec *spec = codec->spec; in stac922x_fixup_intel_mac_gpio() local
3532 spec->gpio_mask = spec->gpio_dir = 0x03; in stac922x_fixup_intel_mac_gpio()
3533 spec->gpio_data = 0x03; in stac922x_fixup_intel_mac_gpio()
3828 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_ref() local
3832 spec->eapd_mask = spec->gpio_mask = 0; in stac927x_fixup_ref()
3833 spec->gpio_dir = spec->gpio_data = 0; in stac927x_fixup_ref()
3840 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_dell_dmic() local
3847 spec->eapd_mask = spec->gpio_mask = 0x04; in stac927x_fixup_dell_dmic()
3848 spec->gpio_dir = spec->gpio_data = 0x04; in stac927x_fixup_dell_dmic()
3852 spec->volknob_init = 1; in stac927x_fixup_dell_dmic()
3858 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_volknob() local
3862 spec->volknob_init = 1; in stac927x_fixup_volknob()
4094 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_ref() local
4099 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0; in stac9205_fixup_ref()
4106 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_dell_m43() local
4120 spec->gpio_dir = 0x0b; in stac9205_fixup_dell_m43()
4121 spec->eapd_mask = 0x01; in stac9205_fixup_dell_m43()
4122 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43()
4123 spec->gpio_mute = 0x10; in stac9205_fixup_dell_m43()
4127 spec->gpio_data = 0x01; in stac9205_fixup_dell_m43()
4134 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_eapd() local
4137 spec->eapd_switch = 0; in stac9205_fixup_eapd()
4223 struct sigmatel_spec *spec = codec->spec; in stac92hd95_fixup_hp_led() local
4228 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd95_fixup_hp_led()
4230 spec->gpio_led, in stac92hd95_fixup_hp_led()
4231 spec->gpio_led_polarity); in stac92hd95_fixup_hp_led()
4264 struct sigmatel_spec *spec = codec->spec; in stac_parse_auto_config() local
4268 if (spec->headset_jack) in stac_parse_auto_config()
4271 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); in stac_parse_auto_config()
4276 spec->gen.pcm_playback_hook = stac_playback_pcm_hook; in stac_parse_auto_config()
4277 spec->gen.pcm_capture_hook = stac_capture_pcm_hook; in stac_parse_auto_config()
4279 spec->gen.automute_hook = stac_update_outputs; in stac_parse_auto_config()
4281 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in stac_parse_auto_config()
4285 if (spec->vref_mute_led_nid) { in stac_parse_auto_config()
4286 err = snd_hda_gen_fix_pin_power(codec, spec->vref_mute_led_nid); in stac_parse_auto_config()
4292 if (spec->anabeep_nid > 0) { in stac_parse_auto_config()
4294 spec->anabeep_nid); in stac_parse_auto_config()
4301 if (spec->gen.beep_nid) { in stac_parse_auto_config()
4302 hda_nid_t nid = spec->gen.beep_nid; in stac_parse_auto_config()
4310 codec->beep->linear_tone = spec->linear_tone_beep; in stac_parse_auto_config()
4324 if (spec->gpio_led) in stac_parse_auto_config()
4327 if (spec->aloopback_ctl && in stac_parse_auto_config()
4330 spec->aloopback_ctl->private_value >> 16; in stac_parse_auto_config()
4333 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl)) in stac_parse_auto_config()
4337 if (spec->have_spdif_mux) { in stac_parse_auto_config()
4350 struct sigmatel_spec *spec = codec->spec; in stac_init() local
4357 /* turn on EAPD statically when spec->eapd_switch isn't set. in stac_init()
4360 if (!spec->eapd_switch) in stac_init()
4361 spec->gpio_data |= spec->eapd_mask; in stac_init()
4362 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_init()
4367 if (spec->num_pwrs) in stac_init()
4370 spec->power_map_bits); in stac_init()
4373 if (spec->powerdown_adcs) { in stac_init()
4374 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_init()
4375 if (spec->active_adcs & (1 << i)) in stac_init()
4377 snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, in stac_init()
4388 struct sigmatel_spec *spec = codec->spec; in stac_shutup() local
4392 if (spec->eapd_mask) in stac_shutup()
4393 stac_gpio_set(codec, spec->gpio_mask, in stac_shutup()
4394 spec->gpio_dir, spec->gpio_data & in stac_shutup()
4395 ~spec->eapd_mask); in stac_shutup()
4471 struct sigmatel_spec *spec; in alloc_stac_spec() local
4473 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in alloc_stac_spec()
4474 if (!spec) in alloc_stac_spec()
4476 snd_hda_gen_spec_init(&spec->gen); in alloc_stac_spec()
4477 codec->spec = spec; in alloc_stac_spec()
4479 spec->gen.dac_min_mute = true; in alloc_stac_spec()
4486 struct sigmatel_spec *spec; in patch_stac9200() local
4493 spec = codec->spec; in patch_stac9200()
4494 spec->linear_tone_beep = 1; in patch_stac9200()
4495 spec->gen.own_eapd_ctl = 1; in patch_stac9200()
4518 struct sigmatel_spec *spec; in patch_stac925x() local
4525 spec = codec->spec; in patch_stac925x()
4526 spec->linear_tone_beep = 1; in patch_stac925x()
4527 spec->gen.own_eapd_ctl = 1; in patch_stac925x()
4548 struct sigmatel_spec *spec; in patch_stac92hd73xx() local
4556 spec = codec->spec; in patch_stac92hd73xx()
4562 spec->linear_tone_beep = 0; in patch_stac92hd73xx()
4563 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
4564 spec->have_spdif_mux = 1; in patch_stac92hd73xx()
4575 spec->aloopback_ctl = &stac92hd73xx_6ch_loopback; in patch_stac92hd73xx()
4578 spec->aloopback_ctl = &stac92hd73xx_8ch_loopback; in patch_stac92hd73xx()
4581 spec->aloopback_ctl = &stac92hd73xx_10ch_loopback; in patch_stac92hd73xx()
4585 spec->aloopback_mask = 0x01; in patch_stac92hd73xx()
4586 spec->aloopback_shift = 8; in patch_stac92hd73xx()
4588 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
4591 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac92hd73xx()
4592 spec->gpio_data = 0x01; in patch_stac92hd73xx()
4594 spec->eapd_switch = 1; in patch_stac92hd73xx()
4596 spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids); in patch_stac92hd73xx()
4597 spec->pwr_nids = stac92hd73xx_pwr_nids; in patch_stac92hd73xx()
4599 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
4600 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
4606 if (!spec->volknob_init) in patch_stac92hd73xx()
4618 if (spec->eapd_switch && !has_builtin_speaker(codec)) in patch_stac92hd73xx()
4619 spec->eapd_switch = 0; in patch_stac92hd73xx()
4630 struct sigmatel_spec *spec = codec->spec; in stac_setup_gpio() local
4632 spec->gpio_mask |= spec->eapd_mask; in stac_setup_gpio()
4633 if (spec->gpio_led) { in stac_setup_gpio()
4634 if (!spec->vref_mute_led_nid) { in stac_setup_gpio()
4635 spec->gpio_mask |= spec->gpio_led; in stac_setup_gpio()
4636 spec->gpio_dir |= spec->gpio_led; in stac_setup_gpio()
4637 spec->gpio_data |= spec->gpio_led; in stac_setup_gpio()
4643 if (spec->mic_mute_led_gpio) { in stac_setup_gpio()
4644 spec->gpio_mask |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4645 spec->gpio_dir |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4646 spec->mic_enabled = 0; in stac_setup_gpio()
4647 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_setup_gpio()
4654 struct sigmatel_spec *spec; in patch_stac92hd83xxx() local
4664 spec = codec->spec; in patch_stac92hd83xxx()
4666 spec->linear_tone_beep = 0; in patch_stac92hd83xxx()
4667 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
4668 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
4669 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
4671 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
4672 spec->pwr_nids = stac92hd83xxx_pwr_nids; in patch_stac92hd83xxx()
4673 spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids); in patch_stac92hd83xxx()
4674 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd83xxx()
4703 struct sigmatel_spec *spec; in patch_stac92hd95() local
4713 spec = codec->spec; in patch_stac92hd95()
4715 spec->linear_tone_beep = 0; in patch_stac92hd95()
4716 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4717 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4719 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4720 spec->pwr_nids = stac92hd95_pwr_nids; in patch_stac92hd95()
4721 spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids); in patch_stac92hd95()
4722 spec->default_polarity = 0; in patch_stac92hd95()
4745 struct sigmatel_spec *spec; in patch_stac92hd71bxx() local
4753 spec = codec->spec; in patch_stac92hd71bxx()
4756 spec->linear_tone_beep = 0; in patch_stac92hd71bxx()
4757 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4758 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4759 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4760 spec->have_spdif_mux = 1; in patch_stac92hd71bxx()
4763 spec->gpio_mask = 0x01; in patch_stac92hd71bxx()
4764 spec->gpio_dir = 0x01; in patch_stac92hd71bxx()
4765 spec->gpio_data = 0x01; in patch_stac92hd71bxx()
4775 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4784 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4799 spec->aloopback_ctl = &stac92hd71bxx_loopback; in patch_stac92hd71bxx()
4800 spec->aloopback_mask = 0x50; in patch_stac92hd71bxx()
4801 spec->aloopback_shift = 0; in patch_stac92hd71bxx()
4803 spec->powerdown_adcs = 1; in patch_stac92hd71bxx()
4804 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4805 spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids); in patch_stac92hd71bxx()
4806 spec->pwr_nids = stac92hd71bxx_pwr_nids; in patch_stac92hd71bxx()
4829 struct sigmatel_spec *spec; in patch_stac922x() local
4836 spec = codec->spec; in patch_stac922x()
4837 spec->linear_tone_beep = 1; in patch_stac922x()
4838 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4871 struct sigmatel_spec *spec; in patch_stac927x() local
4878 spec = codec->spec; in patch_stac927x()
4879 spec->linear_tone_beep = 1; in patch_stac927x()
4880 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4881 spec->have_spdif_mux = 1; in patch_stac927x()
4882 spec->spdif_labels = stac927x_spdif_labels; in patch_stac927x()
4884 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4887 spec->eapd_mask = spec->gpio_mask = 0x01; in patch_stac927x()
4888 spec->gpio_dir = spec->gpio_data = 0x01; in patch_stac927x()
4890 spec->aloopback_ctl = &stac927x_loopback; in patch_stac927x()
4891 spec->aloopback_mask = 0x40; in patch_stac927x()
4892 spec->aloopback_shift = 0; in patch_stac927x()
4893 spec->eapd_switch = 1; in patch_stac927x()
4899 if (!spec->volknob_init) in patch_stac927x()
4929 struct sigmatel_spec *spec; in patch_stac9205() local
4936 spec = codec->spec; in patch_stac9205()
4937 spec->linear_tone_beep = 1; in patch_stac9205()
4938 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4939 spec->have_spdif_mux = 1; in patch_stac9205()
4941 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
4944 spec->aloopback_ctl = &stac9205_loopback; in patch_stac9205()
4946 spec->aloopback_mask = 0x40; in patch_stac9205()
4947 spec->aloopback_shift = 0; in patch_stac9205()
4950 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac9205()
4951 spec->gpio_data = 0x01; in patch_stac9205()
4954 spec->eapd_switch = 1; in patch_stac9205()
5016 struct sigmatel_spec *spec; in patch_stac9872() local
5023 spec = codec->spec; in patch_stac9872()
5024 spec->linear_tone_beep = 1; in patch_stac9872()
5025 spec->gen.own_eapd_ctl = 1; in patch_stac9872()