linux/sound/pci/hda/hda_auto_parser.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * BIOS auto-parser helper functions for HD-audio
 *
 * Copyright (c) 2012 Takashi Iwai <[email protected]>
 */

#ifndef __SOUND_HDA_AUTO_PARSER_H
#define __SOUND_HDA_AUTO_PARSER_H

#include "hda_local.h"

/*
 * Helper for automatic pin configuration
 */

enum {};

enum {};

#define AUTO_CFG_MAX_OUTS
#define AUTO_CFG_MAX_INS

struct auto_pin_cfg_item {};

struct auto_pin_cfg;
const char *hda_get_autocfg_input_label(struct hda_codec *codec,
					const struct auto_pin_cfg *cfg,
					int input);
int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
			  const struct auto_pin_cfg *cfg,
			  char *label, int maxlen, int *indexp);

enum {};

int snd_hda_get_input_pin_attr(unsigned int def_conf);

struct auto_pin_cfg {};

/* bit-flags for snd_hda_parse_pin_def_config() behavior */
#define HDA_PINCFG_NO_HP_FIXUP
#define HDA_PINCFG_NO_LO_FIXUP
#define HDA_PINCFG_HEADSET_MIC
#define HDA_PINCFG_HEADPHONE_MIC

int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
			     struct auto_pin_cfg *cfg,
			     const hda_nid_t *ignore_nids,
			     unsigned int cond_flags);

/* older function */
#define snd_hda_parse_pin_def_config(codec, cfg, ignore)

static inline int auto_cfg_hp_outs(const struct auto_pin_cfg *cfg)
{}
static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg)
{}
static inline int auto_cfg_speaker_outs(const struct auto_pin_cfg *cfg)
{}
static inline const hda_nid_t *auto_cfg_speaker_pins(const struct auto_pin_cfg *cfg)
{}

#endif /* __SOUND_HDA_AUTO_PARSER_H */