aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm3008.h
diff options
context:
space:
mode:
authorHugo Villeneuve <hugo@hugovil.com>2008-11-19 01:37:31 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-19 08:16:38 -0500
commit1c0090c280da18f79e3e94168b5f3bfe4eb5f1c8 (patch)
tree0e81a01eccca0060c964fa0646ac6792f98f3213 /sound/soc/codecs/pcm3008.h
parentca3ea02e90d63a6a91c1c2a445d6d71f9031a44a (diff)
ASoC: Add PCM3008 ALSA SoC driver
The PCM3008 is a 16-bit stereo audio codec. It accepts left-justified format for ADC, and right-justified format for DAC. Independent power-down modes for ADC and DAC are provided, as well as a digital de-emphasis filter (4 modes). [Merged Makefile & Kconfig, changed asm/gpio.h to linux/gpio.h -- broonie] Signed-off-by: Hugo Villeneuve <hugo@hugovil.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/pcm3008.h')
-rw-r--r--sound/soc/codecs/pcm3008.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm3008.h b/sound/soc/codecs/pcm3008.h
new file mode 100644
index 000000000000..d04e87d3c060
--- /dev/null
+++ b/sound/soc/codecs/pcm3008.h
@@ -0,0 +1,25 @@
1/*
2 * PCM3008 ALSA SoC Layer
3 *
4 * Author: Hugo Villeneuve
5 * Copyright (C) 2008 Lyrtech inc
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#ifndef __LINUX_SND_SOC_PCM3008_H
13#define __LINUX_SND_SOC_PCM3008_H
14
15struct pcm3008_setup_data {
16 unsigned dem0_pin;
17 unsigned dem1_pin;
18 unsigned pdad_pin;
19 unsigned pdda_pin;
20};
21
22extern struct snd_soc_codec_device soc_codec_dev_pcm3008;
23extern struct snd_soc_dai pcm3008_dai;
24
25#endif