101 const void *
config,
size_t config_sz);
107 int container_bits_per_sample,
108 int valid_bits_per_sample,
152 const char *oem_id,
const char *oem_table_id,
168 uintptr_t acpi_addr,
const char *oem_id,
const char *oem_table_id,
269 #define MAX_FORMATS 2
286 #define MAX_ENDPOINTS 8
uintptr_t nhlt_soc_serialize(struct nhlt *nhlt, uintptr_t acpi_addr)
int nhlt_format_append_config(struct nhlt_format *format, const void *config, size_t config_sz)
uintptr_t nhlt_serialize(struct nhlt *nhlt, uintptr_t acpi_addr)
@ NHLT_MIC_ARRAY_4CH_2ND_GEOM
@ NHLT_MIC_ARRAY_4CH_L_SHAPED
@ NHLT_MIC_ARRAY_2CH_SMALL
@ NHLT_MIC_ARRAY_VENDOR_DEFINED
@ NHLT_MIC_ARRAY_4CH_1ST_GEOM
struct nhlt * nhlt_init(void)
struct nhlt_endpoint * nhlt_add_endpoint(struct nhlt *nhlt, int link_type, int device_type, int dir, uint16_t vid, uint16_t did)
int nhlt_add_ssp_endpoints(struct nhlt *nhlt, int virtual_bus_id, const struct nhlt_endp_descriptor *epds, size_t num_epds)
uintptr_t nhlt_soc_serialize_oem_overrides(struct nhlt *nhlt, uintptr_t acpi_addr, const char *oem_id, const char *oem_table_id, uint32_t oem_revision)
size_t nhlt_current_size(struct nhlt *nhlt)
@ SPEAKER_TOP_FRONT_RIGHT
@ SPEAKER_TOP_FRONT_CENTER
@ SPEAKER_FRONT_RIGHT_OF_CENTER
@ SPEAKER_TOP_BACK_CENTER
@ SPEAKER_FRONT_LEFT_OF_CENTER
void nhlt_next_instance(struct nhlt *nhlt, int link_type)
int nhlt_add_endpoints(struct nhlt *nhlt, const struct nhlt_endp_descriptor *epds, size_t num_epds)
uintptr_t nhlt_serialize_oem_overrides(struct nhlt *nhlt, uintptr_t acpi_addr, const char *oem_id, const char *oem_table_id, uint32_t oem_revision)
int nhlt_endpoint_add_formats(struct nhlt_endpoint *endpoint, const struct nhlt_format_config *formats, size_t num_formats)
struct nhlt_format * nhlt_add_format(struct nhlt_endpoint *endpoint, int num_channels, int sample_freq_khz, int container_bits_per_sample, int valid_bits_per_sample, uint32_t speaker_mask)
int nhlt_endpoint_append_config(struct nhlt_endpoint *endpoint, const void *config, size_t config_sz)
struct nhlt_tdm_config tdm_config
const struct nhlt_format_config * formats
struct nhlt_specific_config config
struct nhlt_format formats[MAX_FORMATS]
struct nhlt_endpoint endpoints[MAX_ENDPOINTS]
uint8_t current_instance_id[NHLT_MAX_LINK_TYPES]