1
2
3
4
5
6
7
8
9
10
11 #ifndef __SOUND_SOC_HDA_DSP_COMMON_H
12 #define __SOUND_SOC_HDA_DSP_COMMON_H
13 #include <linux/module.h>
14 #include <linux/platform_device.h>
15 #include <sound/core.h>
16 #include <sound/jack.h>
17
18 #define HDA_DSP_MAX_BE_DAI_LINKS 7
19
20 struct skl_hda_hdmi_pcm {
21 struct list_head head;
22 struct snd_soc_dai *codec_dai;
23 struct snd_soc_jack hdmi_jack;
24 int device;
25 };
26
27 struct skl_hda_private {
28 struct list_head hdmi_pcm_list;
29 int pcm_count;
30 int dai_index;
31 const char *platform_name;
32 };
33
34 extern struct snd_soc_dai_link skl_hda_be_dai_links[HDA_DSP_MAX_BE_DAI_LINKS];
35 int skl_hda_hdmi_jack_init(struct snd_soc_card *card);
36 int skl_hda_hdmi_add_pcm(struct snd_soc_card *card, int device);
37
38 #endif