]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - sound/arm/omap/omap-alsa-tsc2102.h
SPI: TSC2102 OMAP audio driver
[linux-2.6-omap-h63xx.git] / sound / arm / omap / omap-alsa-tsc2102.h
1 /*
2  * sound/arm/omap/omap-alsa-tsc2102.h
3  * 
4  * Alsa codec driver for TSC2102 chip for OMAP platforms.
5  *
6  * Copyright (c) 2006 Andrzej Zaborowski  <balrog@zabor.org>
7  * Code based on the TSC2101 ALSA driver.
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation; either version 2 of the License, or (at your
12  * option) any later version.
13  */
14
15 #ifndef OMAP_ALSA_TSC2102_H_
16 #define OMAP_ALSA_TSC2102_H_
17
18 /* Define to set the tsc as the master w.r.t McBSP */
19 #define TSC_MASTER
20
21 /*
22  * Audio related macros
23  */
24 #ifndef DEFAULT_BITPERSAMPLE
25 #define DEFAULT_BITPERSAMPLE            16
26 #endif
27
28 #define DEFAULT_SAMPLE_RATE             44100
29 #define CODEC_CLOCK                     12000000
30 #define AUDIO_MCBSP                     OMAP_MCBSP1
31
32 /*
33  * ALSA mixer related macros
34  */
35 #define OUTPUT_VOLUME_MIN               0x7f    /* 1111111 = -63.5 dB */
36 #define OUTPUT_VOLUME_MAX               0x00    /* 0000000 */
37 #define OUTPUT_VOLUME_RANGE             (OUTPUT_VOLUME_MIN - OUTPUT_VOLUME_MAX)
38
39 #define DEFAULT_OUTPUT_VOLUME           90      /* Default output volume */
40
41 #endif  /* OMAP_ALSA_TSC2102_H_ */