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

Go to the source code of this file.

Functions

int nhlt_soc_add_rt5514 (struct nhlt *nhlt, int hwlink, int num_channels)
 

Variables

static const struct nhlt_format_config rt5514_4ch_formats []
 
static const struct nhlt_dmic_array_config rt5514_4ch_mic_config
 
static const struct nhlt_endp_descriptor rt5514_4ch_descriptors []
 

Function Documentation

◆ nhlt_soc_add_rt5514()

int nhlt_soc_add_rt5514 ( struct nhlt nhlt,
int  hwlink,
int  num_channels 
)

Definition at line 39 of file rt5514.c.

References ARRAY_SIZE, nhlt_add_ssp_endpoints(), and rt5514_4ch_descriptors.

Referenced by mainboard_write_acpi_tables().

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

Variable Documentation

◆ rt5514_4ch_descriptors

const struct nhlt_endp_descriptor rt5514_4ch_descriptors[]
static
Initial value:
= {
{
.link = NHLT_LINK_SSP,
.device = NHLT_SSP_DEV_I2S,
.direction = NHLT_DIR_CAPTURE,
.vid = NHLT_VID,
.did = NHLT_DID_SSP,
.cfg_size = sizeof(rt5514_4ch_mic_config),
.formats = rt5514_4ch_formats,
.num_formats = ARRAY_SIZE(rt5514_4ch_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_CAPTURE
Definition: nhlt.h:196
static const struct nhlt_dmic_array_config rt5514_4ch_mic_config
Definition: rt5514.c:18
static const struct nhlt_format_config rt5514_4ch_formats[]
Definition: rt5514.c:5
#define NHLT_DID_SSP
Definition: nhlt.h:11
#define NHLT_VID
Definition: nhlt.h:8

Definition at line 1 of file rt5514.c.

Referenced by nhlt_soc_add_rt5514().

◆ rt5514_4ch_formats

const struct nhlt_format_config rt5514_4ch_formats[]
static
Initial value:
= {
{
.num_channels = 4,
.sample_freq_khz = 48,
.container_bits_per_sample = 16,
.valid_bits_per_sample = 16,
.settings_file = "rt5514-capture-4ch-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 rt5514.c.

◆ rt5514_4ch_mic_config

const struct nhlt_dmic_array_config rt5514_4ch_mic_config
static
Initial value:
= {
.tdm_config = {
.config_type = NHLT_TDM_MIC_ARRAY,
},
}
@ NHLT_TDM_MIC_ARRAY
Definition: nhlt.h:301
@ NHLT_MIC_ARRAY_4CH_L_SHAPED
Definition: nhlt.h:317

Definition at line 1 of file rt5514.c.