coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
alc711.c File Reference
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
#include <acpi/acpi_soundwire.h>
#include <device/device.h>
#include <device/path.h>
#include <device/soundwire.h>
#include <mipi/ids.h>
#include <stdio.h>
#include "chip.h"
Include dependency graph for alc711.c:

Go to the source code of this file.

Functions

static void soundwire_alc711_fill_ssdt (const struct device *dev)
 
static const char * soundwire_alc711_acpi_name (const struct device *dev)
 
static void soundwire_alc711_enable (struct device *dev)
 

Variables

static struct soundwire_address alc711_address
 
static struct soundwire_slave alc711_slave
 
static struct soundwire_audio_mode alc711_audio_mode
 
static struct soundwire_dpn alc711_dp
 
static const struct soundwire_codec alc711_codec
 
static struct device_operations soundwire_alc711_ops
 
struct chip_operations drivers_soundwire_alc711_ops
 

Function Documentation

◆ soundwire_alc711_acpi_name()

static const char* soundwire_alc711_acpi_name ( const struct device dev)
static

Definition at line 130 of file alc711.c.

References device::chip_info, config, device_path::generic, generic_path::id, name, device::path, snprintf(), and generic_path::subid.

Here is the call graph for this function:

◆ soundwire_alc711_enable()

static void soundwire_alc711_enable ( struct device dev)
static

Definition at line 148 of file alc711.c.

◆ soundwire_alc711_fill_ssdt()

Variable Documentation

◆ alc711_address

struct soundwire_address alc711_address
static
Initial value:
= {
.manufacturer_id = MIPI_MFG_ID_REALTEK,
.class = MIPI_CLASS_NONE
}
#define MIPI_MFG_ID_REALTEK
Definition: ids.h:21
#define MIPI_DEV_ID_REALTEK_ALC711
Definition: ids.h:23
@ MIPI_CLASS_NONE
Definition: soundwire.h:70
@ SOUNDWIRE_VERSION_1_1
Definition: soundwire.h:57

Definition at line 1 of file alc711.c.

Referenced by soundwire_alc711_fill_ssdt().

◆ alc711_audio_mode

struct soundwire_audio_mode alc711_audio_mode
static

Definition at line 1 of file alc711.c.

◆ alc711_codec

const struct soundwire_codec alc711_codec
static
Initial value:
= {
.slave = &alc711_slave,
.audio_mode = { &alc711_audio_mode },
.dpn = {
{
.port = 1,
.sink = &alc711_dp
},
{
.port = 2,
.source = &alc711_dp
}
}
}
static struct soundwire_audio_mode alc711_audio_mode
Definition: alc711.c:35
static struct soundwire_slave alc711_slave
Definition: alc711.c:21
static struct soundwire_dpn alc711_dp
Definition: alc711.c:68

Definition at line 1 of file alc711.c.

Referenced by soundwire_alc711_fill_ssdt().

◆ alc711_dp

struct soundwire_dpn alc711_dp
static
Initial value:
= {
.port_wordlength_configs_count = 1,
.port_wordlength_configs = { 32 },
.data_port_type = FULL_DATA_PORT,
.max_grouping_supported = BLOCK_GROUP_COUNT_1,
.simplified_channelprepare_sm = false,
.imp_def_dpn_interrupts_supported = 0,
.min_channel_number = 1,
.max_channel_number = 2,
.modes_supported = MODE_ISOCHRONOUS | MODE_TX_CONTROLLED |
.block_packing_mode = true,
.port_audio_mode_count = 1,
.port_audio_mode_list = { 0 }
}
@ BLOCK_GROUP_COUNT_1
Definition: soundwire.h:265
@ MODE_ISOCHRONOUS
Definition: soundwire.h:273
@ MODE_RX_CONTROLLED
Definition: soundwire.h:275
@ MODE_TX_CONTROLLED
Definition: soundwire.h:274
@ MODE_FULL_ASYNCHRONOUS
Definition: soundwire.h:276
@ FULL_DATA_PORT
Definition: soundwire.h:258

Definition at line 1 of file alc711.c.

◆ alc711_slave

struct soundwire_slave alc711_slave
static
Initial value:
= {
.wake_up_unavailable = false,
.test_mode_supported = false,
.clock_stop_mode1_supported = true,
.simplified_clockstopprepare_sm_supported = true,
.clockstopprepare_hard_reset_behavior = false,
.highPHY_capable = false,
.paging_supported = false,
.bank_delay_supported = false,
.port15_read_behavior = false,
.source_port_list = SOUNDWIRE_PORT(2),
.sink_port_list = SOUNDWIRE_PORT(1),
}
#define SOUNDWIRE_PORT(port)
Definition: soundwire.h:133

Definition at line 1 of file alc711.c.

◆ drivers_soundwire_alc711_ops

struct chip_operations drivers_soundwire_alc711_ops
Initial value:
= {
}
static void soundwire_alc711_enable(struct device *dev)
Definition: alc711.c:148

Definition at line 148 of file alc711.c.

◆ soundwire_alc711_ops

struct device_operations soundwire_alc711_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_fill_ssdt = soundwire_alc711_fill_ssdt,
}
static const char * soundwire_alc711_acpi_name(const struct device *dev)
Definition: alc711.c:130
static void soundwire_alc711_fill_ssdt(const struct device *dev)
Definition: alc711.c:102
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74

Definition at line 130 of file alc711.c.