3fd63658ca
To make snd_hda_codec_device_init() the only constructor for struct hda_codec instances remaining tasks are: 1) no struct may wrap struct hda_codec as its base type 2) bus drivers (skylake and sof) which are the current hdac_ext users need to be adjusted to make use of newly added codec init and exit routines instead 3) as bus drivers (skylake and sof) are to be responsible for creating codec device and assigning it to hdac_hda_priv->codec, hdac_hda_dev_probe() has to be freed of that job To keep git bisect happy, all of these in made in one-go. Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220816111727.3218543-4-cezary.rojewski@intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
34 lines
628 B
C
34 lines
628 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_HDMI_3_DAI_ID,
|
|
HDAC_LAST_DAI_ID = HDAC_HDMI_3_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;
|
|
};
|
|
|
|
struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void);
|
|
|
|
#endif /* __HDAC_HDA_H__ */
|