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

Go to the source code of this file.

Functions

int nhlt_soc_add_max98357 (struct nhlt *nhlt, int hwlink)
 

Variables

static const struct nhlt_format_config max98357_render_formats []
 
static const struct nhlt_endp_descriptor max98357_descriptors []
 

Function Documentation

◆ nhlt_soc_add_max98357()

int nhlt_soc_add_max98357 ( struct nhlt nhlt,
int  hwlink 
)

Definition at line 29 of file max98357.c.

References ARRAY_SIZE, max98357_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

◆ max98357_descriptors

const struct nhlt_endp_descriptor max98357_descriptors[]
static
Initial value:
= {
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_RENDER,
.vid = NHLT_VID,
.did = NHLT_DID_SSP,
},
}
#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
static const struct nhlt_format_config max98357_render_formats[]
Definition: max98357.c:5
#define NHLT_DID_SSP
Definition: nhlt.h:11
#define NHLT_VID
Definition: nhlt.h:8

Definition at line 1 of file max98357.c.

Referenced by nhlt_soc_add_max98357().

◆ max98357_render_formats

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

Definition at line 1 of file max98357.c.