coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
nau88l25.c File Reference
#include <soc/nhlt.h>
Include dependency graph for nau88l25.c:

Go to the source code of this file.

Functions

int nhlt_soc_add_nau88l25 (struct nhlt *nhlt, int hwlink)
 

Variables

static const struct nhlt_format_config nau88l25_formats []
 
static const struct nhlt_tdm_config tdm_config
 
static const struct nhlt_endp_descriptor nau88l25_descriptors []
 

Function Documentation

◆ nhlt_soc_add_nau88l25()

int nhlt_soc_add_nau88l25 ( struct nhlt nhlt,
int  hwlink 
)

Definition at line 53 of file nau88l25.c.

References ARRAY_SIZE, nau88l25_descriptors, and nhlt_add_ssp_endpoints().

Referenced by mainboard_write_acpi_tables().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nau88l25_descriptors

const struct nhlt_endp_descriptor nau88l25_descriptors[]
static
Initial value:
= {
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_RENDER,
.vid = NHLT_VID,
.did = NHLT_DID_SSP,
.cfg = &tdm_config,
.cfg_size = sizeof(tdm_config),
.formats = nau88l25_formats,
.num_formats = ARRAY_SIZE(nau88l25_formats),
},
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_CAPTURE,
.vid = NHLT_VID,
.did = NHLT_DID_SSP,
.cfg = &tdm_config,
.cfg_size = sizeof(tdm_config),
.formats = nau88l25_formats,
.num_formats = ARRAY_SIZE(nau88l25_formats),
},
}
#define ARRAY_SIZE(a)
Definition: helpers.h:12
@ NHLT_LINK_SSP
Definition: nhlt.h:176
@ NHLT_SSP_DEV_I2S
Definition: nhlt.h:185
@ NHLT_DIR_RENDER
Definition: nhlt.h:195
@ NHLT_DIR_CAPTURE
Definition: nhlt.h:196
static const struct nhlt_format_config nau88l25_formats[]
Definition: nau88l25.c:7
static const struct nhlt_tdm_config tdm_config
Definition: nau88l25.c:21
#define NHLT_DID_SSP
Definition: nhlt.h:11
#define NHLT_VID
Definition: nhlt.h:8

Definition at line 1 of file nau88l25.c.

Referenced by nhlt_soc_add_nau88l25().

◆ nau88l25_formats

const struct nhlt_format_config nau88l25_formats[]
static
Initial value:
= {
{
.num_channels = 2,
.sample_freq_khz = 48,
.container_bits_per_sample = 32,
.valid_bits_per_sample = 24,
.settings_file = "nau88l25-2ch-48khz-24b.bin",
},
}
@ SPEAKER_FRONT_LEFT
Definition: nhlt.h:203
@ SPEAKER_FRONT_RIGHT
Definition: nhlt.h:204

Definition at line 1 of file nau88l25.c.

◆ tdm_config

const struct nhlt_tdm_config tdm_config
static
Initial value:
= {
.virtual_slot = 0,
.config_type = NHLT_TDM_BASIC,
}
@ NHLT_TDM_BASIC
Definition: nhlt.h:300

Definition at line 1 of file nau88l25.c.