Changeset 772 for GPL/trunk/alsa-kernel/include/sound/intel-nhlt.h
- Timestamp:
- Apr 19, 2025, 8:08:37 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-6.6-LTS (added) merged: 765,768-769 /GPL/branches/uniaud32-exp (added) merged: 735-741,743-744,748-751,753-760,762-764 /GPL/branches/uniaud32-next merged: 718-734
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/intel-nhlt.h
r689 r772 11 11 #include <linux/acpi.h> 12 12 13 #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT) 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 21 enum nhlt_device_type { 22 NHLT_DEVICE_BT = 0, 23 NHLT_DEVICE_DMIC = 1, 24 NHLT_DEVICE_I2S = 4, 25 NHLT_DEVICE_INVALID 26 }; 14 27 15 28 struct wav_fmt { … … 33 46 u8 sub_fmt[16]; 34 47 } __packed; 35 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_INVALID42 };43 44 enum nhlt_device_type {45 NHLT_DEVICE_BT = 0,46 NHLT_DEVICE_DMIC = 1,47 NHLT_DEVICE_I2S = 4,48 NHLT_DEVICE_INVALID49 };50 48 51 49 struct nhlt_specific_cfg { … … 127 125 }; 128 126 127 #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT) 128 129 129 struct nhlt_acpi_table *intel_nhlt_init(struct device *dev); 130 130 … … 133 133 int intel_nhlt_get_dmic_geo(struct device *dev, struct nhlt_acpi_table *nhlt); 134 134 135 bool intel_nhlt_has_endpoint_type(struct nhlt_acpi_table *nhlt, u8 link_type); 136 137 int intel_nhlt_ssp_endpoint_mask(struct nhlt_acpi_table *nhlt, u8 device_type); 138 139 int intel_nhlt_ssp_mclk_mask(struct nhlt_acpi_table *nhlt, int ssp_num); 140 141 struct nhlt_specific_cfg * 142 intel_nhlt_get_endpoint_blob(struct device *dev, struct nhlt_acpi_table *nhlt, 143 u32 bus_id, u8 link_type, u8 vbps, u8 bps, 144 u8 num_ch, u32 rate, u8 dir, u8 dev_type); 145 135 146 #else 136 137 struct nhlt_acpi_table;138 147 139 148 static inline struct nhlt_acpi_table *intel_nhlt_init(struct device *dev) … … 151 160 return 0; 152 161 } 162 163 static inline bool intel_nhlt_has_endpoint_type(struct nhlt_acpi_table *nhlt, 164 u8 link_type) 165 { 166 return false; 167 } 168 169 static inline int intel_nhlt_ssp_endpoint_mask(struct nhlt_acpi_table *nhlt, u8 device_type) 170 { 171 return 0; 172 } 173 174 static inline int intel_nhlt_ssp_mclk_mask(struct nhlt_acpi_table *nhlt, int ssp_num) 175 { 176 return 0; 177 } 178 179 static inline struct nhlt_specific_cfg * 180 intel_nhlt_get_endpoint_blob(struct device *dev, struct nhlt_acpi_table *nhlt, 181 u32 bus_id, u8 link_type, u8 vbps, u8 bps, 182 u8 num_ch, u32 rate, u8 dir, u8 dev_type) 183 { 184 return NULL; 185 } 186 153 187 #endif 154 188
Note:
See TracChangeset
for help on using the changeset viewer.