blob: 14bc1cbe43d91802fcd9669feddb1020331d41d4 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
2 * arch/arm/plat-omap/include/mach/mcbsp.h
3 *
4 * Defines for Multi-Channel Buffered Serial Port
5 *
6 * Copyright (C) 2002 RidgeRun, Inc.
7 * Author: Steve Johnson
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 *
23 */
24#ifndef __ASM_ARCH_OMAP_MCBSP_H
25#define __ASM_ARCH_OMAP_MCBSP_H
26
Russell Kinga09e64f2008-08-05 16:14:15 +010027#include <linux/spinlock.h>
28
29#include <mach/hardware.h>
Tony Lindgrence491cf2009-10-20 09:40:47 -070030#include <plat/clock.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010031
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +000032/* macro for building platform_device for McBSP ports */
33#define OMAP_MCBSP_PLATFORM_DEVICE(port_nr) \
34static struct platform_device omap_mcbsp##port_nr = { \
35 .name = "omap-mcbsp-dai", \
Jarkko Nikulafd1ee392011-07-01 08:52:27 +000036 .id = port_nr - 1, \
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +000037}
38
Charulatha V37801b32011-02-24 12:51:46 -080039#define MCBSP_CONFIG_TYPE2 0x2
Charulatha Vdc48e5f2011-02-24 15:16:49 +053040#define MCBSP_CONFIG_TYPE3 0x3
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +053041#define MCBSP_CONFIG_TYPE4 0x4
Charulatha V37801b32011-02-24 12:51:46 -080042
Alistair Buxton7c006922009-09-22 10:02:58 +010043#define OMAP7XX_MCBSP1_BASE 0xfffb1000
44#define OMAP7XX_MCBSP2_BASE 0xfffb1800
Russell Kinga09e64f2008-08-05 16:14:15 +010045
46#define OMAP1510_MCBSP1_BASE 0xe1011800
47#define OMAP1510_MCBSP2_BASE 0xfffb1000
48#define OMAP1510_MCBSP3_BASE 0xe1017000
49
50#define OMAP1610_MCBSP1_BASE 0xe1011800
51#define OMAP1610_MCBSP2_BASE 0xfffb1000
52#define OMAP1610_MCBSP3_BASE 0xe1017000
53
Jarkko Nikulacdc715142011-09-26 10:45:39 +030054/* McBSP register numbers. Register address offset = num * reg_step */
55enum {
56 /* Common registers */
57 OMAP_MCBSP_REG_SPCR2 = 4,
58 OMAP_MCBSP_REG_SPCR1,
59 OMAP_MCBSP_REG_RCR2,
60 OMAP_MCBSP_REG_RCR1,
61 OMAP_MCBSP_REG_XCR2,
62 OMAP_MCBSP_REG_XCR1,
63 OMAP_MCBSP_REG_SRGR2,
64 OMAP_MCBSP_REG_SRGR1,
65 OMAP_MCBSP_REG_MCR2,
66 OMAP_MCBSP_REG_MCR1,
67 OMAP_MCBSP_REG_RCERA,
68 OMAP_MCBSP_REG_RCERB,
69 OMAP_MCBSP_REG_XCERA,
70 OMAP_MCBSP_REG_XCERB,
71 OMAP_MCBSP_REG_PCR0,
72 OMAP_MCBSP_REG_RCERC,
73 OMAP_MCBSP_REG_RCERD,
74 OMAP_MCBSP_REG_XCERC,
75 OMAP_MCBSP_REG_XCERD,
76 OMAP_MCBSP_REG_RCERE,
77 OMAP_MCBSP_REG_RCERF,
78 OMAP_MCBSP_REG_XCERE,
79 OMAP_MCBSP_REG_XCERF,
80 OMAP_MCBSP_REG_RCERG,
81 OMAP_MCBSP_REG_RCERH,
82 OMAP_MCBSP_REG_XCERG,
83 OMAP_MCBSP_REG_XCERH,
Russell Kinga09e64f2008-08-05 16:14:15 +010084
Jarkko Nikulacdc715142011-09-26 10:45:39 +030085 /* OMAP1-OMAP2420 registers */
86 OMAP_MCBSP_REG_DRR2 = 0,
87 OMAP_MCBSP_REG_DRR1,
88 OMAP_MCBSP_REG_DXR2,
89 OMAP_MCBSP_REG_DXR1,
Russell Kinga09e64f2008-08-05 16:14:15 +010090
Jarkko Nikulacdc715142011-09-26 10:45:39 +030091 /* OMAP2430 and onwards */
92 OMAP_MCBSP_REG_DRR = 0,
93 OMAP_MCBSP_REG_DXR = 2,
94 OMAP_MCBSP_REG_SYSCON = 35,
95 OMAP_MCBSP_REG_THRSH2,
96 OMAP_MCBSP_REG_THRSH1,
97 OMAP_MCBSP_REG_IRQST = 40,
98 OMAP_MCBSP_REG_IRQEN,
99 OMAP_MCBSP_REG_WAKEUPEN,
100 OMAP_MCBSP_REG_XCCR,
101 OMAP_MCBSP_REG_RCCR,
102 OMAP_MCBSP_REG_XBUFFSTAT,
103 OMAP_MCBSP_REG_RBUFFSTAT,
104 OMAP_MCBSP_REG_SSELCR,
105};
Tony Lindgren3127f8f2009-01-15 13:09:54 +0200106
Jarkko Nikulacdc715142011-09-26 10:45:39 +0300107/* OMAP3 sidetone control registers */
Eero Nurkkalad912fa92010-02-22 12:21:11 +0000108#define OMAP_ST_REG_REV 0x00
109#define OMAP_ST_REG_SYSCONFIG 0x10
110#define OMAP_ST_REG_IRQSTATUS 0x18
111#define OMAP_ST_REG_IRQENABLE 0x1C
112#define OMAP_ST_REG_SGAINCR 0x24
113#define OMAP_ST_REG_SFIRCR 0x28
114#define OMAP_ST_REG_SSELCR 0x2C
Russell Kinga09e64f2008-08-05 16:14:15 +0100115
Russell Kinga09e64f2008-08-05 16:14:15 +0100116/************************** McBSP SPCR1 bit definitions ***********************/
117#define RRST 0x0001
118#define RRDY 0x0002
119#define RFULL 0x0004
120#define RSYNC_ERR 0x0008
121#define RINTM(value) ((value)<<4) /* bits 4:5 */
122#define ABIS 0x0040
123#define DXENA 0x0080
124#define CLKSTP(value) ((value)<<11) /* bits 11:12 */
125#define RJUST(value) ((value)<<13) /* bits 13:14 */
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300126#define ALB 0x8000
Russell Kinga09e64f2008-08-05 16:14:15 +0100127#define DLB 0x8000
128
129/************************** McBSP SPCR2 bit definitions ***********************/
130#define XRST 0x0001
131#define XRDY 0x0002
132#define XEMPTY 0x0004
133#define XSYNC_ERR 0x0008
134#define XINTM(value) ((value)<<4) /* bits 4:5 */
135#define GRST 0x0040
136#define FRST 0x0080
137#define SOFT 0x0100
138#define FREE 0x0200
139
140/************************** McBSP PCR bit definitions *************************/
141#define CLKRP 0x0001
142#define CLKXP 0x0002
143#define FSRP 0x0004
144#define FSXP 0x0008
145#define DR_STAT 0x0010
146#define DX_STAT 0x0020
147#define CLKS_STAT 0x0040
148#define SCLKME 0x0080
149#define CLKRM 0x0100
150#define CLKXM 0x0200
151#define FSRM 0x0400
152#define FSXM 0x0800
153#define RIOEN 0x1000
154#define XIOEN 0x2000
155#define IDLE_EN 0x4000
156
157/************************** McBSP RCR1 bit definitions ************************/
158#define RWDLEN1(value) ((value)<<5) /* Bits 5:7 */
159#define RFRLEN1(value) ((value)<<8) /* Bits 8:14 */
160
161/************************** McBSP XCR1 bit definitions ************************/
162#define XWDLEN1(value) ((value)<<5) /* Bits 5:7 */
163#define XFRLEN1(value) ((value)<<8) /* Bits 8:14 */
164
165/*************************** McBSP RCR2 bit definitions ***********************/
166#define RDATDLY(value) (value) /* Bits 0:1 */
167#define RFIG 0x0004
168#define RCOMPAND(value) ((value)<<3) /* Bits 3:4 */
169#define RWDLEN2(value) ((value)<<5) /* Bits 5:7 */
170#define RFRLEN2(value) ((value)<<8) /* Bits 8:14 */
171#define RPHASE 0x8000
172
173/*************************** McBSP XCR2 bit definitions ***********************/
174#define XDATDLY(value) (value) /* Bits 0:1 */
175#define XFIG 0x0004
176#define XCOMPAND(value) ((value)<<3) /* Bits 3:4 */
177#define XWDLEN2(value) ((value)<<5) /* Bits 5:7 */
178#define XFRLEN2(value) ((value)<<8) /* Bits 8:14 */
179#define XPHASE 0x8000
180
181/************************* McBSP SRGR1 bit definitions ************************/
182#define CLKGDV(value) (value) /* Bits 0:7 */
183#define FWID(value) ((value)<<8) /* Bits 8:15 */
184
185/************************* McBSP SRGR2 bit definitions ************************/
186#define FPER(value) (value) /* Bits 0:11 */
187#define FSGM 0x1000
188#define CLKSM 0x2000
189#define CLKSP 0x4000
190#define GSYNC 0x8000
191
192/************************* McBSP MCR1 bit definitions *************************/
193#define RMCM 0x0001
194#define RCBLK(value) ((value)<<2) /* Bits 2:4 */
195#define RPABLK(value) ((value)<<5) /* Bits 5:6 */
196#define RPBBLK(value) ((value)<<7) /* Bits 7:8 */
197
198/************************* McBSP MCR2 bit definitions *************************/
199#define XMCM(value) (value) /* Bits 0:1 */
200#define XCBLK(value) ((value)<<2) /* Bits 2:4 */
201#define XPABLK(value) ((value)<<5) /* Bits 5:6 */
202#define XPBBLK(value) ((value)<<7) /* Bits 7:8 */
203
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300204/*********************** McBSP XCCR bit definitions *************************/
Tony Lindgren3127f8f2009-01-15 13:09:54 +0200205#define EXTCLKGATE 0x8000
206#define PPCONNECT 0x4000
207#define DXENDLY(value) ((value)<<12) /* Bits 12:13 */
208#define XFULL_CYCLE 0x0800
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300209#define DILB 0x0020
210#define XDMAEN 0x0008
211#define XDISABLE 0x0001
212
213/********************** McBSP RCCR bit definitions *************************/
Tony Lindgren3127f8f2009-01-15 13:09:54 +0200214#define RFULL_CYCLE 0x0800
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300215#define RDMAEN 0x0008
216#define RDISABLE 0x0001
217
218/********************** McBSP SYSCONFIG bit definitions ********************/
Eero Nurkkala2ba93f82009-08-20 16:18:17 +0300219#define CLOCKACTIVITY(value) ((value)<<8)
Eero Nurkkala2122fdc2009-08-20 16:18:15 +0300220#define SIDLEMODE(value) ((value)<<3)
221#define ENAWAKEUP 0x0004
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300222#define SOFTRST 0x0002
Russell Kinga09e64f2008-08-05 16:14:15 +0100223
Eero Nurkkalad912fa92010-02-22 12:21:11 +0000224/********************** McBSP SSELCR bit definitions ***********************/
225#define SIDETONEEN 0x0400
226
227/********************** McBSP Sidetone SYSCONFIG bit definitions ***********/
228#define ST_AUTOIDLE 0x0001
229
230/********************** McBSP Sidetone SGAINCR bit definitions *************/
231#define ST_CH1GAIN(value) ((value<<16)) /* Bits 16:31 */
232#define ST_CH0GAIN(value) (value) /* Bits 0:15 */
233
234/********************** McBSP Sidetone SFIRCR bit definitions **************/
235#define ST_FIRCOEFF(value) (value) /* Bits 0:15 */
236
237/********************** McBSP Sidetone SSELCR bit definitions **************/
238#define ST_COEFFWRDONE 0x0004
239#define ST_COEFFWREN 0x0002
240#define ST_SIDETONEEN 0x0001
241
Peter Ujfalusi98cb20e2009-08-20 16:18:14 +0300242/********************** McBSP DMA operating modes **************************/
243#define MCBSP_DMA_MODE_ELEMENT 0
244#define MCBSP_DMA_MODE_THRESHOLD 1
245#define MCBSP_DMA_MODE_FRAME 2
246
Eero Nurkkala2122fdc2009-08-20 16:18:15 +0300247/********************** McBSP WAKEUPEN bit definitions *********************/
248#define XEMPTYEOFEN 0x4000
249#define XRDYEN 0x0400
250#define XEOFEN 0x0200
251#define XFSXEN 0x0100
252#define XSYNCERREN 0x0080
253#define RRDYEN 0x0008
254#define REOFEN 0x0004
255#define RFSREN 0x0002
256#define RSYNCERREN 0x0001
Eero Nurkkala2122fdc2009-08-20 16:18:15 +0300257
Paul Walmsleycf4c87a2010-10-08 11:40:19 -0600258/* CLKR signal muxing options */
259#define CLKR_SRC_CLKR 0
260#define CLKR_SRC_CLKX 1
261
262/* FSR signal muxing options */
263#define FSR_SRC_FSR 0
264#define FSR_SRC_FSX 1
265
Paul Walmsleyd1358652010-10-08 11:40:19 -0600266/* McBSP functional clock sources */
Jarkko Nikulae4cc41d2010-10-08 11:40:21 -0600267#define MCBSP_CLKS_PRCM_SRC 0
268#define MCBSP_CLKS_PAD_SRC 1
Paul Walmsleyd1358652010-10-08 11:40:19 -0600269
Russell Kinga09e64f2008-08-05 16:14:15 +0100270/* we don't do multichannel for now */
271struct omap_mcbsp_reg_cfg {
272 u16 spcr2;
273 u16 spcr1;
274 u16 rcr2;
275 u16 rcr1;
276 u16 xcr2;
277 u16 xcr1;
278 u16 srgr2;
279 u16 srgr1;
280 u16 mcr2;
281 u16 mcr1;
282 u16 pcr0;
283 u16 rcerc;
284 u16 rcerd;
285 u16 xcerc;
286 u16 xcerd;
287 u16 rcere;
288 u16 rcerf;
289 u16 xcere;
290 u16 xcerf;
291 u16 rcerg;
292 u16 rcerh;
293 u16 xcerg;
294 u16 xcerh;
Tony Lindgren3127f8f2009-01-15 13:09:54 +0200295 u16 xccr;
296 u16 rccr;
Russell Kinga09e64f2008-08-05 16:14:15 +0100297};
298
299typedef enum {
Russell Kinga09e64f2008-08-05 16:14:15 +0100300 OMAP_MCBSP_WORD_8 = 0,
301 OMAP_MCBSP_WORD_12,
302 OMAP_MCBSP_WORD_16,
303 OMAP_MCBSP_WORD_20,
304 OMAP_MCBSP_WORD_24,
305 OMAP_MCBSP_WORD_32,
306} omap_mcbsp_word_length;
307
Russell Kinga09e64f2008-08-05 16:14:15 +0100308/* Platform specific configuration */
309struct omap_mcbsp_ops {
310 void (*request)(unsigned int);
311 void (*free)(unsigned int);
Paul Walmsleyd1358652010-10-08 11:40:19 -0600312 int (*set_clks_src)(u8, u8);
Russell Kinga09e64f2008-08-05 16:14:15 +0100313};
314
315struct omap_mcbsp_platform_data {
Russell Kinga09e64f2008-08-05 16:14:15 +0100316 struct omap_mcbsp_ops *ops;
Kishon Vijay Abraham I64bcbd32011-02-24 15:16:52 +0530317 u16 buffer_size;
Jarkko Nikulacdc715142011-09-26 10:45:39 +0300318 u8 reg_size;
319 u8 reg_step;
Russell Kinga09e64f2008-08-05 16:14:15 +0100320};
321
Eero Nurkkalad912fa92010-02-22 12:21:11 +0000322struct omap_mcbsp_st_data {
323 void __iomem *io_base_st;
324 bool running;
325 bool enabled;
326 s16 taps[128]; /* Sidetone filter coefficients */
327 int nr_taps; /* Number of filter coefficients in use */
328 s16 ch0gain;
329 s16 ch1gain;
330};
331
Russell Kinga09e64f2008-08-05 16:14:15 +0100332struct omap_mcbsp {
333 struct device *dev;
Russell King65846902008-09-03 23:46:18 +0100334 unsigned long phys_base;
Kishon Vijay Abraham I3cf32bb2011-02-24 12:51:45 -0800335 unsigned long phys_dma_base;
Russell Kingd592dd12008-09-04 14:25:42 +0100336 void __iomem *io_base;
Russell Kinga09e64f2008-08-05 16:14:15 +0100337 u8 id;
338 u8 free;
Russell Kinga09e64f2008-08-05 16:14:15 +0100339
Russell Kinga09e64f2008-08-05 16:14:15 +0100340 int rx_irq;
341 int tx_irq;
342
343 /* DMA stuff */
344 u8 dma_rx_sync;
Russell Kinga09e64f2008-08-05 16:14:15 +0100345 u8 dma_tx_sync;
Russell Kinga09e64f2008-08-05 16:14:15 +0100346
347 /* Protect the field .free, while checking if the mcbsp is in use */
348 spinlock_t lock;
349 struct omap_mcbsp_platform_data *pdata;
Russell Kingb820ce42009-01-23 10:26:46 +0000350 struct clk *fclk;
Tony Lindgrena8eb7ca2010-02-12 12:26:48 -0800351#ifdef CONFIG_ARCH_OMAP3
Eero Nurkkalad912fa92010-02-22 12:21:11 +0000352 struct omap_mcbsp_st_data *st_data;
Peter Ujfalusi98cb20e2009-08-20 16:18:14 +0300353 int dma_op_mode;
Eduardo Valentina1a56f5f2009-08-20 16:18:11 +0300354 u16 max_tx_thres;
355 u16 max_rx_thres;
356#endif
Janusz Krzysztofikc8c99692010-02-15 10:03:33 -0800357 void *reg_cache;
Russell Kinga09e64f2008-08-05 16:14:15 +0100358};
Kishon Vijay Abraham I8b1906f2011-02-24 15:16:51 +0530359
360/**
361 * omap_mcbsp_dev_attr - OMAP McBSP device attributes for omap_hwmod
362 * @sidetone: name of the sidetone device
363 */
364struct omap_mcbsp_dev_attr {
365 const char *sidetone;
366};
367
Chandra Shekharb4b58f52008-10-08 10:01:39 +0300368extern struct omap_mcbsp **mcbsp_ptr;
Janusz Krzysztofikc8c99692010-02-15 10:03:33 -0800369extern int omap_mcbsp_count, omap_mcbsp_cache_size;
Russell Kinga09e64f2008-08-05 16:14:15 +0100370
Paul Walmsleyd1358652010-10-08 11:40:19 -0600371#define omap_mcbsp_check_valid_id(id) (id < omap_mcbsp_count)
372#define id_to_mcbsp_ptr(id) mcbsp_ptr[id];
373
Russell Kinga09e64f2008-08-05 16:14:15 +0100374int omap_mcbsp_init(void);
Russell Kinga09e64f2008-08-05 16:14:15 +0100375void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config);
Tony Lindgrena8eb7ca2010-02-12 12:26:48 -0800376#ifdef CONFIG_ARCH_OMAP3
Eduardo Valentin7aa9ff52009-08-20 16:18:10 +0300377void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold);
378void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold);
Eduardo Valentina1a56f5f2009-08-20 16:18:11 +0300379u16 omap_mcbsp_get_max_tx_threshold(unsigned int id);
380u16 omap_mcbsp_get_max_rx_threshold(unsigned int id);
Peter Ujfalusi0acce822010-06-03 07:39:32 +0300381u16 omap_mcbsp_get_fifo_size(unsigned int id);
Peter Ujfalusi7dc976e2010-03-03 15:08:08 +0200382u16 omap_mcbsp_get_tx_delay(unsigned int id);
383u16 omap_mcbsp_get_rx_delay(unsigned int id);
Peter Ujfalusi98cb20e2009-08-20 16:18:14 +0300384int omap_mcbsp_get_dma_op_mode(unsigned int id);
Eduardo Valentin7aa9ff52009-08-20 16:18:10 +0300385#else
386static inline void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold)
387{ }
388static inline void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold)
389{ }
Eduardo Valentina1a56f5f2009-08-20 16:18:11 +0300390static inline u16 omap_mcbsp_get_max_tx_threshold(unsigned int id) { return 0; }
391static inline u16 omap_mcbsp_get_max_rx_threshold(unsigned int id) { return 0; }
Peter Ujfalusi0acce822010-06-03 07:39:32 +0300392static inline u16 omap_mcbsp_get_fifo_size(unsigned int id) { return 0; }
Peter Ujfalusi7dc976e2010-03-03 15:08:08 +0200393static inline u16 omap_mcbsp_get_tx_delay(unsigned int id) { return 0; }
394static inline u16 omap_mcbsp_get_rx_delay(unsigned int id) { return 0; }
Peter Ujfalusi98cb20e2009-08-20 16:18:14 +0300395static inline int omap_mcbsp_get_dma_op_mode(unsigned int id) { return 0; }
Eduardo Valentin7aa9ff52009-08-20 16:18:10 +0300396#endif
Russell Kinga09e64f2008-08-05 16:14:15 +0100397int omap_mcbsp_request(unsigned int id);
398void omap_mcbsp_free(unsigned int id);
Jarkko Nikulac12abc02009-08-07 09:59:47 +0300399void omap_mcbsp_start(unsigned int id, int tx, int rx);
400void omap_mcbsp_stop(unsigned int id, int tx, int rx);
Russell Kinga09e64f2008-08-05 16:14:15 +0100401
Paul Walmsleyd1358652010-10-08 11:40:19 -0600402/* McBSP functional clock source changing function */
403extern int omap2_mcbsp_set_clks_src(u8 id, u8 fck_src_id);
Russell Kinga09e64f2008-08-05 16:14:15 +0100404
Paul Walmsleycf4c87a2010-10-08 11:40:19 -0600405/* McBSP signal muxing API */
406void omap2_mcbsp1_mux_clkr_src(u8 mux);
407void omap2_mcbsp1_mux_fsr_src(u8 mux);
408
Kishon Vijay Abraham I9504ba62011-02-24 15:16:55 +0530409int omap_mcbsp_dma_ch_params(unsigned int id, unsigned int stream);
410int omap_mcbsp_dma_reg_params(unsigned int id, unsigned int stream);
411
Eero Nurkkalad912fa92010-02-22 12:21:11 +0000412#ifdef CONFIG_ARCH_OMAP3
413/* Sidetone specific API */
414int omap_st_set_chgain(unsigned int id, int channel, s16 chgain);
415int omap_st_get_chgain(unsigned int id, int channel, s16 *chgain);
416int omap_st_enable(unsigned int id);
417int omap_st_disable(unsigned int id);
418int omap_st_is_enabled(unsigned int id);
419#else
420static inline int omap_st_set_chgain(unsigned int id, int channel,
421 s16 chgain) { return 0; }
422static inline int omap_st_get_chgain(unsigned int id, int channel,
423 s16 *chgain) { return 0; }
424static inline int omap_st_enable(unsigned int id) { return 0; }
425static inline int omap_st_disable(unsigned int id) { return 0; }
426static inline int omap_st_is_enabled(unsigned int id) { return 0; }
427#endif
428
Russell Kinga09e64f2008-08-05 16:14:15 +0100429#endif