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

Go to the source code of this file.

Functions

int nhlt_soc_add_max98927 (struct nhlt *nhlt, int hwlink)
 

Variables

static const struct nhlt_format_config max98927_render_formats []
 
static const struct nhlt_format_config max98927_capture_formats []
 
static const struct nhlt_endp_descriptor max98927_descriptors []
 

Function Documentation

◆ nhlt_soc_add_max98927()

int nhlt_soc_add_max98927 ( struct nhlt nhlt,
int  hwlink 
)

Definition at line 59 of file max98927.c.

References ARRAY_SIZE, max98927_descriptors, and nhlt_add_ssp_endpoints().

Referenced by mainboard_write_acpi_tables(), and variant_nhlt_init().

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

Variable Documentation

◆ max98927_capture_formats

const struct nhlt_format_config max98927_capture_formats[]
static
Initial value:
= {
{
.num_channels = 4,
.sample_freq_khz = 48,
.container_bits_per_sample = 32,
.valid_bits_per_sample = 16,
.settings_file = "max98927-render-2ch-48khz-16b.bin",
},
}
@ SPEAKER_FRONT_LEFT
Definition: nhlt.h:203
@ SPEAKER_BACK_LEFT
Definition: nhlt.h:207
@ SPEAKER_FRONT_RIGHT
Definition: nhlt.h:204
@ SPEAKER_BACK_RIGHT
Definition: nhlt.h:208

Definition at line 1 of file max98927.c.

◆ max98927_descriptors

const struct nhlt_endp_descriptor max98927_descriptors[]
static
Initial value:
= {
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_RENDER,
.vid = NHLT_VID,
.did = NHLT_DID_SSP,
},
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_CAPTURE,
.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
@ NHLT_DIR_CAPTURE
Definition: nhlt.h:196
#define NHLT_DID_SSP
Definition: nhlt.h:11
#define NHLT_VID
Definition: nhlt.h:8
static const struct nhlt_format_config max98927_capture_formats[]
Definition: max98927.c:26
static const struct nhlt_format_config max98927_render_formats[]
Definition: max98927.c:5

Definition at line 1 of file max98927.c.

Referenced by nhlt_soc_add_max98927().

◆ max98927_render_formats

const struct nhlt_format_config max98927_render_formats[]
static
Initial value:
= {
{
.num_channels = 2,
.sample_freq_khz = 48,
.container_bits_per_sample = 32,
.valid_bits_per_sample = 24,
.settings_file = "max98927-render-2ch-48khz-24b.bin",
},
{
.num_channels = 2,
.sample_freq_khz = 48,
.container_bits_per_sample = 16,
.valid_bits_per_sample = 16,
.settings_file = "max98927-render-2ch-48khz-16b.bin",
},
}

Definition at line 1 of file max98927.c.