2018-08-22 20:25:03 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Copyright(c) 2015-18 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HDAC_HDA_H__
|
|
|
|
#define __HDAC_HDA_H__
|
|
|
|
|
2019-10-29 13:40:10 +00:00
|
|
|
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,
|
2019-12-20 17:10:37 +00:00
|
|
|
HDAC_HDMI_3_DAI_ID,
|
2022-11-09 23:40:23 +00:00
|
|
|
HDAC_DAI_ID_NUM
|
2019-10-29 13:40:10 +00:00
|
|
|
};
|
|
|
|
|
2018-08-22 20:25:03 +00:00
|
|
|
struct hdac_hda_pcm {
|
|
|
|
int stream_tag[2];
|
2019-03-08 08:38:58 +00:00
|
|
|
unsigned int format_val[2];
|
2018-08-22 20:25:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct hdac_hda_priv {
|
2022-08-16 11:17:24 +00:00
|
|
|
struct hda_codec *codec;
|
2022-11-09 23:40:23 +00:00
|
|
|
struct hdac_hda_pcm pcm[HDAC_DAI_ID_NUM];
|
2019-10-29 13:40:10 +00:00
|
|
|
bool need_display_power;
|
2023-09-19 08:32:09 +00:00
|
|
|
int dev_index;
|
2018-08-22 20:25:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void);
|
|
|
|
|
|
|
|
#endif /* __HDAC_HDA_H__ */
|