2 * sound/arm/omap/omap-alsa-tsc2102.h
4 * Alsa codec driver for TSC2102 chip for OMAP platforms.
6 * Copyright (c) 2006 Andrzej Zaborowski <balrog@zabor.org>
7 * Code based on the TSC2101 ALSA driver.
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.
15 #ifndef OMAP_ALSA_TSC2102_H_
16 #define OMAP_ALSA_TSC2102_H_
18 /* Define to set the tsc as the master w.r.t McBSP */
22 * Audio related macros
24 #ifndef DEFAULT_BITPERSAMPLE
25 #define DEFAULT_BITPERSAMPLE 16
28 #define DEFAULT_SAMPLE_RATE 44100
30 /* FIXME codec clock rate is board-specific */
31 #define CODEC_CLOCK 12000000
34 * ALSA mixer related macros
36 #define OUTPUT_VOLUME_MIN 0x7f /* 1111111 = -63.5 dB */
37 #define OUTPUT_VOLUME_MAX 0x00 /* 0000000 */
38 #define OUTPUT_VOLUME_RANGE (OUTPUT_VOLUME_MIN - OUTPUT_VOLUME_MAX)
40 #define DEFAULT_OUTPUT_VOLUME 90 /* Default output volume */
42 #endif /* OMAP_ALSA_TSC2102_H_ */