soc.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. /*
  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. #ifndef __LINUX_SND_SOC_H
  13. #define __LINUX_SND_SOC_H
  14. #include <linux/platform_device.h>
  15. #include <linux/types.h>
  16. #include <linux/workqueue.h>
  17. #include <linux/interrupt.h>
  18. #include <linux/kernel.h>
  19. #include <sound/core.h>
  20. #include <sound/pcm.h>
  21. #include <sound/control.h>
  22. #include <sound/ac97_codec.h>
  23. /*
  24. * Convenience kcontrol builders
  25. */
  26. #define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \
  27. ((unsigned long)&(struct soc_mixer_control) \
  28. {.reg = xreg, .shift = xshift, .rshift = xshift, .max = xmax, \
  29. .invert = xinvert})
  30. #define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \
  31. ((unsigned long)&(struct soc_mixer_control) \
  32. {.reg = xreg, .max = xmax, .invert = xinvert})
  33. #define SOC_SINGLE(xname, reg, shift, max, invert) \
  34. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  35. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
  36. .put = snd_soc_put_volsw, \
  37. .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
  38. #define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
  39. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  40. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
  41. SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  42. .tlv.p = (tlv_array), \
  43. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
  44. .put = snd_soc_put_volsw, \
  45. .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
  46. #define SOC_DOUBLE(xname, xreg, shift_left, shift_right, xmax, xinvert) \
  47. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  48. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
  49. .put = snd_soc_put_volsw, \
  50. .private_value = (unsigned long)&(struct soc_mixer_control) \
  51. {.reg = xreg, .shift = shift_left, .rshift = shift_right, \
  52. .max = xmax, .invert = xinvert} }
  53. #define SOC_DOUBLE_R(xname, reg_left, reg_right, xshift, xmax, xinvert) \
  54. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
  55. .info = snd_soc_info_volsw_2r, \
  56. .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
  57. .private_value = (unsigned long)&(struct soc_mixer_control) \
  58. {.reg = reg_left, .rreg = reg_right, .shift = xshift, \
  59. .max = xmax, .invert = xinvert} }
  60. #define SOC_DOUBLE_TLV(xname, xreg, shift_left, shift_right, xmax, xinvert, tlv_array) \
  61. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  62. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
  63. SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  64. .tlv.p = (tlv_array), \
  65. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
  66. .put = snd_soc_put_volsw, \
  67. .private_value = (unsigned long)&(struct soc_mixer_control) \
  68. {.reg = xreg, .shift = shift_left, .rshift = shift_right,\
  69. .max = xmax, .invert = xinvert} }
  70. #define SOC_DOUBLE_R_TLV(xname, reg_left, reg_right, xshift, xmax, xinvert, tlv_array) \
  71. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  72. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
  73. SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  74. .tlv.p = (tlv_array), \
  75. .info = snd_soc_info_volsw_2r, \
  76. .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
  77. .private_value = (unsigned long)&(struct soc_mixer_control) \
  78. {.reg = reg_left, .rreg = reg_right, .shift = xshift, \
  79. .max = xmax, .invert = xinvert} }
  80. #define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \
  81. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
  82. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
  83. SNDRV_CTL_ELEM_ACCESS_READWRITE, \
  84. .tlv.p = (tlv_array), \
  85. .info = snd_soc_info_volsw_s8, .get = snd_soc_get_volsw_s8, \
  86. .put = snd_soc_put_volsw_s8, \
  87. .private_value = (unsigned long)&(struct soc_mixer_control) \
  88. {.reg = xreg, .min = xmin, .max = xmax} }
  89. #define SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmax, xtexts) \
  90. { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
  91. .max = xmax, .texts = xtexts }
  92. #define SOC_ENUM_SINGLE(xreg, xshift, xmax, xtexts) \
  93. SOC_ENUM_DOUBLE(xreg, xshift, xshift, xmax, xtexts)
  94. #define SOC_ENUM_SINGLE_EXT(xmax, xtexts) \
  95. { .max = xmax, .texts = xtexts }
  96. #define SOC_VALUE_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xmax, xtexts, xvalues) \
  97. { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
  98. .mask = xmask, .max = xmax, .texts = xtexts, .values = xvalues}
  99. #define SOC_VALUE_ENUM_SINGLE(xreg, xshift, xmask, xmax, xtexts, xvalues) \
  100. SOC_VALUE_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xmax, xtexts, xvalues)
  101. #define SOC_ENUM(xname, xenum) \
  102. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
  103. .info = snd_soc_info_enum_double, \
  104. .get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \
  105. .private_value = (unsigned long)&xenum }
  106. #define SOC_VALUE_ENUM(xname, xenum) \
  107. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
  108. .info = snd_soc_info_enum_double, \
  109. .get = snd_soc_get_value_enum_double, \
  110. .put = snd_soc_put_value_enum_double, \
  111. .private_value = (unsigned long)&xenum }
  112. #define SOC_SINGLE_EXT(xname, xreg, xshift, xmax, xinvert,\
  113. xhandler_get, xhandler_put) \
  114. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  115. .info = snd_soc_info_volsw, \
  116. .get = xhandler_get, .put = xhandler_put, \
  117. .private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
  118. #define SOC_SINGLE_EXT_TLV(xname, xreg, xshift, xmax, xinvert,\
  119. xhandler_get, xhandler_put, tlv_array) \
  120. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  121. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
  122. SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  123. .tlv.p = (tlv_array), \
  124. .info = snd_soc_info_volsw, \
  125. .get = xhandler_get, .put = xhandler_put, \
  126. .private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
  127. #define SOC_SINGLE_BOOL_EXT(xname, xdata, xhandler_get, xhandler_put) \
  128. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  129. .info = snd_soc_info_bool_ext, \
  130. .get = xhandler_get, .put = xhandler_put, \
  131. .private_value = xdata }
  132. #define SOC_ENUM_EXT(xname, xenum, xhandler_get, xhandler_put) \
  133. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  134. .info = snd_soc_info_enum_ext, \
  135. .get = xhandler_get, .put = xhandler_put, \
  136. .private_value = (unsigned long)&xenum }
  137. /*
  138. * Bias levels
  139. *
  140. * @ON: Bias is fully on for audio playback and capture operations.
  141. * @PREPARE: Prepare for audio operations. Called before DAPM switching for
  142. * stream start and stop operations.
  143. * @STANDBY: Low power standby state when no playback/capture operations are
  144. * in progress. NOTE: The transition time between STANDBY and ON
  145. * should be as fast as possible and no longer than 10ms.
  146. * @OFF: Power Off. No restrictions on transition times.
  147. */
  148. enum snd_soc_bias_level {
  149. SND_SOC_BIAS_ON,
  150. SND_SOC_BIAS_PREPARE,
  151. SND_SOC_BIAS_STANDBY,
  152. SND_SOC_BIAS_OFF,
  153. };
  154. struct snd_jack;
  155. struct snd_soc_card;
  156. struct snd_soc_device;
  157. struct snd_soc_pcm_stream;
  158. struct snd_soc_ops;
  159. struct snd_soc_dai_mode;
  160. struct snd_soc_pcm_runtime;
  161. struct snd_soc_dai;
  162. struct snd_soc_platform;
  163. struct snd_soc_codec;
  164. struct soc_enum;
  165. struct snd_soc_ac97_ops;
  166. struct snd_soc_jack;
  167. struct snd_soc_jack_pin;
  168. #ifdef CONFIG_GPIOLIB
  169. struct snd_soc_jack_gpio;
  170. #endif
  171. typedef int (*hw_write_t)(void *,const char* ,int);
  172. typedef int (*hw_read_t)(void *,char* ,int);
  173. extern struct snd_ac97_bus_ops soc_ac97_ops;
  174. int snd_soc_register_platform(struct snd_soc_platform *platform);
  175. void snd_soc_unregister_platform(struct snd_soc_platform *platform);
  176. int snd_soc_register_codec(struct snd_soc_codec *codec);
  177. void snd_soc_unregister_codec(struct snd_soc_codec *codec);
  178. /* pcm <-> DAI connect */
  179. void snd_soc_free_pcms(struct snd_soc_device *socdev);
  180. int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
  181. int snd_soc_init_card(struct snd_soc_device *socdev);
  182. /* set runtime hw params */
  183. int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
  184. const struct snd_pcm_hardware *hw);
  185. /* Jack reporting */
  186. int snd_soc_jack_new(struct snd_soc_card *card, const char *id, int type,
  187. struct snd_soc_jack *jack);
  188. void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask);
  189. int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
  190. struct snd_soc_jack_pin *pins);
  191. #ifdef CONFIG_GPIOLIB
  192. int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
  193. struct snd_soc_jack_gpio *gpios);
  194. void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
  195. struct snd_soc_jack_gpio *gpios);
  196. #endif
  197. /* codec IO */
  198. #define snd_soc_read(codec, reg) codec->read(codec, reg)
  199. #define snd_soc_write(codec, reg, value) codec->write(codec, reg, value)
  200. /* codec register bit access */
  201. int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
  202. unsigned short mask, unsigned short value);
  203. int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
  204. unsigned short mask, unsigned short value);
  205. int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
  206. struct snd_ac97_bus_ops *ops, int num);
  207. void snd_soc_free_ac97_codec(struct snd_soc_codec *codec);
  208. /*
  209. *Controls
  210. */
  211. struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
  212. void *data, char *long_name);
  213. int snd_soc_add_controls(struct snd_soc_codec *codec,
  214. const struct snd_kcontrol_new *controls, int num_controls);
  215. int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol,
  216. struct snd_ctl_elem_info *uinfo);
  217. int snd_soc_info_enum_ext(struct snd_kcontrol *kcontrol,
  218. struct snd_ctl_elem_info *uinfo);
  219. int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol,
  220. struct snd_ctl_elem_value *ucontrol);
  221. int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol,
  222. struct snd_ctl_elem_value *ucontrol);
  223. int snd_soc_get_value_enum_double(struct snd_kcontrol *kcontrol,
  224. struct snd_ctl_elem_value *ucontrol);
  225. int snd_soc_put_value_enum_double(struct snd_kcontrol *kcontrol,
  226. struct snd_ctl_elem_value *ucontrol);
  227. int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
  228. struct snd_ctl_elem_info *uinfo);
  229. int snd_soc_info_volsw_ext(struct snd_kcontrol *kcontrol,
  230. struct snd_ctl_elem_info *uinfo);
  231. #define snd_soc_info_bool_ext snd_ctl_boolean_mono_info
  232. int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
  233. struct snd_ctl_elem_value *ucontrol);
  234. int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
  235. struct snd_ctl_elem_value *ucontrol);
  236. int snd_soc_info_volsw_2r(struct snd_kcontrol *kcontrol,
  237. struct snd_ctl_elem_info *uinfo);
  238. int snd_soc_get_volsw_2r(struct snd_kcontrol *kcontrol,
  239. struct snd_ctl_elem_value *ucontrol);
  240. int snd_soc_put_volsw_2r(struct snd_kcontrol *kcontrol,
  241. struct snd_ctl_elem_value *ucontrol);
  242. int snd_soc_info_volsw_s8(struct snd_kcontrol *kcontrol,
  243. struct snd_ctl_elem_info *uinfo);
  244. int snd_soc_get_volsw_s8(struct snd_kcontrol *kcontrol,
  245. struct snd_ctl_elem_value *ucontrol);
  246. int snd_soc_put_volsw_s8(struct snd_kcontrol *kcontrol,
  247. struct snd_ctl_elem_value *ucontrol);
  248. /**
  249. * struct snd_soc_jack_pin - Describes a pin to update based on jack detection
  250. *
  251. * @pin: name of the pin to update
  252. * @mask: bits to check for in reported jack status
  253. * @invert: if non-zero then pin is enabled when status is not reported
  254. */
  255. struct snd_soc_jack_pin {
  256. struct list_head list;
  257. const char *pin;
  258. int mask;
  259. bool invert;
  260. };
  261. /**
  262. * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
  263. *
  264. * @gpio: gpio number
  265. * @name: gpio name
  266. * @report: value to report when jack detected
  267. * @invert: report presence in low state
  268. * @debouce_time: debouce time in ms
  269. */
  270. #ifdef CONFIG_GPIOLIB
  271. struct snd_soc_jack_gpio {
  272. unsigned int gpio;
  273. const char *name;
  274. int report;
  275. int invert;
  276. int debounce_time;
  277. struct snd_soc_jack *jack;
  278. struct work_struct work;
  279. };
  280. #endif
  281. struct snd_soc_jack {
  282. struct snd_jack *jack;
  283. struct snd_soc_card *card;
  284. struct list_head pins;
  285. int status;
  286. };
  287. /* SoC PCM stream information */
  288. struct snd_soc_pcm_stream {
  289. char *stream_name;
  290. u64 formats; /* SNDRV_PCM_FMTBIT_* */
  291. unsigned int rates; /* SNDRV_PCM_RATE_* */
  292. unsigned int rate_min; /* min rate */
  293. unsigned int rate_max; /* max rate */
  294. unsigned int channels_min; /* min channels */
  295. unsigned int channels_max; /* max channels */
  296. unsigned int active:1; /* stream is in use */
  297. };
  298. /* SoC audio ops */
  299. struct snd_soc_ops {
  300. int (*startup)(struct snd_pcm_substream *);
  301. void (*shutdown)(struct snd_pcm_substream *);
  302. int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *);
  303. int (*hw_free)(struct snd_pcm_substream *);
  304. int (*prepare)(struct snd_pcm_substream *);
  305. int (*trigger)(struct snd_pcm_substream *, int);
  306. };
  307. /* SoC Audio Codec */
  308. struct snd_soc_codec {
  309. char *name;
  310. struct module *owner;
  311. struct mutex mutex;
  312. struct device *dev;
  313. struct list_head list;
  314. /* callbacks */
  315. int (*set_bias_level)(struct snd_soc_codec *,
  316. enum snd_soc_bias_level level);
  317. /* runtime */
  318. struct snd_card *card;
  319. struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
  320. unsigned int active;
  321. unsigned int pcm_devs;
  322. void *private_data;
  323. /* codec IO */
  324. void *control_data; /* codec control (i2c/3wire) data */
  325. unsigned int (*read)(struct snd_soc_codec *, unsigned int);
  326. int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
  327. int (*display_register)(struct snd_soc_codec *, char *,
  328. size_t, unsigned int);
  329. hw_write_t hw_write;
  330. hw_read_t hw_read;
  331. void *reg_cache;
  332. short reg_cache_size;
  333. short reg_cache_step;
  334. /* dapm */
  335. u32 pop_time;
  336. struct list_head dapm_widgets;
  337. struct list_head dapm_paths;
  338. enum snd_soc_bias_level bias_level;
  339. enum snd_soc_bias_level suspend_bias_level;
  340. struct delayed_work delayed_work;
  341. /* codec DAI's */
  342. struct snd_soc_dai *dai;
  343. unsigned int num_dai;
  344. #ifdef CONFIG_DEBUG_FS
  345. struct dentry *debugfs_reg;
  346. struct dentry *debugfs_pop_time;
  347. #endif
  348. };
  349. /* codec device */
  350. struct snd_soc_codec_device {
  351. int (*probe)(struct platform_device *pdev);
  352. int (*remove)(struct platform_device *pdev);
  353. int (*suspend)(struct platform_device *pdev, pm_message_t state);
  354. int (*resume)(struct platform_device *pdev);
  355. };
  356. /* SoC platform interface */
  357. struct snd_soc_platform {
  358. char *name;
  359. struct list_head list;
  360. int (*probe)(struct platform_device *pdev);
  361. int (*remove)(struct platform_device *pdev);
  362. int (*suspend)(struct snd_soc_dai *dai);
  363. int (*resume)(struct snd_soc_dai *dai);
  364. /* pcm creation and destruction */
  365. int (*pcm_new)(struct snd_card *, struct snd_soc_dai *,
  366. struct snd_pcm *);
  367. void (*pcm_free)(struct snd_pcm *);
  368. /* platform stream ops */
  369. struct snd_pcm_ops *pcm_ops;
  370. };
  371. /* SoC machine DAI configuration, glues a codec and cpu DAI together */
  372. struct snd_soc_dai_link {
  373. char *name; /* Codec name */
  374. char *stream_name; /* Stream name */
  375. /* DAI */
  376. struct snd_soc_dai *codec_dai;
  377. struct snd_soc_dai *cpu_dai;
  378. /* machine stream operations */
  379. struct snd_soc_ops *ops;
  380. /* codec/machine specific init - e.g. add machine controls */
  381. int (*init)(struct snd_soc_codec *codec);
  382. /* DAI pcm */
  383. struct snd_pcm *pcm;
  384. };
  385. /* SoC card */
  386. struct snd_soc_card {
  387. char *name;
  388. struct device *dev;
  389. struct list_head list;
  390. int instantiated;
  391. int (*probe)(struct platform_device *pdev);
  392. int (*remove)(struct platform_device *pdev);
  393. /* the pre and post PM functions are used to do any PM work before and
  394. * after the codec and DAI's do any PM work. */
  395. int (*suspend_pre)(struct platform_device *pdev, pm_message_t state);
  396. int (*suspend_post)(struct platform_device *pdev, pm_message_t state);
  397. int (*resume_pre)(struct platform_device *pdev);
  398. int (*resume_post)(struct platform_device *pdev);
  399. /* callbacks */
  400. int (*set_bias_level)(struct snd_soc_card *,
  401. enum snd_soc_bias_level level);
  402. /* CPU <--> Codec DAI links */
  403. struct snd_soc_dai_link *dai_link;
  404. int num_links;
  405. struct snd_soc_device *socdev;
  406. struct snd_soc_codec *codec;
  407. struct snd_soc_platform *platform;
  408. struct delayed_work delayed_work;
  409. struct work_struct deferred_resume_work;
  410. };
  411. /* SoC Device - the audio subsystem */
  412. struct snd_soc_device {
  413. struct device *dev;
  414. struct snd_soc_card *card;
  415. struct snd_soc_codec_device *codec_dev;
  416. void *codec_data;
  417. };
  418. /* runtime channel data */
  419. struct snd_soc_pcm_runtime {
  420. struct snd_soc_dai_link *dai;
  421. struct snd_soc_device *socdev;
  422. };
  423. /* mixer control */
  424. struct soc_mixer_control {
  425. int min, max;
  426. unsigned int reg, rreg, shift, rshift, invert;
  427. };
  428. /* enumerated kcontrol */
  429. struct soc_enum {
  430. unsigned short reg;
  431. unsigned short reg2;
  432. unsigned char shift_l;
  433. unsigned char shift_r;
  434. unsigned int max;
  435. unsigned int mask;
  436. const char **texts;
  437. const unsigned int *values;
  438. void *dapm;
  439. };
  440. #include <sound/soc-dai.h>
  441. #endif