Lines Matching +full:hp +full:- +full:cfg

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * BIOS auto-parser helper functions for HD-audio
38 unsigned int is_headphone_mic:1; /* Mic-only in headphone jack */
44 const struct auto_pin_cfg *cfg,
47 const struct auto_pin_cfg *cfg,
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 */
81 /* bit-flags for snd_hda_parse_pin_def_config() behavior */
82 #define HDA_PINCFG_NO_HP_FIXUP (1 << 0) /* no HP-split */
88 struct auto_pin_cfg *cfg,
93 #define snd_hda_parse_pin_def_config(codec, cfg, ignore) \ argument
94 snd_hda_parse_pin_defcfg(codec, cfg, ignore, 0)
96 static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg) in auto_cfg_hp_outs() argument
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()
101 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins() argument
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() argument
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()
111 static inline const hda_nid_t *auto_cfg_speaker_pins(const struct auto_pin_cfg *cfg) in auto_cfg_speaker_pins() argument
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()