mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 14:45:11 +07:00
608b8c36c3
Handle all HDA codecs using same logic, including HDMI/DP. Call to snd_hda_codec_build_controls() is delayed for HDMI/DP HDA devices. This is needed to discover the PCM device numbers as defined in topology. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191029134017.18901-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
37 lines
775 B
C
37 lines
775 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright(c) 2015-18 Intel Corporation.
|
|
*/
|
|
|
|
#ifndef __HDAC_HDA_H__
|
|
#define __HDAC_HDA_H__
|
|
|
|
enum {
|
|
HDAC_ANALOG_DAI_ID = 0,
|
|
HDAC_DIGITAL_DAI_ID,
|
|
HDAC_ALT_ANALOG_DAI_ID,
|
|
HDAC_HDMI_0_DAI_ID,
|
|
HDAC_HDMI_1_DAI_ID,
|
|
HDAC_HDMI_2_DAI_ID,
|
|
HDAC_LAST_DAI_ID = HDAC_HDMI_2_DAI_ID,
|
|
};
|
|
|
|
struct hdac_hda_pcm {
|
|
int stream_tag[2];
|
|
unsigned int format_val[2];
|
|
};
|
|
|
|
struct hdac_hda_priv {
|
|
struct hda_codec codec;
|
|
struct hdac_hda_pcm pcm[HDAC_LAST_DAI_ID];
|
|
bool need_display_power;
|
|
};
|
|
|
|
#define hdac_to_hda_priv(_hdac) \
|
|
container_of(_hdac, struct hdac_hda_priv, codec.core)
|
|
#define hdac_to_hda_codec(_hdac) container_of(_hdac, struct hda_codec, core)
|
|
|
|
struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void);
|
|
|
|
#endif /* __HDAC_HDA_H__ */
|