static int cs421x_init(struct hda_codec *codec) { struct cs_spec *spec = codec->spec; if (spec->vendor_nid == CS4210_VENDOR_NID) { snd_hda_sequence_write(codec, cs421x_coef_init_verbs); snd_hda_sequence_write(codec, cs421x_coef_init_verbs_A1_silicon_fixes); cs4210_pinmux_init(codec); } snd_hda_gen_init(codec); if (spec->gpio_mask) { snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, spec->gpio_mask); snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, spec->gpio_data); } init_input_coef(codec); cs4210_spdif_automute(codec, NULL); return 0; }
static int cs_init(struct hda_codec *codec) { struct cs_spec *spec = codec->spec; if (spec->vendor_nid == CS420X_VENDOR_NID) { /* init_verb sequence for C0/C1/C2 errata*/ snd_hda_sequence_write(codec, cs_errata_init_verbs); snd_hda_sequence_write(codec, cs_coef_init_verbs); } else if (spec->vendor_nid == CS4208_VENDOR_NID) { snd_hda_sequence_write(codec, cs4208_coef_init_verbs); } snd_hda_gen_init(codec); if (spec->gpio_mask) { snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, spec->gpio_mask); snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, spec->gpio_data); } if (spec->vendor_nid == CS420X_VENDOR_NID) { init_input_coef(codec); init_digital_coef(codec); } return 0; }
static int cx_auto_init(struct hda_codec *codec) { struct conexant_spec *spec = codec->spec; snd_hda_gen_init(codec); if (!spec->dynamic_eapd) cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, true); snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); return 0; }
static int ad1988_auto_init(struct hda_codec *codec) { struct ad198x_spec *spec = codec->spec; int i, err; err = snd_hda_gen_init(codec); if (err < 0) return err; if (!spec->gen.autocfg.dig_outs) return 0; for (i = 0; i < 4; i++) { struct nid_path *path; path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]); if (path) snd_hda_activate_path(codec, path, path->active, false); } return 0; }