| OLD | NEW |
| 1 /* | 1 /* |
| 2 * linux/sound/soc-dai.h -- ALSA SoC Layer | 2 * linux/sound/soc-dai.h -- ALSA SoC Layer |
| 3 * | 3 * |
| 4 * Copyright: 2005-2008 Wolfson Microelectronics. PLC. | 4 * Copyright: 2005-2008 Wolfson Microelectronics. PLC. |
| 5 * | 5 * |
| 6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
| 7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
| 8 * published by the Free Software Foundation. | 8 * published by the Free Software Foundation. |
| 9 * | 9 * |
| 10 * Digital Audio Interface (DAI) API. | 10 * Digital Audio Interface (DAI) API. |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 #ifndef __LINUX_SND_SOC_DAI_H | 13 #ifndef __LINUX_SND_SOC_DAI_H |
| 14 #define __LINUX_SND_SOC_DAI_H | 14 #define __LINUX_SND_SOC_DAI_H |
| 15 | 15 |
| 16 | 16 |
| 17 #include <linux/list.h> | 17 #include <linux/list.h> |
| 18 | 18 |
| 19 #include <sound/soc.h> | |
| 20 | |
| 21 struct snd_pcm_substream; | 19 struct snd_pcm_substream; |
| 22 | 20 |
| 23 /* | 21 /* |
| 24 * DAI hardware audio formats. | 22 * DAI hardware audio formats. |
| 25 * | 23 * |
| 26 * Describes the physical PCM data formating and clocking. Add new formats | 24 * Describes the physical PCM data formating and clocking. Add new formats |
| 27 * to the end. | 25 * to the end. |
| 28 */ | 26 */ |
| 29 #define SND_SOC_DAIFMT_I2S 0 /* I2S mode */ | 27 #define SND_SOC_DAIFMT_I2S 0 /* I2S mode */ |
| 30 #define SND_SOC_DAIFMT_RIGHT_J 1 /* Right Justified mode */ | 28 #define SND_SOC_DAIFMT_RIGHT_J 1 /* Right Justified mode */ |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 unsigned int id; | 196 unsigned int id; |
| 199 int ac97_control; | 197 int ac97_control; |
| 200 | 198 |
| 201 /* DAI driver callbacks */ | 199 /* DAI driver callbacks */ |
| 202 int (*probe)(struct snd_soc_dai *dai); | 200 int (*probe)(struct snd_soc_dai *dai); |
| 203 int (*remove)(struct snd_soc_dai *dai); | 201 int (*remove)(struct snd_soc_dai *dai); |
| 204 int (*suspend)(struct snd_soc_dai *dai); | 202 int (*suspend)(struct snd_soc_dai *dai); |
| 205 int (*resume)(struct snd_soc_dai *dai); | 203 int (*resume)(struct snd_soc_dai *dai); |
| 206 | 204 |
| 207 /* ops */ | 205 /* ops */ |
| 208 » struct snd_soc_dai_ops *ops; | 206 » const struct snd_soc_dai_ops *ops; |
| 209 | 207 |
| 210 /* DAI capabilities */ | 208 /* DAI capabilities */ |
| 211 struct snd_soc_pcm_stream capture; | 209 struct snd_soc_pcm_stream capture; |
| 212 struct snd_soc_pcm_stream playback; | 210 struct snd_soc_pcm_stream playback; |
| 213 unsigned int symmetric_rates:1; | 211 unsigned int symmetric_rates:1; |
| 214 }; | 212 }; |
| 215 | 213 |
| 216 /* | 214 /* |
| 217 * Digital Audio Interface runtime data. | 215 * Digital Audio Interface runtime data. |
| 218 * | 216 * |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 { | 271 { |
| 274 dev_set_drvdata(dai->dev, data); | 272 dev_set_drvdata(dai->dev, data); |
| 275 } | 273 } |
| 276 | 274 |
| 277 static inline void *snd_soc_dai_get_drvdata(struct snd_soc_dai *dai) | 275 static inline void *snd_soc_dai_get_drvdata(struct snd_soc_dai *dai) |
| 278 { | 276 { |
| 279 return dev_get_drvdata(dai->dev); | 277 return dev_get_drvdata(dai->dev); |
| 280 } | 278 } |
| 281 | 279 |
| 282 #endif | 280 #endif |
| OLD | NEW |