1010
1111#include <linux/acpi.h>
1212
13+ enum nhlt_link_type {
14+ NHLT_LINK_HDA = 0 ,
15+ NHLT_LINK_DSP = 1 ,
16+ NHLT_LINK_DMIC = 2 ,
17+ NHLT_LINK_SSP = 3 ,
18+ NHLT_LINK_INVALID
19+ };
20+
1321#if IS_ENABLED (CONFIG_ACPI ) && IS_ENABLED (CONFIG_SND_INTEL_NHLT )
1422
1523struct wav_fmt {
@@ -33,14 +41,6 @@ struct wav_fmt_ext {
3341 u8 sub_fmt [16 ];
3442} __packed ;
3543
36- enum nhlt_link_type {
37- NHLT_LINK_HDA = 0 ,
38- NHLT_LINK_DSP = 1 ,
39- NHLT_LINK_DMIC = 2 ,
40- NHLT_LINK_SSP = 3 ,
41- NHLT_LINK_INVALID
42- };
43-
4444enum nhlt_device_type {
4545 NHLT_DEVICE_BT = 0 ,
4646 NHLT_DEVICE_DMIC = 1 ,
@@ -132,6 +132,12 @@ void intel_nhlt_free(struct nhlt_acpi_table *addr);
132132
133133int intel_nhlt_get_dmic_geo (struct device * dev , struct nhlt_acpi_table * nhlt );
134134
135+ bool intel_nhlt_has_endpoint_type (struct nhlt_acpi_table * nhlt , u8 link_type );
136+ struct nhlt_specific_cfg *
137+ intel_nhlt_get_endpoint_blob (struct device * dev , struct nhlt_acpi_table * nhlt ,
138+ u32 bus_id , u8 link_type , u8 vbps , u8 bps ,
139+ u8 num_ch , u32 rate , u8 dir , u8 dev_type );
140+
135141#else
136142
137143struct nhlt_acpi_table ;
@@ -150,6 +156,21 @@ static inline int intel_nhlt_get_dmic_geo(struct device *dev,
150156{
151157 return 0 ;
152158}
159+
160+ static inline bool intel_nhlt_has_endpoint_type (struct nhlt_acpi_table * nhlt ,
161+ u8 link_type )
162+ {
163+ return false;
164+ }
165+
166+ static inline struct nhlt_specific_cfg *
167+ intel_nhlt_get_endpoint_blob (struct device * dev , struct nhlt_acpi_table * nhlt ,
168+ u32 bus_id , u8 link_type , u8 vbps , u8 bps ,
169+ u8 num_ch , u32 rate , u8 dir , u8 dev_type )
170+ {
171+ return NULL ;
172+ }
173+
153174#endif
154175
155176#endif
0 commit comments