Go to the documentation of this file.
33 #define PDAUDIOCF_REG_MD 0x00
34 #define PDAUDIOCF_REG_WDP 0x02
35 #define PDAUDIOCF_REG_RDP 0x04
36 #define PDAUDIOCF_REG_TCR 0x06
37 #define PDAUDIOCF_REG_SCR 0x08
38 #define PDAUDIOCF_REG_ISR 0x0a
39 #define PDAUDIOCF_REG_IER 0x0c
40 #define PDAUDIOCF_REG_AK_IFR 0x0e
43 #define PDAUDIOCF_ELIMAKMBIT (1<<0)
44 #define PDAUDIOCF_TESTDATASEL (1<<1)
47 #define PDAUDIOCF_AK_SBP (1<<0)
48 #define PDAUDIOCF_RST (1<<2)
49 #define PDAUDIOCF_PDN (1<<3)
50 #define PDAUDIOCF_CLKDIV0 (1<<4)
51 #define PDAUDIOCF_CLKDIV1 (1<<5)
52 #define PDAUDIOCF_RECORD (1<<6)
53 #define PDAUDIOCF_AK_SDD (1<<7)
54 #define PDAUDIOCF_RED_LED_OFF (1<<8)
55 #define PDAUDIOCF_BLUE_LED_OFF (1<<9)
56 #define PDAUDIOCF_DATAFMT0 (1<<10)
57 #define PDAUDIOCF_DATAFMT1 (1<<11)
58 #define PDAUDIOCF_FPGAREV(x) ((x>>12)&0x0f)
61 #define PDAUDIOCF_IRQLVL (1<<0)
62 #define PDAUDIOCF_IRQOVR (1<<1)
63 #define PDAUDIOCF_IRQAKM (1<<2)
66 #define PDAUDIOCF_IRQLVLEN0 (1<<0)
67 #define PDAUDIOCF_IRQLVLEN1 (1<<1)
68 #define PDAUDIOCF_IRQOVREN (1<<2)
69 #define PDAUDIOCF_IRQAKMEN (1<<3)
70 #define PDAUDIOCF_BLUEDUTY0 (1<<8)
71 #define PDAUDIOCF_BLUEDUTY1 (1<<9)
72 #define PDAUDIOCF_REDDUTY0 (1<<10)
73 #define PDAUDIOCF_REDDUTY1 (1<<11)
74 #define PDAUDIOCF_BLUESDD (1<<12)
75 #define PDAUDIOCF_BLUEMODULATE (1<<13)
76 #define PDAUDIOCF_REDMODULATE (1<<14)
77 #define PDAUDIOCF_HALFRATE (1<<15)
80 #define PDAUDIOCF_STAT_IS_STALE (1<<0)
81 #define PDAUDIOCF_STAT_IS_CONFIGURED (1<<1)
82 #define PDAUDIOCF_STAT_IS_SUSPENDED (1<<2)
120 static inline void pdacf_reg_write(
struct snd_pdacf *
chip,
unsigned char reg,
unsigned short val)
125 static inline unsigned short pdacf_reg_read(
struct snd_pdacf *
chip,
unsigned char reg)