sound/soc/codecs/es83xx-dsm-common.h

Source file repositories/reference/linux-study-clean/sound/soc/codecs/es83xx-dsm-common.h

File Facts

System
Linux kernel
Corpus path
sound/soc/codecs/es83xx-dsm-common.h
Extension
.h
Size
15705 bytes
Lines
394
Domain
Driver Families
Bucket
sound/soc
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ES83XX_DSM_COMMON_H
#define _ES83XX_DSM_COMMON_H

/***************************************************
 *  DSM arguments                                  *
 ***************************************************/

#define PLATFORM_MAINMIC_TYPE_ARG		0x00
#define PLATFORM_HPMIC_TYPE_ARG			0x01
#define PLATFORM_SPK_TYPE_ARG			0x02
#define PLATFORM_HPDET_INV_ARG			0x03
#define PLATFORM_PCM_TYPE_ARG			0x04

#define PLATFORM_MIC_DE_POP_ARG			0x06
#define PLATFORM_CODEC_TYPE_ARG			0x0E
#define PLATFORM_BUS_SLOT_ARG			0x0F

#define HP_CODEC_LINEIN_PGA_GAIN_ARG		0x10
#define MAIN_CODEC_LINEIN_PGA_GAIN_ARG		0x20

#define HP_CODEC_D2SEPGA_GAIN_ARG		0x11
#define MAIN_CODEC_D2SEPGA_GAIN_ARG		0x21

#define HP_CODEC_ADC_VOLUME_ARG			0x12
#define MAIN_CODEC_ADC_VOLUME_ARG		0x22

#define HP_CODEC_ADC_ALC_ENABLE_ARG		0x13
#define MAIN_CODEC_ADC_ALC_ENABLE_ARG		0x23

#define HP_CODEC_ADC_ALC_TARGET_LEVEL_ARG	0x14
#define MAIN_CODEC_ADC_ALC_TARGET_LEVEL_ARG	0x24

#define HP_CODEC_ADC_ALC_MAXGAIN_ARG		0x15
#define MAIN_CODEC_ADC_ALC_MAXGAIN_ARG		0x25

#define HP_CODEC_ADC_ALC_MINGAIN_ARG		0x16
#define MAIN_CODEC_ADC_ALC_MINGAIN_ARG		0x26

#define HP_CODEC_ADC_ALC_HLDTIME_ARG		0x17
#define MAIN_CODEC_ADC_ALC_HLDTIME_ARG		0x27

#define HP_CODEC_ADC_ALC_DCYTIME_ARG		0x18
#define MAIN_CODEC_ADC_ALC_DCYTIME_ARG		0x28

#define HP_CODEC_ADC_ALC_ATKTIME_ARG		0x19
#define MAIN_CODEC_ADC_ALC_ATKTIME_ARG		0x29

#define HP_CODEC_ADC_ALC_NGTYPE_ARG		0x1a
#define MAIN_CODEC_ADC_ALC_NGTYPE_ARG		0x2a

#define HP_CODEC_ADC_ALC_NGTHLD_ARG		0x1b
#define MAIN_CODEC_ADC_ALC_NGTHLD_ARG		0x2b

#define MAIN_CODEC_ADC_GUI_STEP_ARG		0x2c
#define MAIN_CODEC_ADC_GUI_GAIN_RANGE_ARG	0x2c

#define HEADPHONE_DUMMY_REMOVE_ENABLE_ARG	0x2e

#define HP_CODEC_DAC_HPMIX_HIGAIN_ARG		0x40
#define SPK_CODEC_DAC_HPMIX_HIGAIN_ARG		0x50

#define HP_CODEC_DAC_HPMIX_VOLUME_ARG		0x41
#define SPK_CODEC_DAC_HPMIX_VOLUME_ARG		0x51

#define HP_CODEC_DAC_HPOUT_VOLUME_ARG		0x42
#define SPK_CODEC_DAC_HPOUT_VOLUME_ARG		0x52

#define HP_CODEC_LDAC_VOLUME_ARG		0x44
#define HP_CODEC_RDAC_VOLUME_ARG		0x54

#define SPK_CODEC_LDAC_VOLUME_ARG		0x45
#define SPK_CODEC_RDAC_VOLUME_ARG		0x55

#define HP_CODEC_DAC_AUTOMUTE_ARG		0x46
#define SPK_CODEC_DAC_AUTOMUTE_ARG		0x56

#define HP_CODEC_DAC_MONO_ARG			0x4A
#define SPK_CODEC_DAC_MONO_ARG			0x5A

#define HP_CTL_IO_LEVEL_ARG			0x4B
#define SPK_CTL_IO_LEVEL_ARG			0x5B

#define CODEC_GPIO0_FUNC_ARG			0x80
#define CODEC_GPIO1_FUNC_ARG			0x81
#define CODEC_GPIO2_FUNC_ARG			0x82
#define CODEC_GPIO3_FUNC_ARG			0x83
#define CODEC_GPIO4_FUNC_ARG			0x84

#define PLATFORM_MCLK_LRCK_FREQ_ARG		0x85

Annotation

Implementation Notes