ext4: Fix possible deadlock between ext4_truncate() and ext4_get_blocks()
[linux/fpc-iii.git] / sound / soc / codecs / ad1836.h
blob7660ee6973c0644567386c9d016d6bed7d0f1b79
1 /*
2 * File: sound/soc/codecs/ad1836.h
3 * Based on:
4 * Author: Barry Song <Barry.Song@analog.com>
6 * Created: Aug 04, 2009
7 * Description: definitions for AD1836 registers
9 * Modified:
11 * Bugs: Enter bugs at http://blackfin.uclinux.org/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
19 #ifndef __AD1836_H__
20 #define __AD1836_H__
22 #define AD1836_DAC_CTRL1 0
23 #define AD1836_DAC_POWERDOWN 2
24 #define AD1836_DAC_SERFMT_MASK 0xE0
25 #define AD1836_DAC_SERFMT_PCK256 (0x4 << 5)
26 #define AD1836_DAC_SERFMT_PCK128 (0x5 << 5)
27 #define AD1836_DAC_WORD_LEN_MASK 0x18
29 #define AD1836_DAC_CTRL2 1
30 #define AD1836_DACL1_MUTE 0
31 #define AD1836_DACR1_MUTE 1
32 #define AD1836_DACL2_MUTE 2
33 #define AD1836_DACR2_MUTE 3
34 #define AD1836_DACL3_MUTE 4
35 #define AD1836_DACR3_MUTE 5
37 #define AD1836_DAC_L1_VOL 2
38 #define AD1836_DAC_R1_VOL 3
39 #define AD1836_DAC_L2_VOL 4
40 #define AD1836_DAC_R2_VOL 5
41 #define AD1836_DAC_L3_VOL 6
42 #define AD1836_DAC_R3_VOL 7
44 #define AD1836_ADC_CTRL1 12
45 #define AD1836_ADC_POWERDOWN 7
46 #define AD1836_ADC_HIGHPASS_FILTER 8
48 #define AD1836_ADC_CTRL2 13
49 #define AD1836_ADCL1_MUTE 0
50 #define AD1836_ADCR1_MUTE 1
51 #define AD1836_ADCL2_MUTE 2
52 #define AD1836_ADCR2_MUTE 3
53 #define AD1836_ADC_WORD_LEN_MASK 0x30
54 #define AD1836_ADC_SERFMT_MASK (7 << 6)
55 #define AD1836_ADC_SERFMT_PCK256 (0x4 << 6)
56 #define AD1836_ADC_SERFMT_PCK128 (0x5 << 6)
58 #define AD1836_ADC_CTRL3 14
60 #define AD1836_NUM_REGS 16
62 extern struct snd_soc_dai ad1836_dai;
63 extern struct snd_soc_codec_device soc_codec_dev_ad1836;
64 #endif