Lines Matching refs:nhlt
5 #include <sound/intel-nhlt.h>
9 struct nhlt_acpi_table *nhlt;
13 (struct acpi_table_header **)&nhlt);
19 return nhlt;
23 void intel_nhlt_free(struct nhlt_acpi_table *nhlt)
25 acpi_put_table((struct acpi_table_header *)nhlt);
29 int intel_nhlt_get_dmic_geo(struct device *dev, struct nhlt_acpi_table *nhlt)
39 if (!nhlt)
42 if (nhlt->header.length <= sizeof(struct acpi_table_header)) {
47 for (j = 0, epnt = nhlt->desc; j < nhlt->endpoint_count; j++,
119 bool intel_nhlt_has_endpoint_type(struct nhlt_acpi_table *nhlt, u8 link_type)
124 if (!nhlt)
127 epnt = (struct nhlt_endpoint *)nhlt->desc;
128 for (i = 0; i < nhlt->endpoint_count; i++) {
138 int intel_nhlt_ssp_endpoint_mask(struct nhlt_acpi_table *nhlt, u8 device_type)
144 if (!nhlt || (device_type != NHLT_DEVICE_BT && device_type != NHLT_DEVICE_I2S))
147 epnt = (struct nhlt_endpoint *)nhlt->desc;
148 for (i = 0; i < nhlt->endpoint_count; i++) {
171 int intel_nhlt_ssp_mclk_mask(struct nhlt_acpi_table *nhlt, int ssp_num)
179 if (!nhlt)
182 epnt = (struct nhlt_endpoint *)nhlt->desc;
183 for (i = 0; i < nhlt->endpoint_count; i++) {
290 intel_nhlt_get_endpoint_blob(struct device *dev, struct nhlt_acpi_table *nhlt,
300 if (!nhlt)
326 dev_dbg(dev, "Endpoint count=%d\n", nhlt->endpoint_count);
328 epnt = (struct nhlt_endpoint *)nhlt->desc;
330 for (i = 0; i < nhlt->endpoint_count; i++) {