#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/core.h>
#include "hda_codec.h"
#include "hda_local.h"
Go to the source code of this file.
|
#define | SI3054_VERB_READ_NODE 0x900 |
|
#define | SI3054_VERB_WRITE_NODE 0x100 |
|
#define | SI3054_EXTENDED_MID 2 |
|
#define | SI3054_LINE_RATE 3 |
|
#define | SI3054_LINE_LEVEL 4 |
|
#define | SI3054_GPIO_CFG 5 |
|
#define | SI3054_GPIO_POLARITY 6 |
|
#define | SI3054_GPIO_STICKY 7 |
|
#define | SI3054_GPIO_WAKEUP 8 |
|
#define | SI3054_GPIO_STATUS 9 |
|
#define | SI3054_GPIO_CONTROL 10 |
|
#define | SI3054_MISC_AFE 11 |
|
#define | SI3054_CHIPID 12 |
|
#define | SI3054_LINE_CFG1 13 |
|
#define | SI3054_LINE_STATUS 14 |
|
#define | SI3054_DC_TERMINATION 15 |
|
#define | SI3054_LINE_CONFIG 16 |
|
#define | SI3054_CALLPROG_ATT 17 |
|
#define | SI3054_SQ_CONTROL 18 |
|
#define | SI3054_MISC_CONTROL 19 |
|
#define | SI3054_RING_CTRL1 20 |
|
#define | SI3054_RING_CTRL2 21 |
|
#define | SI3054_MEI_READY 0xf |
|
#define | SI3054_ATAG_MASK 0x00f0 |
|
#define | SI3054_DTAG_MASK 0xf000 |
|
#define | SI3054_GPIO_OH 0x0001 |
|
#define | SI3054_GPIO_CID 0x0002 |
|
#define | SI3054_CHIPID_CODEC_REV_MASK 0x000f |
|
#define | SI3054_CHIPID_DAA_REV_MASK 0x00f0 |
|
#define | SI3054_CHIPID_INTERNATIONAL 0x0100 |
|
#define | SI3054_CHIPID_DAA_ID 0x0f00 |
|
#define | SI3054_CHIPID_CODEC_ID (1<<12) |
|
#define | GET_REG(codec, reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) |
|
#define | SET_REG(codec, reg, val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) |
|
#define | SET_REG_CACHE(codec, reg, val) snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) |
|
#define | PRIVATE_VALUE(reg, mask) ((reg<<16)|(mask&0xffff)) |
|
#define | PRIVATE_REG(val) ((val>>16)&0xffff) |
|
#define | PRIVATE_MASK(val) (val&0xffff) |
|
#define | si3054_switch_info snd_ctl_boolean_mono_info |
|
#define | SI3054_KCONTROL(kname, reg, mask) |
|
#define PRIVATE_MASK |
( |
|
val | ) |
(val&0xffff) |
#define PRIVATE_REG |
( |
|
val | ) |
((val>>16)&0xffff) |
#define SI3054_ATAG_MASK 0x00f0 |
#define SI3054_CALLPROG_ATT 17 |
#define SI3054_CHIPID_CODEC_ID (1<<12) |
#define SI3054_CHIPID_CODEC_REV_MASK 0x000f |
#define SI3054_CHIPID_DAA_ID 0x0f00 |
#define SI3054_CHIPID_DAA_REV_MASK 0x00f0 |
#define SI3054_CHIPID_INTERNATIONAL 0x0100 |
#define SI3054_DC_TERMINATION 15 |
#define SI3054_DTAG_MASK 0xf000 |
#define SI3054_EXTENDED_MID 2 |
#define SI3054_GPIO_CFG 5 |
#define SI3054_GPIO_CID 0x0002 |
#define SI3054_GPIO_CONTROL 10 |
#define SI3054_GPIO_OH 0x0001 |
#define SI3054_GPIO_POLARITY 6 |
#define SI3054_GPIO_STATUS 9 |
#define SI3054_GPIO_STICKY 7 |
#define SI3054_GPIO_WAKEUP 8 |
#define SI3054_KCONTROL |
( |
|
kname, |
|
|
|
reg, |
|
|
|
mask |
|
) |
| |
Value:{ \
.name = kname, \
.get = si3054_switch_get, \
.put = si3054_switch_put, \
}
Definition at line 123 of file patch_si3054.c.
#define SI3054_LINE_CFG1 13 |
#define SI3054_LINE_CONFIG 16 |
#define SI3054_LINE_LEVEL 4 |
#define SI3054_LINE_RATE 3 |
#define SI3054_LINE_STATUS 14 |
#define SI3054_MEI_READY 0xf |
#define SI3054_MISC_AFE 11 |
#define SI3054_MISC_CONTROL 19 |
#define SI3054_RING_CTRL1 20 |
#define SI3054_RING_CTRL2 21 |
#define SI3054_SQ_CONTROL 18 |
#define SI3054_VERB_READ_NODE 0x900 |
#define SI3054_VERB_WRITE_NODE 0x100 |
MODULE_ALIAS |
( |
"snd-hda-codec-id:163c3055" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:163c3155" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:11c13026" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:11c13055" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:11c13155" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:10573055" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:10573057" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:10573155" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:11063288" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:15433155" |
| ) |
|
MODULE_ALIAS |
( |
"snd-hda-codec-id:18540018" |
| ) |
|