soc.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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 <sound/driver.h>
  18. #include <sound/core.h>
  19. #include <sound/pcm.h>
  20. #include <sound/control.h>
  21. #include <sound/ac97_codec.h>
  22. #define SND_SOC_VERSION "0.13.2"
  23. /*
  24. * Convenience kcontrol builders
  25. */
  26. #define SOC_SINGLE_VALUE(reg,shift,max,invert) ((reg) | ((shift) << 8) |\
  27. ((shift) << 12) | ((max) << 16) | ((invert) << 24))
  28. #define SOC_SINGLE_VALUE_EXT(reg,max,invert) ((reg) | ((max) << 16) |\
  29. ((invert) << 31))
  30. #define SOC_SINGLE(xname, reg, shift, max, invert) \
  31. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  32. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
  33. .put = snd_soc_put_volsw, \
  34. .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
  35. #define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
  36. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  37. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  38. .tlv.p = (tlv_array), \
  39. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\
  40. .put = snd_soc_put_volsw, \
  41. .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
  42. #define SOC_DOUBLE(xname, reg, shift_left, shift_right, max, invert) \
  43. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  44. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
  45. .put = snd_soc_put_volsw, \
  46. .private_value = (reg) | ((shift_left) << 8) | \
  47. ((shift_right) << 12) | ((max) << 16) | ((invert) << 24) }
  48. #define SOC_DOUBLE_R(xname, reg_left, reg_right, shift, max, invert) \
  49. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
  50. .info = snd_soc_info_volsw_2r, \
  51. .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
  52. .private_value = (reg_left) | ((shift) << 8) | \
  53. ((max) << 12) | ((invert) << 20) | ((reg_right) << 24) }
  54. #define SOC_DOUBLE_TLV(xname, reg, shift_left, shift_right, max, invert, tlv_array) \
  55. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  56. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  57. .tlv.p = (tlv_array), \
  58. .info = snd_soc_info_volsw, .get = snd_soc_get_volsw, \
  59. .put = snd_soc_put_volsw, \
  60. .private_value = (reg) | ((shift_left) << 8) | \
  61. ((shift_right) << 12) | ((max) << 16) | ((invert) << 24) }
  62. #define SOC_DOUBLE_R_TLV(xname, reg_left, reg_right, shift, max, invert, tlv_array) \
  63. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
  64. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_READWRITE,\
  65. .tlv.p = (tlv_array), \
  66. .info = snd_soc_info_volsw_2r, \
  67. .get = snd_soc_get_volsw_2r, .put = snd_soc_put_volsw_2r, \
  68. .private_value = (reg_left) | ((shift) << 8) | \
  69. ((max) << 12) | ((invert) << 20) | ((reg_right) << 24) }
  70. #define SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xtexts) \
  71. { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
  72. .mask = xmask, .texts = xtexts }
  73. #define SOC_ENUM_SINGLE(xreg, xshift, xmask, xtexts) \
  74. SOC_ENUM_DOUBLE(xreg, xshift, xshift, xmask, xtexts)
  75. #define SOC_ENUM_SINGLE_EXT(xmask, xtexts) \
  76. { .mask = xmask, .texts = xtexts }
  77. #define SOC_ENUM(xname, xenum) \
  78. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
  79. .info = snd_soc_info_enum_double, \
  80. .get = snd_soc_get_enum_double, .put = snd_soc_put_enum_double, \
  81. .private_value = (unsigned long)&xenum }
  82. #define SOC_SINGLE_EXT(xname, xreg, xshift, xmask, xinvert,\
  83. xhandler_get, xhandler_put) \
  84. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  85. .info = snd_soc_info_volsw, \
  86. .get = xhandler_get, .put = xhandler_put, \
  87. .private_value = SOC_SINGLE_VALUE(xreg, xshift, xmask, xinvert) }
  88. #define SOC_SINGLE_BOOL_EXT(xname, xdata, xhandler_get, xhandler_put) \
  89. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  90. .info = snd_soc_info_bool_ext, \
  91. .get = xhandler_get, .put = xhandler_put, \
  92. .private_value = xdata }
  93. #define SOC_ENUM_EXT(xname, xenum, xhandler_get, xhandler_put) \
  94. { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
  95. .info = snd_soc_info_enum_ext, \
  96. .get = xhandler_get, .put = xhandler_put, \
  97. .private_value = (unsigned long)&xenum }
  98. /*
  99. * Digital Audio Interface (DAI) types
  100. */
  101. #define SND_SOC_DAI_AC97 0x1
  102. #define SND_SOC_DAI_I2S 0x2
  103. #define SND_SOC_DAI_PCM 0x4
  104. #define SND_SOC_DAI_AC97_BUS 0x8 /* for custom i.e. non ac97_codec.c */
  105. /*
  106. * DAI hardware audio formats
  107. */
  108. #define SND_SOC_DAIFMT_I2S 0 /* I2S mode */
  109. #define SND_SOC_DAIFMT_RIGHT_J 1 /* Right justified mode */
  110. #define SND_SOC_DAIFMT_LEFT_J 2 /* Left Justified mode */
  111. #define SND_SOC_DAIFMT_DSP_A 3 /* L data msb after FRM or LRC */
  112. #define SND_SOC_DAIFMT_DSP_B 4 /* L data msb during FRM or LRC */
  113. #define SND_SOC_DAIFMT_AC97 5 /* AC97 */
  114. #define SND_SOC_DAIFMT_MSB SND_SOC_DAIFMT_LEFT_J
  115. #define SND_SOC_DAIFMT_LSB SND_SOC_DAIFMT_RIGHT_J
  116. /*
  117. * DAI Gating
  118. */
  119. #define SND_SOC_DAIFMT_CONT (0 << 4) /* continuous clock */
  120. #define SND_SOC_DAIFMT_GATED (1 << 4) /* clock is gated when not Tx/Rx */
  121. /*
  122. * DAI Sync
  123. * Synchronous LR (Left Right) clocks and Frame signals.
  124. */
  125. #define SND_SOC_DAIFMT_SYNC (0 << 5) /* Tx FRM = Rx FRM */
  126. #define SND_SOC_DAIFMT_ASYNC (1 << 5) /* Tx FRM ~ Rx FRM */
  127. /*
  128. * TDM
  129. */
  130. #define SND_SOC_DAIFMT_TDM (1 << 6)
  131. /*
  132. * DAI hardware signal inversions
  133. */
  134. #define SND_SOC_DAIFMT_NB_NF (0 << 8) /* normal bit clock + frame */
  135. #define SND_SOC_DAIFMT_NB_IF (1 << 8) /* normal bclk + inv frm */
  136. #define SND_SOC_DAIFMT_IB_NF (2 << 8) /* invert bclk + nor frm */
  137. #define SND_SOC_DAIFMT_IB_IF (3 << 8) /* invert bclk + frm */
  138. /*
  139. * DAI hardware clock masters
  140. * This is wrt the codec, the inverse is true for the interface
  141. * i.e. if the codec is clk and frm master then the interface is
  142. * clk and frame slave.
  143. */
  144. #define SND_SOC_DAIFMT_CBM_CFM (0 << 12) /* codec clk & frm master */
  145. #define SND_SOC_DAIFMT_CBS_CFM (1 << 12) /* codec clk slave & frm master */
  146. #define SND_SOC_DAIFMT_CBM_CFS (2 << 12) /* codec clk master & frame slave */
  147. #define SND_SOC_DAIFMT_CBS_CFS (3 << 12) /* codec clk & frm slave */
  148. #define SND_SOC_DAIFMT_FORMAT_MASK 0x000f
  149. #define SND_SOC_DAIFMT_CLOCK_MASK 0x00f0
  150. #define SND_SOC_DAIFMT_INV_MASK 0x0f00
  151. #define SND_SOC_DAIFMT_MASTER_MASK 0xf000
  152. /*
  153. * Master Clock Directions
  154. */
  155. #define SND_SOC_CLOCK_IN 0
  156. #define SND_SOC_CLOCK_OUT 1
  157. /*
  158. * AC97 codec ID's bitmask
  159. */
  160. #define SND_SOC_DAI_AC97_ID0 (1 << 0)
  161. #define SND_SOC_DAI_AC97_ID1 (1 << 1)
  162. #define SND_SOC_DAI_AC97_ID2 (1 << 2)
  163. #define SND_SOC_DAI_AC97_ID3 (1 << 3)
  164. struct snd_soc_device;
  165. struct snd_soc_pcm_stream;
  166. struct snd_soc_ops;
  167. struct snd_soc_dai_mode;
  168. struct snd_soc_pcm_runtime;
  169. struct snd_soc_codec_dai;
  170. struct snd_soc_cpu_dai;
  171. struct snd_soc_codec;
  172. struct snd_soc_machine_config;
  173. struct soc_enum;
  174. struct snd_soc_ac97_ops;
  175. struct snd_soc_clock_info;
  176. typedef int (*hw_write_t)(void *,const char* ,int);
  177. typedef int (*hw_read_t)(void *,char* ,int);
  178. extern struct snd_ac97_bus_ops soc_ac97_ops;
  179. /* pcm <-> DAI connect */
  180. void snd_soc_free_pcms(struct snd_soc_device *socdev);
  181. int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
  182. int snd_soc_register_card(struct snd_soc_device *socdev);
  183. /* set runtime hw params */
  184. int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
  185. const struct snd_pcm_hardware *hw);
  186. /* codec IO */
  187. #define snd_soc_read(codec, reg) codec->read(codec, reg)
  188. #define snd_soc_write(codec, reg, value) codec->write(codec, reg, value)
  189. /* codec register bit access */
  190. int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
  191. unsigned short mask, unsigned short value);
  192. int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
  193. unsigned short mask, unsigned short value);
  194. int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
  195. struct snd_ac97_bus_ops *ops, int num);
  196. void snd_soc_free_ac97_codec(struct snd_soc_codec *codec);
  197. /*
  198. *Controls
  199. */
  200. struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
  201. void *data, char *long_name);
  202. int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol,
  203. struct snd_ctl_elem_info *uinfo);
  204. int snd_soc_info_enum_ext(struct snd_kcontrol *kcontrol,
  205. struct snd_ctl_elem_info *uinfo);
  206. int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol,
  207. struct snd_ctl_elem_value *ucontrol);
  208. int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol,
  209. struct snd_ctl_elem_value *ucontrol);
  210. int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
  211. struct snd_ctl_elem_info *uinfo);
  212. int snd_soc_info_volsw_ext(struct snd_kcontrol *kcontrol,
  213. struct snd_ctl_elem_info *uinfo);
  214. int snd_soc_info_bool_ext(struct snd_kcontrol *kcontrol,
  215. struct snd_ctl_elem_info *uinfo);
  216. int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
  217. struct snd_ctl_elem_value *ucontrol);
  218. int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
  219. struct snd_ctl_elem_value *ucontrol);
  220. int snd_soc_info_volsw_2r(struct snd_kcontrol *kcontrol,
  221. struct snd_ctl_elem_info *uinfo);
  222. int snd_soc_get_volsw_2r(struct snd_kcontrol *kcontrol,
  223. struct snd_ctl_elem_value *ucontrol);
  224. int snd_soc_put_volsw_2r(struct snd_kcontrol *kcontrol,
  225. struct snd_ctl_elem_value *ucontrol);
  226. /* SoC PCM stream information */
  227. struct snd_soc_pcm_stream {
  228. char *stream_name;
  229. u64 formats; /* SNDRV_PCM_FMTBIT_* */
  230. unsigned int rates; /* SNDRV_PCM_RATE_* */
  231. unsigned int rate_min; /* min rate */
  232. unsigned int rate_max; /* max rate */
  233. unsigned int channels_min; /* min channels */
  234. unsigned int channels_max; /* max channels */
  235. unsigned int active:1; /* stream is in use */
  236. };
  237. /* SoC audio ops */
  238. struct snd_soc_ops {
  239. int (*startup)(struct snd_pcm_substream *);
  240. void (*shutdown)(struct snd_pcm_substream *);
  241. int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *);
  242. int (*hw_free)(struct snd_pcm_substream *);
  243. int (*prepare)(struct snd_pcm_substream *);
  244. int (*trigger)(struct snd_pcm_substream *, int);
  245. };
  246. /* ASoC codec DAI ops */
  247. struct snd_soc_codec_ops {
  248. /* codec DAI clocking configuration */
  249. int (*set_sysclk)(struct snd_soc_codec_dai *codec_dai,
  250. int clk_id, unsigned int freq, int dir);
  251. int (*set_pll)(struct snd_soc_codec_dai *codec_dai,
  252. int pll_id, unsigned int freq_in, unsigned int freq_out);
  253. int (*set_clkdiv)(struct snd_soc_codec_dai *codec_dai,
  254. int div_id, int div);
  255. /* CPU DAI format configuration */
  256. int (*set_fmt)(struct snd_soc_codec_dai *codec_dai,
  257. unsigned int fmt);
  258. int (*set_tdm_slot)(struct snd_soc_codec_dai *codec_dai,
  259. unsigned int mask, int slots);
  260. int (*set_tristate)(struct snd_soc_codec_dai *, int tristate);
  261. /* digital mute */
  262. int (*digital_mute)(struct snd_soc_codec_dai *, int mute);
  263. };
  264. /* ASoC cpu DAI ops */
  265. struct snd_soc_cpu_ops {
  266. /* CPU DAI clocking configuration */
  267. int (*set_sysclk)(struct snd_soc_cpu_dai *cpu_dai,
  268. int clk_id, unsigned int freq, int dir);
  269. int (*set_clkdiv)(struct snd_soc_cpu_dai *cpu_dai,
  270. int div_id, int div);
  271. int (*set_pll)(struct snd_soc_cpu_dai *cpu_dai,
  272. int pll_id, unsigned int freq_in, unsigned int freq_out);
  273. /* CPU DAI format configuration */
  274. int (*set_fmt)(struct snd_soc_cpu_dai *cpu_dai,
  275. unsigned int fmt);
  276. int (*set_tdm_slot)(struct snd_soc_cpu_dai *cpu_dai,
  277. unsigned int mask, int slots);
  278. int (*set_tristate)(struct snd_soc_cpu_dai *, int tristate);
  279. };
  280. /* SoC Codec DAI */
  281. struct snd_soc_codec_dai {
  282. char *name;
  283. int id;
  284. unsigned char type;
  285. /* DAI capabilities */
  286. struct snd_soc_pcm_stream playback;
  287. struct snd_soc_pcm_stream capture;
  288. /* DAI runtime info */
  289. struct snd_soc_codec *codec;
  290. unsigned int active;
  291. unsigned char pop_wait:1;
  292. /* ops */
  293. struct snd_soc_ops ops;
  294. struct snd_soc_codec_ops dai_ops;
  295. /* DAI private data */
  296. void *private_data;
  297. };
  298. /* SoC CPU DAI */
  299. struct snd_soc_cpu_dai {
  300. /* DAI description */
  301. char *name;
  302. unsigned int id;
  303. unsigned char type;
  304. /* DAI callbacks */
  305. int (*probe)(struct platform_device *pdev);
  306. void (*remove)(struct platform_device *pdev);
  307. int (*suspend)(struct platform_device *pdev,
  308. struct snd_soc_cpu_dai *cpu_dai);
  309. int (*resume)(struct platform_device *pdev,
  310. struct snd_soc_cpu_dai *cpu_dai);
  311. /* ops */
  312. struct snd_soc_ops ops;
  313. struct snd_soc_cpu_ops dai_ops;
  314. /* DAI capabilities */
  315. struct snd_soc_pcm_stream capture;
  316. struct snd_soc_pcm_stream playback;
  317. /* DAI runtime info */
  318. struct snd_pcm_runtime *runtime;
  319. unsigned char active:1;
  320. void *dma_data;
  321. /* DAI private data */
  322. void *private_data;
  323. };
  324. /* SoC Audio Codec */
  325. struct snd_soc_codec {
  326. char *name;
  327. struct module *owner;
  328. struct mutex mutex;
  329. /* callbacks */
  330. int (*dapm_event)(struct snd_soc_codec *codec, int event);
  331. /* runtime */
  332. struct snd_card *card;
  333. struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
  334. unsigned int active;
  335. unsigned int pcm_devs;
  336. void *private_data;
  337. /* codec IO */
  338. void *control_data; /* codec control (i2c/3wire) data */
  339. unsigned int (*read)(struct snd_soc_codec *, unsigned int);
  340. int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
  341. hw_write_t hw_write;
  342. hw_read_t hw_read;
  343. void *reg_cache;
  344. short reg_cache_size;
  345. short reg_cache_step;
  346. /* dapm */
  347. struct list_head dapm_widgets;
  348. struct list_head dapm_paths;
  349. unsigned int dapm_state;
  350. unsigned int suspend_dapm_state;
  351. struct delayed_work delayed_work;
  352. /* codec DAI's */
  353. struct snd_soc_codec_dai *dai;
  354. unsigned int num_dai;
  355. };
  356. /* codec device */
  357. struct snd_soc_codec_device {
  358. int (*probe)(struct platform_device *pdev);
  359. int (*remove)(struct platform_device *pdev);
  360. int (*suspend)(struct platform_device *pdev, pm_message_t state);
  361. int (*resume)(struct platform_device *pdev);
  362. };
  363. /* SoC platform interface */
  364. struct snd_soc_platform {
  365. char *name;
  366. int (*probe)(struct platform_device *pdev);
  367. int (*remove)(struct platform_device *pdev);
  368. int (*suspend)(struct platform_device *pdev,
  369. struct snd_soc_cpu_dai *cpu_dai);
  370. int (*resume)(struct platform_device *pdev,
  371. struct snd_soc_cpu_dai *cpu_dai);
  372. /* pcm creation and destruction */
  373. int (*pcm_new)(struct snd_card *, struct snd_soc_codec_dai *,
  374. struct snd_pcm *);
  375. void (*pcm_free)(struct snd_pcm *);
  376. /* platform stream ops */
  377. struct snd_pcm_ops *pcm_ops;
  378. };
  379. /* SoC machine DAI configuration, glues a codec and cpu DAI together */
  380. struct snd_soc_dai_link {
  381. char *name; /* Codec name */
  382. char *stream_name; /* Stream name */
  383. /* DAI */
  384. struct snd_soc_codec_dai *codec_dai;
  385. struct snd_soc_cpu_dai *cpu_dai;
  386. /* machine stream operations */
  387. struct snd_soc_ops *ops;
  388. /* codec/machine specific init - e.g. add machine controls */
  389. int (*init)(struct snd_soc_codec *codec);
  390. /* DAI pcm */
  391. struct snd_pcm *pcm;
  392. };
  393. /* SoC machine */
  394. struct snd_soc_machine {
  395. char *name;
  396. int (*probe)(struct platform_device *pdev);
  397. int (*remove)(struct platform_device *pdev);
  398. /* the pre and post PM functions are used to do any PM work before and
  399. * after the codec and DAI's do any PM work. */
  400. int (*suspend_pre)(struct platform_device *pdev, pm_message_t state);
  401. int (*suspend_post)(struct platform_device *pdev, pm_message_t state);
  402. int (*resume_pre)(struct platform_device *pdev);
  403. int (*resume_post)(struct platform_device *pdev);
  404. /* callbacks */
  405. int (*dapm_event)(struct snd_soc_machine *, int event);
  406. /* CPU <--> Codec DAI links */
  407. struct snd_soc_dai_link *dai_link;
  408. int num_links;
  409. };
  410. /* SoC Device - the audio subsystem */
  411. struct snd_soc_device {
  412. struct device *dev;
  413. struct snd_soc_machine *machine;
  414. struct snd_soc_platform *platform;
  415. struct snd_soc_codec *codec;
  416. struct snd_soc_codec_device *codec_dev;
  417. struct delayed_work delayed_work;
  418. void *codec_data;
  419. };
  420. /* runtime channel data */
  421. struct snd_soc_pcm_runtime {
  422. struct snd_soc_dai_link *dai;
  423. struct snd_soc_device *socdev;
  424. };
  425. /* enumerated kcontrol */
  426. struct soc_enum {
  427. unsigned short reg;
  428. unsigned short reg2;
  429. unsigned char shift_l;
  430. unsigned char shift_r;
  431. unsigned int mask;
  432. const char **texts;
  433. void *dapm;
  434. };
  435. #endif