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;
40 int order;
46 int input);
47 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
49 char *label, int maxlen, int *indexp);
53 INPUT_PIN_ATTR_INT, /* internal mic/line-in */
54 INPUT_PIN_ATTR_DOCK, /* docking mic/line-in */
55 INPUT_PIN_ATTR_NORMAL, /* mic/line-in jack */
56 INPUT_PIN_ATTR_REAR, /* mic/line-in jack in rear */
57 INPUT_PIN_ATTR_FRONT, /* mic/line-in jack in front */
61 int snd_hda_get_input_pin_attr(unsigned int def_conf);
64 int line_outs;
67 int speaker_outs;
69 int hp_outs;
70 int line_out_type; /* AUTO_PIN_XXX_OUT */
72 int num_inputs;
74 int dig_outs;
78 int dig_out_type[2]; /* HDA_PCM_TYPE_XXX */
79 int dig_in_type; /* HDA_PCM_TYPE_XXX */
82 /* bit-flags for snd_hda_parse_pin_def_config() behavior */
83 #define HDA_PINCFG_NO_HP_FIXUP (1 << 0) /* no HP-split */
85 #define HDA_PINCFG_HEADSET_MIC (1 << 2) /* Try to find headset mic; mark seq number as 0xc to tri…
86 #define HDA_PINCFG_HEADPHONE_MIC (1 << 3) /* Try to find headphone mic; mark seq number as 0xd to t…
88 int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
91 unsigned int cond_flags);
97 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs()
99 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_outs()
100 cfg->line_outs : cfg->hp_outs; in auto_cfg_hp_outs()
104 return (cfg->line_out_type == AUTO_PIN_HP_OUT) ? in auto_cfg_hp_pins()
105 cfg->line_out_pins : cfg->hp_pins; in auto_cfg_hp_pins()
107 static inline int auto_cfg_speaker_outs(const struct auto_pin_cfg *cfg) in auto_cfg_speaker_outs()
109 return (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) ? in auto_cfg_speaker_outs()
110 cfg->line_outs : cfg->speaker_outs; in auto_cfg_speaker_outs()
114 return (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) ? in auto_cfg_speaker_pins()
115 cfg->line_out_pins : cfg->speaker_pins; in auto_cfg_speaker_pins()