Lines Matching +full:mic +full:- +full:int

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * BIOS auto-parser helper functions for HD-audio
36 int type;
37 unsigned int is_headset_mic:1;
38 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */
39 unsigned int has_boost_on_pin:1;
45 int input);
46 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
48 char *label, int maxlen, int *indexp);
52 INPUT_PIN_ATTR_INT, /* internal mic/line-in */
53 INPUT_PIN_ATTR_DOCK, /* docking mic/line-in */
54 INPUT_PIN_ATTR_NORMAL, /* mic/line-in jack */
55 INPUT_PIN_ATTR_REAR, /* mic/line-in jack in rear */
56 INPUT_PIN_ATTR_FRONT, /* mic/line-in jack in front */
60 int snd_hda_get_input_pin_attr(unsigned int def_conf);
63 int line_outs;
66 int speaker_outs;
68 int hp_outs;
69 int line_out_type; /* AUTO_PIN_XXX_OUT */
71 int num_inputs;
73 int dig_outs;
77 int dig_out_type[2]; /* HDA_PCM_TYPE_XXX */
78 int dig_in_type; /* HDA_PCM_TYPE_XXX */
81 /* bit-flags for snd_hda_parse_pin_def_config() behavior */
82 #define HDA_PINCFG_NO_HP_FIXUP (1 << 0) /* no HP-split */
84 #define HDA_PINCFG_HEADSET_MIC (1 << 2) /* Try to find headset mic; mark seq number as 0xc to tri…
85 #define HDA_PINCFG_HEADPHONE_MIC (1 << 3) /* Try to find headphone mic; mark seq number as 0xd to t…
87 int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
90 unsigned int cond_flags);
96 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs()
98 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_outs()
99 cfg->line_outs : cfg->hp_outs; in auto_cfg_hp_outs()
103 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_pins()
104 cfg->line_out_pins : cfg->hp_pins; in auto_cfg_hp_pins()
106 static inline int auto_cfg_speaker_outs(const struct auto_pin_cfg *cfg) in auto_cfg_speaker_outs()
108 return (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) ? in auto_cfg_speaker_outs()
109 cfg->line_outs : cfg->speaker_outs; in auto_cfg_speaker_outs()
113 return (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) ? in auto_cfg_speaker_pins()
114 cfg->line_out_pins : cfg->speaker_pins; in auto_cfg_speaker_pins()