Lines Matching refs:spec
247 struct sigmatel_spec *spec = codec->spec; in stac_playback_pcm_hook() local
248 if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay) in stac_playback_pcm_hook()
249 msleep(spec->stream_delay); in stac_playback_pcm_hook()
257 struct sigmatel_spec *spec = codec->spec; in stac_capture_pcm_hook() local
260 if (!spec->powerdown_adcs) in stac_capture_pcm_hook()
263 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
264 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
275 spec->active_adcs |= (1 << idx); in stac_capture_pcm_hook()
280 spec->active_adcs &= ~(1 << idx); in stac_capture_pcm_hook()
327 struct sigmatel_spec *spec = codec->spec; in stac_capture_led_hook() local
335 if (spec->mic_mute_led_on != mute) { in stac_capture_led_hook()
336 spec->mic_mute_led_on = mute; in stac_capture_led_hook()
338 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_capture_led_hook()
340 spec->gpio_data &= ~spec->mic_mute_led_gpio; in stac_capture_led_hook()
341 stac_gpio_set(codec, spec->gpio_mask, in stac_capture_led_hook()
342 spec->gpio_dir, spec->gpio_data); in stac_capture_led_hook()
372 struct sigmatel_spec *spec = codec->spec; in stac_update_led_status() local
375 if (!spec->gpio_led) in stac_update_led_status()
379 if (spec->gpio_led_polarity) in stac_update_led_status()
382 if (!spec->vref_mute_led_nid) { in stac_update_led_status()
384 spec->gpio_data |= spec->gpio_led; in stac_update_led_status()
386 spec->gpio_data &= ~spec->gpio_led; in stac_update_led_status()
387 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status()
388 spec->gpio_dir, spec->gpio_data); in stac_update_led_status()
390 spec->vref_led = muted ? AC_PINCTL_VREF_50 : AC_PINCTL_VREF_GRD; in stac_update_led_status()
391 stac_vrefout_set(codec, spec->vref_mute_led_nid, in stac_update_led_status()
392 spec->vref_led); in stac_update_led_status()
405 struct sigmatel_spec *spec = codec->spec; in stac_update_outputs() local
407 if (spec->gpio_mute) in stac_update_outputs()
408 spec->gen.master_mute = in stac_update_outputs()
410 AC_VERB_GET_GPIO_DATA, 0) & spec->gpio_mute); in stac_update_outputs()
414 if (spec->eapd_mask && spec->eapd_switch) { in stac_update_outputs()
415 unsigned int val = spec->gpio_data; in stac_update_outputs()
416 if (spec->gen.speaker_muted) in stac_update_outputs()
417 val &= ~spec->eapd_mask; in stac_update_outputs()
419 val |= spec->eapd_mask; in stac_update_outputs()
420 if (spec->gpio_data != val) in stac_update_outputs()
421 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs()
429 struct sigmatel_spec *spec = codec->spec; in stac_toggle_power_map() local
432 for (idx = 0; idx < spec->num_pwrs; idx++) { in stac_toggle_power_map()
433 if (spec->pwr_nids[idx] == nid) in stac_toggle_power_map()
436 if (idx >= spec->num_pwrs) in stac_toggle_power_map()
441 val = spec->power_map_bits; in stac_toggle_power_map()
448 if (val != spec->power_map_bits) { in stac_toggle_power_map()
449 spec->power_map_bits = val; in stac_toggle_power_map()
460 struct sigmatel_spec *spec = codec->spec; in jack_update_power() local
463 if (!spec->num_pwrs) in jack_update_power()
474 for (i = 0; i < spec->num_pwrs; i++) { in jack_update_power()
475 hda_nid_t nid = spec->pwr_nids[i]; in jack_update_power()
487 spec->power_map_bits); in jack_update_power()
527 struct sigmatel_spec *spec = codec->spec; in stac_init_power_map() local
530 for (i = 0; i < spec->num_pwrs; i++) { in stac_init_power_map()
531 hda_nid_t nid = spec->pwr_nids[i]; in stac_init_power_map()
537 !(spec->vref_mute_led_nid == nid || in stac_init_power_map()
563 struct sigmatel_spec *spec = codec->spec; in stac_store_hints() local
566 if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { in stac_store_hints()
567 spec->eapd_mask = spec->gpio_dir = spec->gpio_data = in stac_store_hints()
568 spec->gpio_mask; in stac_store_hints()
570 if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) in stac_store_hints()
571 spec->gpio_mask &= spec->gpio_mask; in stac_store_hints()
572 if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) in stac_store_hints()
573 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints()
574 if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) in stac_store_hints()
575 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints()
576 if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) in stac_store_hints()
577 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints()
580 spec->eapd_switch = val; in stac_store_hints()
594 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_get() local
596 ucontrol->value.integer.value[0] = !!(spec->aloopback & in stac_aloopback_get()
597 (spec->aloopback_mask << idx)); in stac_aloopback_get()
605 struct sigmatel_spec *spec = codec->spec; in stac_aloopback_put() local
610 idx_val = spec->aloopback_mask << idx; in stac_aloopback_put()
612 val = spec->aloopback | idx_val; in stac_aloopback_put()
614 val = spec->aloopback & ~idx_val; in stac_aloopback_put()
615 if (spec->aloopback == val) in stac_aloopback_put()
618 spec->aloopback = val; in stac_aloopback_put()
625 dac_mode >>= spec->aloopback_shift; in stac_aloopback_put()
627 if (spec->aloopback & idx_val) { in stac_aloopback_put()
728 struct sigmatel_spec *spec = codec->spec; in set_hp_led_gpio() local
731 if (spec->gpio_led) in set_hp_led_gpio()
737 spec->gpio_led = 0x08; /* GPIO 3 */ in set_hp_led_gpio()
739 spec->gpio_led = 0x01; /* GPIO 0 */ in set_hp_led_gpio()
764 struct sigmatel_spec *spec = codec->spec; in find_mute_led_cfg() local
767 if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) { in find_mute_led_cfg()
769 &spec->gpio_led_polarity); in find_mute_led_cfg()
775 &spec->gpio_led_polarity, in find_mute_led_cfg()
776 &spec->gpio_led) == 2) { in find_mute_led_cfg()
781 if (spec->gpio_led < max_gpio) in find_mute_led_cfg()
782 spec->gpio_led = 1 << spec->gpio_led; in find_mute_led_cfg()
784 spec->vref_mute_led_nid = spec->gpio_led; in find_mute_led_cfg()
788 &spec->gpio_led_polarity) == 1) { in find_mute_led_cfg()
796 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
798 spec->gpio_led_polarity = 1; in find_mute_led_cfg()
811 spec->gpio_led_polarity = default_polarity; in find_mute_led_cfg()
820 struct sigmatel_spec *spec = codec->spec; in has_builtin_speaker() local
824 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
825 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
826 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
828 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
829 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
848 struct sigmatel_spec *spec = codec->spec; in stac_auto_create_beep_ctls() local
861 if (spec->anabeep_nid == nid) in stac_auto_create_beep_ctls()
865 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
875 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
914 struct sigmatel_spec *spec = codec->spec; in stac_beep_switch_ctl() local
916 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl)) in stac_beep_switch_ctl()
930 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_info() local
931 return snd_hda_input_mux_info(&spec->spdif_mux, uinfo); in stac_smux_enum_info()
938 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_get() local
941 ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx]; in stac_smux_enum_get()
949 struct sigmatel_spec *spec = codec->spec; in stac_smux_enum_put() local
952 return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, in stac_smux_enum_put()
953 spec->gen.autocfg.dig_out_pins[smux_idx], in stac_smux_enum_put()
954 &spec->cur_smux[smux_idx]); in stac_smux_enum_put()
972 struct sigmatel_spec *spec = codec->spec; in stac_create_spdif_mux_ctls() local
973 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in stac_create_spdif_mux_ctls()
974 const char * const *labels = spec->spdif_labels; in stac_create_spdif_mux_ctls()
990 snd_hda_add_imux_item(&spec->spdif_mux, labels[i], i, NULL); in stac_create_spdif_mux_ctls()
993 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1364 struct sigmatel_spec *spec = codec->spec; in stac9200_fixup_panasonic() local
1367 spec->gpio_mask = spec->gpio_dir = 0x09; in stac9200_fixup_panasonic()
1368 spec->gpio_data = 0x00; in stac9200_fixup_panasonic()
1372 spec->gen.suppress_auto_mute = 1; in stac9200_fixup_panasonic()
1779 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_ref() local
1785 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd73xx_fixup_ref()
1790 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell() local
1793 spec->eapd_switch = 0; in stac92hd73xx_fixup_dell()
1799 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_dell_eq() local
1806 spec->volknob_init = 1; in stac92hd73xx_fixup_dell_eq()
1846 struct sigmatel_spec *spec = codec->spec; in stac92hd73xx_fixup_alienware_m17x() local
1852 spec->eapd_switch = 0; in stac92hd73xx_fixup_alienware_m17x()
2042 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp() local
2052 if (find_mute_led_cfg(codec, spec->default_polarity)) in stac92hd83xxx_fixup_hp()
2054 spec->gpio_led, in stac92hd83xxx_fixup_hp()
2055 spec->gpio_led_polarity); in stac92hd83xxx_fixup_hp()
2071 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_led() local
2074 spec->default_polarity = 0; in stac92hd83xxx_fixup_hp_led()
2080 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_inv_led() local
2083 spec->default_polarity = 1; in stac92hd83xxx_fixup_hp_inv_led()
2089 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_hp_mic_led() local
2092 spec->mic_mute_led_gpio = 0x08; /* GPIO3 */ in stac92hd83xxx_fixup_hp_mic_led()
2098 struct sigmatel_spec *spec = codec->spec; in stac92hd83xxx_fixup_headset_jack() local
2101 spec->headset_jack = 1; in stac92hd83xxx_fixup_headset_jack()
2282 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_get() local
2283 ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20); in stac_hp_bass_gpio_get()
2291 struct sigmatel_spec *spec = codec->spec; in stac_hp_bass_gpio_put() local
2294 gpio_data = (spec->gpio_data & ~0x20) | in stac_hp_bass_gpio_put()
2296 if (gpio_data == spec->gpio_data) in stac_hp_bass_gpio_put()
2298 spec->gpio_data = gpio_data; in stac_hp_bass_gpio_put()
2299 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_hp_bass_gpio_put()
2312 struct sigmatel_spec *spec = codec->spec; in stac_add_hp_bass_switch() local
2314 if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch", in stac_add_hp_bass_switch()
2318 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch()
2319 spec->gpio_dir |= 0x20; in stac_add_hp_bass_switch()
2320 spec->gpio_data |= 0x20; in stac_add_hp_bass_switch()
2387 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_ref() local
2393 spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0; in stac92hd71bxx_fixup_ref()
2399 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_m4() local
2415 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4()
2424 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_dv4() local
2428 spec->gpio_led = 0x01; in stac92hd71bxx_fixup_hp_dv4()
2454 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp_hdx() local
2458 spec->gpio_led = 0x08; in stac92hd71bxx_fixup_hp_hdx()
2465 struct sigmatel_spec *spec = codec->spec; in stac92hd71bxx_fixup_hp() local
2490 spec->gpio_led, in stac92hd71bxx_fixup_hp()
2491 spec->gpio_led_polarity); in stac92hd71bxx_fixup_hp()
2850 struct sigmatel_spec *spec = codec->spec; in stac922x_fixup_intel_mac_gpio() local
2853 spec->gpio_mask = spec->gpio_dir = 0x03; in stac922x_fixup_intel_mac_gpio()
2854 spec->gpio_data = 0x03; in stac922x_fixup_intel_mac_gpio()
3149 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_ref() local
3153 spec->eapd_mask = spec->gpio_mask = 0; in stac927x_fixup_ref()
3154 spec->gpio_dir = spec->gpio_data = 0; in stac927x_fixup_ref()
3161 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_dell_dmic() local
3168 spec->eapd_mask = spec->gpio_mask = 0x04; in stac927x_fixup_dell_dmic()
3169 spec->gpio_dir = spec->gpio_data = 0x04; in stac927x_fixup_dell_dmic()
3173 spec->volknob_init = 1; in stac927x_fixup_dell_dmic()
3179 struct sigmatel_spec *spec = codec->spec; in stac927x_fixup_volknob() local
3183 spec->volknob_init = 1; in stac927x_fixup_volknob()
3399 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_ref() local
3404 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0; in stac9205_fixup_ref()
3411 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_dell_m43() local
3427 spec->gpio_dir = 0x0b; in stac9205_fixup_dell_m43()
3428 spec->eapd_mask = 0x01; in stac9205_fixup_dell_m43()
3429 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43()
3430 spec->gpio_mute = 0x10; in stac9205_fixup_dell_m43()
3434 spec->gpio_data = 0x01; in stac9205_fixup_dell_m43()
3441 struct sigmatel_spec *spec = codec->spec; in stac9205_fixup_eapd() local
3444 spec->eapd_switch = 0; in stac9205_fixup_eapd()
3529 struct sigmatel_spec *spec = codec->spec; in stac_parse_auto_config() local
3533 if (spec->headset_jack) in stac_parse_auto_config()
3536 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); in stac_parse_auto_config()
3541 spec->gen.pcm_playback_hook = stac_playback_pcm_hook; in stac_parse_auto_config()
3542 spec->gen.pcm_capture_hook = stac_capture_pcm_hook; in stac_parse_auto_config()
3544 spec->gen.automute_hook = stac_update_outputs; in stac_parse_auto_config()
3545 spec->gen.hp_automute_hook = stac_hp_automute; in stac_parse_auto_config()
3546 spec->gen.line_automute_hook = stac_line_automute; in stac_parse_auto_config()
3547 spec->gen.mic_autoswitch_hook = stac_mic_autoswitch; in stac_parse_auto_config()
3549 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in stac_parse_auto_config()
3554 spec->gen.vmaster_tlv[3] |= TLV_DB_SCALE_MUTE; in stac_parse_auto_config()
3557 if (spec->anabeep_nid > 0) { in stac_parse_auto_config()
3559 spec->anabeep_nid); in stac_parse_auto_config()
3566 if (spec->gen.beep_nid) { in stac_parse_auto_config()
3567 hda_nid_t nid = spec->gen.beep_nid; in stac_parse_auto_config()
3575 codec->beep->linear_tone = spec->linear_tone_beep; in stac_parse_auto_config()
3587 if (spec->gpio_led) in stac_parse_auto_config()
3588 spec->gen.vmaster_mute.hook = stac_vmaster_hook; in stac_parse_auto_config()
3590 if (spec->aloopback_ctl && in stac_parse_auto_config()
3592 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl)) in stac_parse_auto_config()
3596 if (spec->have_spdif_mux) { in stac_parse_auto_config()
3610 struct sigmatel_spec *spec = codec->spec; in stac_init() local
3618 gpio = spec->gpio_data; in stac_init()
3622 if (!spec->eapd_switch) in stac_init()
3623 gpio |= spec->eapd_mask; in stac_init()
3624 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, gpio); in stac_init()
3629 if (spec->num_pwrs) in stac_init()
3632 spec->power_map_bits); in stac_init()
3635 if (spec->powerdown_adcs) { in stac_init()
3636 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_init()
3637 if (spec->active_adcs & (1 << i)) in stac_init()
3639 snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, in stac_init()
3650 struct sigmatel_spec *spec = codec->spec; in stac_shutup() local
3654 if (spec->eapd_mask) in stac_shutup()
3655 stac_gpio_set(codec, spec->gpio_mask, in stac_shutup()
3656 spec->gpio_dir, spec->gpio_data & in stac_shutup()
3657 ~spec->eapd_mask); in stac_shutup()
3728 struct sigmatel_spec *spec = codec->spec; in stac_set_power_state() local
3731 if (spec->vref_mute_led_nid) { in stac_set_power_state()
3765 struct sigmatel_spec *spec; in alloc_stac_spec() local
3767 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in alloc_stac_spec()
3768 if (!spec) in alloc_stac_spec()
3770 snd_hda_gen_spec_init(&spec->gen); in alloc_stac_spec()
3771 codec->spec = spec; in alloc_stac_spec()
3778 struct sigmatel_spec *spec; in patch_stac9200() local
3785 spec = codec->spec; in patch_stac9200()
3786 spec->linear_tone_beep = 1; in patch_stac9200()
3787 spec->gen.own_eapd_ctl = 1; in patch_stac9200()
3811 struct sigmatel_spec *spec; in patch_stac925x() local
3818 spec = codec->spec; in patch_stac925x()
3819 spec->linear_tone_beep = 1; in patch_stac925x()
3820 spec->gen.own_eapd_ctl = 1; in patch_stac925x()
3843 struct sigmatel_spec *spec; in patch_stac92hd73xx() local
3851 spec = codec->spec; in patch_stac92hd73xx()
3852 spec->linear_tone_beep = 0; in patch_stac92hd73xx()
3853 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
3854 spec->have_spdif_mux = 1; in patch_stac92hd73xx()
3865 spec->aloopback_ctl = &stac92hd73xx_6ch_loopback; in patch_stac92hd73xx()
3868 spec->aloopback_ctl = &stac92hd73xx_8ch_loopback; in patch_stac92hd73xx()
3871 spec->aloopback_ctl = &stac92hd73xx_10ch_loopback; in patch_stac92hd73xx()
3875 spec->aloopback_mask = 0x01; in patch_stac92hd73xx()
3876 spec->aloopback_shift = 8; in patch_stac92hd73xx()
3878 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
3881 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac92hd73xx()
3882 spec->gpio_data = 0x01; in patch_stac92hd73xx()
3884 spec->eapd_switch = 1; in patch_stac92hd73xx()
3886 spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids); in patch_stac92hd73xx()
3887 spec->pwr_nids = stac92hd73xx_pwr_nids; in patch_stac92hd73xx()
3889 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
3890 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
3898 if (!spec->volknob_init) in patch_stac92hd73xx()
3910 if (spec->eapd_switch && !has_builtin_speaker(codec)) in patch_stac92hd73xx()
3911 spec->eapd_switch = 0; in patch_stac92hd73xx()
3922 struct sigmatel_spec *spec = codec->spec; in stac_setup_gpio() local
3924 if (spec->gpio_led) { in stac_setup_gpio()
3925 if (!spec->vref_mute_led_nid) { in stac_setup_gpio()
3926 spec->gpio_mask |= spec->gpio_led; in stac_setup_gpio()
3927 spec->gpio_dir |= spec->gpio_led; in stac_setup_gpio()
3928 spec->gpio_data |= spec->gpio_led; in stac_setup_gpio()
3935 if (spec->mic_mute_led_gpio) { in stac_setup_gpio()
3936 spec->gpio_mask |= spec->mic_mute_led_gpio; in stac_setup_gpio()
3937 spec->gpio_dir |= spec->mic_mute_led_gpio; in stac_setup_gpio()
3938 spec->mic_mute_led_on = true; in stac_setup_gpio()
3939 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_setup_gpio()
3941 spec->gen.cap_sync_hook = stac_capture_led_hook; in stac_setup_gpio()
3947 struct sigmatel_spec *spec; in patch_stac92hd83xxx() local
3956 spec = codec->spec; in patch_stac92hd83xxx()
3957 spec->linear_tone_beep = 0; in patch_stac92hd83xxx()
3958 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
3959 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
3960 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
3962 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
3963 spec->pwr_nids = stac92hd83xxx_pwr_nids; in patch_stac92hd83xxx()
3964 spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids); in patch_stac92hd83xxx()
3965 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd83xxx()
3996 struct sigmatel_spec *spec; in patch_stac92hd95() local
4005 spec = codec->spec; in patch_stac92hd95()
4006 spec->linear_tone_beep = 0; in patch_stac92hd95()
4007 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4008 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4010 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4011 spec->pwr_nids = stac92hd95_pwr_nids; in patch_stac92hd95()
4012 spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids); in patch_stac92hd95()
4013 spec->default_polarity = -1; /* no default cfg */ in patch_stac92hd95()
4030 struct sigmatel_spec *spec; in patch_stac92hd71bxx() local
4038 spec = codec->spec; in patch_stac92hd71bxx()
4039 spec->linear_tone_beep = 0; in patch_stac92hd71bxx()
4040 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4041 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4042 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4043 spec->have_spdif_mux = 1; in patch_stac92hd71bxx()
4048 spec->gpio_mask = 0x01; in patch_stac92hd71bxx()
4049 spec->gpio_dir = 0x01; in patch_stac92hd71bxx()
4050 spec->gpio_data = 0x01; in patch_stac92hd71bxx()
4060 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4069 spec->stream_delay = 40; /* 40 milliseconds */ in patch_stac92hd71bxx()
4080 spec->aloopback_ctl = &stac92hd71bxx_loopback; in patch_stac92hd71bxx()
4081 spec->aloopback_mask = 0x50; in patch_stac92hd71bxx()
4082 spec->aloopback_shift = 0; in patch_stac92hd71bxx()
4084 spec->powerdown_adcs = 1; in patch_stac92hd71bxx()
4085 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4086 spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids); in patch_stac92hd71bxx()
4087 spec->pwr_nids = stac92hd71bxx_pwr_nids; in patch_stac92hd71bxx()
4110 struct sigmatel_spec *spec; in patch_stac922x() local
4117 spec = codec->spec; in patch_stac922x()
4118 spec->linear_tone_beep = 1; in patch_stac922x()
4119 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4154 struct sigmatel_spec *spec; in patch_stac927x() local
4161 spec = codec->spec; in patch_stac927x()
4162 spec->linear_tone_beep = 1; in patch_stac927x()
4163 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4164 spec->have_spdif_mux = 1; in patch_stac927x()
4165 spec->spdif_labels = stac927x_spdif_labels; in patch_stac927x()
4167 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4170 spec->eapd_mask = spec->gpio_mask = 0x01; in patch_stac927x()
4171 spec->gpio_dir = spec->gpio_data = 0x01; in patch_stac927x()
4173 spec->aloopback_ctl = &stac927x_loopback; in patch_stac927x()
4174 spec->aloopback_mask = 0x40; in patch_stac927x()
4175 spec->aloopback_shift = 0; in patch_stac927x()
4176 spec->eapd_switch = 1; in patch_stac927x()
4184 if (!spec->volknob_init) in patch_stac927x()
4214 struct sigmatel_spec *spec; in patch_stac9205() local
4221 spec = codec->spec; in patch_stac9205()
4222 spec->linear_tone_beep = 1; in patch_stac9205()
4223 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4224 spec->have_spdif_mux = 1; in patch_stac9205()
4226 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
4229 spec->aloopback_ctl = &stac9205_loopback; in patch_stac9205()
4231 spec->aloopback_mask = 0x40; in patch_stac9205()
4232 spec->aloopback_shift = 0; in patch_stac9205()
4235 spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1; in patch_stac9205()
4236 spec->gpio_data = 0x01; in patch_stac9205()
4239 spec->eapd_switch = 1; in patch_stac9205()
4303 struct sigmatel_spec *spec; in patch_stac9872() local
4310 spec = codec->spec; in patch_stac9872()
4311 spec->linear_tone_beep = 1; in patch_stac9872()
4312 spec->gen.own_eapd_ctl = 1; in patch_stac9872()