Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / plat-samsung / include / plat / audio-simtec.h
blob5345364e7420c6e533594a35e4a7c4b1cf9b374d
1 /* arch/arm/plat-samsung/include/plat/audio-simtec.h
3 * Copyright 2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
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.
11 * Simtec Audio support.
14 /**
15 * struct s3c24xx_audio_simtec_pdata - platform data for simtec audio
16 * @use_mpllin: Select codec clock from MPLLin
17 * @output_cdclk: Need to output CDCLK to the codec
18 * @have_mic: Set if we have a MIC socket
19 * @have_lout: Set if we have a LineOut socket
20 * @amp_gpio: GPIO pin to enable the AMP
21 * @amp_gain: Option GPIO to control AMP gain
23 struct s3c24xx_audio_simtec_pdata {
24 unsigned int use_mpllin:1;
25 unsigned int output_cdclk:1;
27 unsigned int have_mic:1;
28 unsigned int have_lout:1;
30 int amp_gpio;
31 int amp_gain[2];
33 void (*startup)(void);
36 extern int simtec_audio_add(const char *codec_name, bool has_lr_routing,
37 struct s3c24xx_audio_simtec_pdata *pdata);