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

Go to the source code of this file.

Functions

int nhlt_soc_add_rt5663 (struct nhlt *nhlt, int hwlink)
 

Variables

static const struct nhlt_format_config rt5663_formats []
 
static const struct nhlt_tdm_config tdm_config
 
static const struct nhlt_endp_descriptor rt5663_descriptors []
 

Function Documentation

◆ nhlt_soc_add_rt5663()

int nhlt_soc_add_rt5663 ( struct nhlt nhlt,
int  hwlink 
)

Definition at line 57 of file rt5663.c.

References ARRAY_SIZE, nhlt_add_ssp_endpoints(), and rt5663_descriptors.

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

◆ rt5663_descriptors

const struct nhlt_endp_descriptor rt5663_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 = rt5663_formats,
.num_formats = ARRAY_SIZE(rt5663_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 = rt5663_formats,
.num_formats = ARRAY_SIZE(rt5663_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
#define NHLT_DID_SSP
Definition: nhlt.h:11
#define NHLT_VID
Definition: nhlt.h:8
static const struct nhlt_format_config rt5663_formats[]
Definition: rt5663.c:9
static const struct nhlt_tdm_config tdm_config
Definition: rt5663.c:25

Definition at line 1 of file rt5663.c.

Referenced by nhlt_soc_add_rt5663().

◆ rt5663_formats

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

Definition at line 1 of file rt5663.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 rt5663.c.