blob: 4a578b5d855c08652de6615dac9e8e07ede19391 [file] [log] [blame]
Richard Purdie808db4a2006-10-06 18:20:14 +02001/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#ifndef __LINUX_SND_SOC_H
14#define __LINUX_SND_SOC_H
15
16#include <linux/platform_device.h>
17#include <linux/types.h>
Andrew Morton4484bb22006-12-15 09:30:07 +010018#include <linux/workqueue.h>
Richard Purdie808db4a2006-10-06 18:20:14 +020019#include <sound/core.h>
20#include <sound/pcm.h>
21#include <sound/control.h>
22#include <sound/ac97_codec.h>
23
Richard Purdie808db4a2006-10-06 18:20:14 +020024/*
25 * Convenience kcontrol builders
26 */
Jon Smirl4eaa9812008-07-29 11:42:26 +010027#define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \
28 ((unsigned long)&(struct soc_mixer_control) \
Mark Brown762b8df2008-10-30 12:37:08 +000029 {.reg = xreg, .shift = xshift, .rshift = xshift, .max = xmax, \
30 .invert = xinvert})
Jon Smirl4eaa9812008-07-29 11:42:26 +010031#define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \
32 ((unsigned long)&(struct soc_mixer_control) \
33 {.reg = xreg, .max = xmax, .invert = xinvert})
Philipp Zabela7a4ac82008-01-10 14:37:42 +010034#define SOC_SINGLE(xname, reg, shift, max, invert) \
Richard Purdie808db4a2006-10-06 18:20:14 +020035{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
36 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
37 .put = snd_soc_put_volsw, \
Philipp Zabela7a4ac82008-01-10 14:37:42 +010038 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
39#define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
40{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
41 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
42 SNDRV_CTL_ELEM_ACCESS_READWRITE,\
43 .tlv.p = (tlv_array), \
44 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
45 .put = snd_soc_put_volsw, \
46 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
Jon Smirl4eaa9812008-07-29 11:42:26 +010047#define SOC_DOUBLE(xname, xreg, shift_left, shift_right, xmax, xinvert) \
Richard Purdie808db4a2006-10-06 18:20:14 +020048{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
49 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
50 .put = snd_soc_put_volsw, \
Jon Smirl4eaa9812008-07-29 11:42:26 +010051 .private_value = (unsigned long)&(struct soc_mixer_control) \
52 {.reg = xreg, .shift = shift_left, .rshift = shift_right, \
53 .max = xmax, .invert = xinvert} }
54#define SOC_DOUBLE_R(xname, reg_left, reg_right, xshift, xmax, xinvert) \
Richard Purdie808db4a2006-10-06 18:20:14 +020055{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
56 .info = snd_soc_info_volsw_2r, \
57 .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
Jon Smirl4eaa9812008-07-29 11:42:26 +010058 .private_value = (unsigned long)&(struct soc_mixer_control) \
59 {.reg = reg_left, .rreg = reg_right, .shift = xshift, \
60 .max = xmax, .invert = xinvert} }
61#define SOC_DOUBLE_TLV(xname, xreg, shift_left, shift_right, xmax, xinvert, tlv_array) \
Philipp Zabela7a4ac82008-01-10 14:37:42 +010062{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
63 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
64 SNDRV_CTL_ELEM_ACCESS_READWRITE,\
65 .tlv.p = (tlv_array), \
66 .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
67 .put = snd_soc_put_volsw, \
Jon Smirl4eaa9812008-07-29 11:42:26 +010068 .private_value = (unsigned long)&(struct soc_mixer_control) \
69 {.reg = xreg, .shift = shift_left, .rshift = shift_right,\
70 .max = xmax, .invert = xinvert} }
71#define SOC_DOUBLE_R_TLV(xname, reg_left, reg_right, xshift, xmax, xinvert, tlv_array) \
Philipp Zabela7a4ac82008-01-10 14:37:42 +010072{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
73 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
74 SNDRV_CTL_ELEM_ACCESS_READWRITE,\
75 .tlv.p = (tlv_array), \
76 .info = snd_soc_info_volsw_2r, \
77 .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
Jon Smirl4eaa9812008-07-29 11:42:26 +010078 .private_value = (unsigned long)&(struct soc_mixer_control) \
79 {.reg = reg_left, .rreg = reg_right, .shift = xshift, \
80 .max = xmax, .invert = xinvert} }
81#define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \
Mark Browne13ac2e2008-05-28 17:58:05 +010082{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
83 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
84 SNDRV_CTL_ELEM_ACCESS_READWRITE, \
85 .tlv.p = (tlv_array), \
86 .info = snd_soc_info_volsw_s8, .get = snd_soc_get_volsw_s8, \
87 .put = snd_soc_put_volsw_s8, \
Jon Smirl4eaa9812008-07-29 11:42:26 +010088 .private_value = (unsigned long)&(struct soc_mixer_control) \
89 {.reg = xreg, .min = xmin, .max = xmax} }
Jon Smirlf8ba0b72008-07-29 11:42:27 +010090#define SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmax, xtexts) \
Richard Purdie808db4a2006-10-06 18:20:14 +020091{ .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
Jon Smirlf8ba0b72008-07-29 11:42:27 +010092 .max = xmax, .texts = xtexts }
93#define SOC_ENUM_SINGLE(xreg, xshift, xmax, xtexts) \
94 SOC_ENUM_DOUBLE(xreg, xshift, xshift, xmax, xtexts)
95#define SOC_ENUM_SINGLE_EXT(xmax, xtexts) \
96{ .max = xmax, .texts = xtexts }
Richard Purdie808db4a2006-10-06 18:20:14 +020097#define SOC_ENUM(xname, xenum) \
98{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
99 .info = snd_soc_info_enum_double, \
100 .get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \
101 .private_value = (unsigned long)&xenum }
Jon Smirlf8ba0b72008-07-29 11:42:27 +0100102#define SOC_SINGLE_EXT(xname, xreg, xshift, xmax, xinvert,\
Richard Purdie808db4a2006-10-06 18:20:14 +0200103 xhandler_get, xhandler_put) \
104{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
Graeme Gregory1c433fb2007-02-02 17:13:05 +0100105 .info = snd_soc_info_volsw, \
Richard Purdie808db4a2006-10-06 18:20:14 +0200106 .get = xhandler_get, .put = xhandler_put, \
Jon Smirlf8ba0b72008-07-29 11:42:27 +0100107 .private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
108#define SOC_SINGLE_EXT_TLV(xname, xreg, xshift, xmax, xinvert,\
Mike Montour10144c02008-06-11 13:47:13 +0100109 xhandler_get, xhandler_put, tlv_array) \
110{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
111 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
112 SNDRV_CTL_ELEM_ACCESS_READWRITE,\
113 .tlv.p = (tlv_array), \
114 .info = snd_soc_info_volsw, \
115 .get = xhandler_get, .put = xhandler_put, \
Jon Smirlf8ba0b72008-07-29 11:42:27 +0100116 .private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
Richard Purdie808db4a2006-10-06 18:20:14 +0200117#define SOC_SINGLE_BOOL_EXT(xname, xdata, xhandler_get, xhandler_put) \
118{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
119 .info = snd_soc_info_bool_ext, \
120 .get = xhandler_get, .put = xhandler_put, \
121 .private_value = xdata }
122#define SOC_ENUM_EXT(xname, xenum, xhandler_get, xhandler_put) \
123{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
124 .info = snd_soc_info_enum_ext, \
125 .get = xhandler_get, .put = xhandler_put, \
126 .private_value = (unsigned long)&xenum }
127
128/*
Mark Brown0be98982008-05-19 12:31:28 +0200129 * Bias levels
130 *
131 * @ON: Bias is fully on for audio playback and capture operations.
132 * @PREPARE: Prepare for audio operations. Called before DAPM switching for
133 * stream start and stop operations.
134 * @STANDBY: Low power standby state when no playback/capture operations are
135 * in progress. NOTE: The transition time between STANDBY and ON
136 * should be as fast as possible and no longer than 10ms.
137 * @OFF: Power Off. No restrictions on transition times.
138 */
139enum snd_soc_bias_level {
140 SND_SOC_BIAS_ON,
141 SND_SOC_BIAS_PREPARE,
142 SND_SOC_BIAS_STANDBY,
143 SND_SOC_BIAS_OFF,
144};
145
Richard Purdie808db4a2006-10-06 18:20:14 +0200146struct snd_soc_device;
147struct snd_soc_pcm_stream;
148struct snd_soc_ops;
149struct snd_soc_dai_mode;
150struct snd_soc_pcm_runtime;
Liam Girdwood3c4b2662008-07-07 16:07:17 +0100151struct snd_soc_dai;
Richard Purdie808db4a2006-10-06 18:20:14 +0200152struct snd_soc_codec;
Richard Purdie808db4a2006-10-06 18:20:14 +0200153struct soc_enum;
154struct snd_soc_ac97_ops;
Richard Purdie808db4a2006-10-06 18:20:14 +0200155
156typedef int (*hw_write_t)(void *,const char* ,int);
157typedef int (*hw_read_t)(void *,char* ,int);
158
159extern struct snd_ac97_bus_ops soc_ac97_ops;
160
161/* pcm <-> DAI connect */
162void snd_soc_free_pcms(struct snd_soc_device *socdev);
163int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
Mark Brown968a6022008-11-28 11:49:07 +0000164int snd_soc_init_card(struct snd_soc_device *socdev);
Richard Purdie808db4a2006-10-06 18:20:14 +0200165
166/* set runtime hw params */
167int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
168 const struct snd_pcm_hardware *hw);
Richard Purdie808db4a2006-10-06 18:20:14 +0200169
170/* codec IO */
171#define snd_soc_read(codec, reg) codec->read(codec, reg)
172#define snd_soc_write(codec, reg, value) codec->write(codec, reg, value)
173
174/* codec register bit access */
175int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
176 unsigned short mask, unsigned short value);
177int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
178 unsigned short mask, unsigned short value);
179
180int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
181 struct snd_ac97_bus_ops *ops, int num);
182void snd_soc_free_ac97_codec(struct snd_soc_codec *codec);
183
184/*
185 *Controls
186 */
187struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
188 void *data, char *long_name);
189int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol,
190 struct snd_ctl_elem_info *uinfo);
191int snd_soc_info_enum_ext(struct snd_kcontrol *kcontrol,
192 struct snd_ctl_elem_info *uinfo);
193int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol,
194 struct snd_ctl_elem_value *ucontrol);
195int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol,
196 struct snd_ctl_elem_value *ucontrol);
197int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
198 struct snd_ctl_elem_info *uinfo);
199int snd_soc_info_volsw_ext(struct snd_kcontrol *kcontrol,
200 struct snd_ctl_elem_info *uinfo);
Philipp Zabel392abe92008-05-13 14:03:40 +0200201#define snd_soc_info_bool_ext snd_ctl_boolean_mono_info
Richard Purdie808db4a2006-10-06 18:20:14 +0200202int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
203 struct snd_ctl_elem_value *ucontrol);
204int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
205 struct snd_ctl_elem_value *ucontrol);
206int snd_soc_info_volsw_2r(struct snd_kcontrol *kcontrol,
207 struct snd_ctl_elem_info *uinfo);
208int snd_soc_get_volsw_2r(struct snd_kcontrol *kcontrol,
209 struct snd_ctl_elem_value *ucontrol);
210int snd_soc_put_volsw_2r(struct snd_kcontrol *kcontrol,
211 struct snd_ctl_elem_value *ucontrol);
Mark Browne13ac2e2008-05-28 17:58:05 +0100212int snd_soc_info_volsw_s8(struct snd_kcontrol *kcontrol,
213 struct snd_ctl_elem_info *uinfo);
214int snd_soc_get_volsw_s8(struct snd_kcontrol *kcontrol,
215 struct snd_ctl_elem_value *ucontrol);
216int snd_soc_put_volsw_s8(struct snd_kcontrol *kcontrol,
217 struct snd_ctl_elem_value *ucontrol);
Richard Purdie808db4a2006-10-06 18:20:14 +0200218
219/* SoC PCM stream information */
220struct snd_soc_pcm_stream {
221 char *stream_name;
Graeme Gregory1c433fb2007-02-02 17:13:05 +0100222 u64 formats; /* SNDRV_PCM_FMTBIT_* */
223 unsigned int rates; /* SNDRV_PCM_RATE_* */
Richard Purdie808db4a2006-10-06 18:20:14 +0200224 unsigned int rate_min; /* min rate */
225 unsigned int rate_max; /* max rate */
226 unsigned int channels_min; /* min channels */
227 unsigned int channels_max; /* max channels */
228 unsigned int active:1; /* stream is in use */
229};
230
231/* SoC audio ops */
232struct snd_soc_ops {
233 int (*startup)(struct snd_pcm_substream *);
234 void (*shutdown)(struct snd_pcm_substream *);
235 int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *);
236 int (*hw_free)(struct snd_pcm_substream *);
237 int (*prepare)(struct snd_pcm_substream *);
238 int (*trigger)(struct snd_pcm_substream *, int);
239};
240
Richard Purdie808db4a2006-10-06 18:20:14 +0200241/* SoC Audio Codec */
242struct snd_soc_codec {
243 char *name;
244 struct module *owner;
245 struct mutex mutex;
246
247 /* callbacks */
Mark Brown0be98982008-05-19 12:31:28 +0200248 int (*set_bias_level)(struct snd_soc_codec *,
249 enum snd_soc_bias_level level);
Richard Purdie808db4a2006-10-06 18:20:14 +0200250
251 /* runtime */
252 struct snd_card *card;
253 struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
254 unsigned int active;
255 unsigned int pcm_devs;
256 void *private_data;
257
258 /* codec IO */
259 void *control_data; /* codec control (i2c/3wire) data */
260 unsigned int (*read)(struct snd_soc_codec *, unsigned int);
261 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
Mark Brown58cd33c2008-07-29 11:42:25 +0100262 int (*display_register)(struct snd_soc_codec *, char *,
263 size_t, unsigned int);
Richard Purdie808db4a2006-10-06 18:20:14 +0200264 hw_write_t hw_write;
265 hw_read_t hw_read;
266 void *reg_cache;
267 short reg_cache_size;
268 short reg_cache_step;
269
270 /* dapm */
Troy Kisky12ef1932008-10-13 17:42:14 -0700271 u32 pop_time;
Richard Purdie808db4a2006-10-06 18:20:14 +0200272 struct list_head dapm_widgets;
273 struct list_head dapm_paths;
Mark Brown0be98982008-05-19 12:31:28 +0200274 enum snd_soc_bias_level bias_level;
275 enum snd_soc_bias_level suspend_bias_level;
Takashi Iwai1321b162006-12-21 11:02:06 +0100276 struct delayed_work delayed_work;
Richard Purdie808db4a2006-10-06 18:20:14 +0200277
278 /* codec DAI's */
Liam Girdwood3c4b2662008-07-07 16:07:17 +0100279 struct snd_soc_dai *dai;
Richard Purdie808db4a2006-10-06 18:20:14 +0200280 unsigned int num_dai;
Mark Brown384c89e2008-12-03 17:34:03 +0000281
282#ifdef CONFIG_DEBUG_FS
283 struct dentry *debugfs_reg;
284 struct dentry *debugfs_pop_time;
285#endif
Richard Purdie808db4a2006-10-06 18:20:14 +0200286};
287
288/* codec device */
289struct snd_soc_codec_device {
290 int (*probe)(struct platform_device *pdev);
291 int (*remove)(struct platform_device *pdev);
292 int (*suspend)(struct platform_device *pdev, pm_message_t state);
293 int (*resume)(struct platform_device *pdev);
294};
295
296/* SoC platform interface */
297struct snd_soc_platform {
298 char *name;
299
300 int (*probe)(struct platform_device *pdev);
301 int (*remove)(struct platform_device *pdev);
Mark Brown07c84d02008-12-03 18:17:28 +0000302 int (*suspend)(struct snd_soc_dai *dai);
303 int (*resume)(struct snd_soc_dai *dai);
Richard Purdie808db4a2006-10-06 18:20:14 +0200304
305 /* pcm creation and destruction */
Liam Girdwood3c4b2662008-07-07 16:07:17 +0100306 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *,
Richard Purdie808db4a2006-10-06 18:20:14 +0200307 struct snd_pcm *);
308 void (*pcm_free)(struct snd_pcm *);
309
310 /* platform stream ops */
311 struct snd_pcm_ops *pcm_ops;
312};
313
314/* SoC machine DAI configuration, glues a codec and cpu DAI together */
315struct snd_soc_dai_link {
316 char *name; /* Codec name */
317 char *stream_name; /* Stream name */
318
319 /* DAI */
Liam Girdwood3c4b2662008-07-07 16:07:17 +0100320 struct snd_soc_dai *codec_dai;
321 struct snd_soc_dai *cpu_dai;
Graeme Gregory1c433fb2007-02-02 17:13:05 +0100322
323 /* machine stream operations */
324 struct snd_soc_ops *ops;
Richard Purdie808db4a2006-10-06 18:20:14 +0200325
326 /* codec/machine specific init - e.g. add machine controls */
327 int (*init)(struct snd_soc_codec *codec);
Liam Girdwood4ccab3e2008-01-10 14:39:01 +0100328
329 /* DAI pcm */
330 struct snd_pcm *pcm;
Richard Purdie808db4a2006-10-06 18:20:14 +0200331};
332
Mark Brown87506542008-11-18 20:50:34 +0000333/* SoC card */
334struct snd_soc_card {
Richard Purdie808db4a2006-10-06 18:20:14 +0200335 char *name;
Mark Brownc5af3a22008-11-28 13:29:45 +0000336 struct device *dev;
337
338 struct list_head list;
339
340 int instantiated;
Richard Purdie808db4a2006-10-06 18:20:14 +0200341
342 int (*probe)(struct platform_device *pdev);
343 int (*remove)(struct platform_device *pdev);
344
345 /* the pre and post PM functions are used to do any PM work before and
346 * after the codec and DAI's do any PM work. */
347 int (*suspend_pre)(struct platform_device *pdev, pm_message_t state);
348 int (*suspend_post)(struct platform_device *pdev, pm_message_t state);
349 int (*resume_pre)(struct platform_device *pdev);
350 int (*resume_post)(struct platform_device *pdev);
351
Liam Girdwood0b4d2212008-01-10 14:36:20 +0100352 /* callbacks */
Mark Brown87506542008-11-18 20:50:34 +0000353 int (*set_bias_level)(struct snd_soc_card *,
Mark Brown0be98982008-05-19 12:31:28 +0200354 enum snd_soc_bias_level level);
Liam Girdwood0b4d2212008-01-10 14:36:20 +0100355
Richard Purdie808db4a2006-10-06 18:20:14 +0200356 /* CPU <--> Codec DAI links */
357 struct snd_soc_dai_link *dai_link;
358 int num_links;
Mark Brown63084192008-12-02 15:08:03 +0000359
360 struct snd_soc_device *socdev;
361
Mark Brown87689d52008-12-02 16:01:14 +0000362 struct snd_soc_platform *platform;
Mark Brown63084192008-12-02 15:08:03 +0000363 struct delayed_work delayed_work;
364 struct work_struct deferred_resume_work;
Richard Purdie808db4a2006-10-06 18:20:14 +0200365};
366
367/* SoC Device - the audio subsystem */
368struct snd_soc_device {
369 struct device *dev;
Mark Brown87506542008-11-18 20:50:34 +0000370 struct snd_soc_card *card;
Richard Purdie808db4a2006-10-06 18:20:14 +0200371 struct snd_soc_codec *codec;
372 struct snd_soc_codec_device *codec_dev;
Richard Purdie808db4a2006-10-06 18:20:14 +0200373 void *codec_data;
374};
375
376/* runtime channel data */
377struct snd_soc_pcm_runtime {
Graeme Gregory1c433fb2007-02-02 17:13:05 +0100378 struct snd_soc_dai_link *dai;
Richard Purdie808db4a2006-10-06 18:20:14 +0200379 struct snd_soc_device *socdev;
380};
381
Jon Smirl4eaa9812008-07-29 11:42:26 +0100382/* mixer control */
383struct soc_mixer_control {
384 int min, max;
Jon Smirl815ecf8d2008-07-29 10:22:24 -0400385 unsigned int reg, rreg, shift, rshift, invert;
Jon Smirl4eaa9812008-07-29 11:42:26 +0100386};
387
Richard Purdie808db4a2006-10-06 18:20:14 +0200388/* enumerated kcontrol */
389struct soc_enum {
390 unsigned short reg;
391 unsigned short reg2;
392 unsigned char shift_l;
393 unsigned char shift_r;
Jon Smirlf8ba0b72008-07-29 11:42:27 +0100394 unsigned int max;
Richard Purdie808db4a2006-10-06 18:20:14 +0200395 const char **texts;
396 void *dapm;
397};
398
Mark Browna47cbe72008-07-23 14:03:07 +0100399#include <sound/soc-dai.h>
400
Richard Purdie808db4a2006-10-06 18:20:14 +0200401#endif