diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:56:56 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:56:56 -0400 |
| commit | 13419625774f9f3e65e07257ad2a7beb445e9942 (patch) | |
| tree | e106f4be80e6c8f6cc3be861cd555718a3142ab7 /include | |
| parent | 604c724ba38f6ecc82c9023bee692a7b2fb7e0ee (diff) | |
| parent | 89cab4624a8c0ed81a1b74b6f8c884641cac5b9d (diff) | |
Merge remote-tracking branch 'asoc/topic/component' into asoc-next
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc-dai.h | 8 | ||||
| -rw-r--r-- | include/sound/soc.h | 20 |
2 files changed, 20 insertions, 8 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 3d84808952b9..ae9a227d35d3 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
| @@ -95,14 +95,6 @@ struct snd_soc_dai_driver; | |||
| 95 | struct snd_soc_dai; | 95 | struct snd_soc_dai; |
| 96 | struct snd_ac97_bus_ops; | 96 | struct snd_ac97_bus_ops; |
| 97 | 97 | ||
| 98 | /* Digital Audio Interface registration */ | ||
| 99 | int snd_soc_register_dai(struct device *dev, | ||
| 100 | struct snd_soc_dai_driver *dai_drv); | ||
| 101 | void snd_soc_unregister_dai(struct device *dev); | ||
| 102 | int snd_soc_register_dais(struct device *dev, | ||
| 103 | struct snd_soc_dai_driver *dai_drv, size_t count); | ||
| 104 | void snd_soc_unregister_dais(struct device *dev, size_t count); | ||
| 105 | |||
| 106 | /* Digital Audio Interface clocking API.*/ | 98 | /* Digital Audio Interface clocking API.*/ |
| 107 | int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, | 99 | int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, |
| 108 | unsigned int freq, int dir); | 100 | unsigned int freq, int dir); |
diff --git a/include/sound/soc.h b/include/sound/soc.h index a6a059ca3874..44c9cbdc9fa2 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -324,6 +324,8 @@ struct snd_soc_dai_link; | |||
| 324 | struct snd_soc_platform_driver; | 324 | struct snd_soc_platform_driver; |
| 325 | struct snd_soc_codec; | 325 | struct snd_soc_codec; |
| 326 | struct snd_soc_codec_driver; | 326 | struct snd_soc_codec_driver; |
| 327 | struct snd_soc_component; | ||
| 328 | struct snd_soc_component_driver; | ||
| 327 | struct soc_enum; | 329 | struct soc_enum; |
| 328 | struct snd_soc_jack; | 330 | struct snd_soc_jack; |
| 329 | struct snd_soc_jack_zone; | 331 | struct snd_soc_jack_zone; |
| @@ -377,6 +379,10 @@ int snd_soc_register_codec(struct device *dev, | |||
| 377 | const struct snd_soc_codec_driver *codec_drv, | 379 | const struct snd_soc_codec_driver *codec_drv, |
| 378 | struct snd_soc_dai_driver *dai_drv, int num_dai); | 380 | struct snd_soc_dai_driver *dai_drv, int num_dai); |
| 379 | void snd_soc_unregister_codec(struct device *dev); | 381 | void snd_soc_unregister_codec(struct device *dev); |
| 382 | int snd_soc_register_component(struct device *dev, | ||
| 383 | const struct snd_soc_component_driver *cmpnt_drv, | ||
| 384 | struct snd_soc_dai_driver *dai_drv, int num_dai); | ||
| 385 | void snd_soc_unregister_component(struct device *dev); | ||
| 380 | int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, | 386 | int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, |
| 381 | unsigned int reg); | 387 | unsigned int reg); |
| 382 | int snd_soc_codec_readable_register(struct snd_soc_codec *codec, | 388 | int snd_soc_codec_readable_register(struct snd_soc_codec *codec, |
| @@ -841,6 +847,20 @@ struct snd_soc_platform { | |||
| 841 | #endif | 847 | #endif |
| 842 | }; | 848 | }; |
| 843 | 849 | ||
| 850 | struct snd_soc_component_driver { | ||
| 851 | const char *name; | ||
| 852 | }; | ||
| 853 | |||
| 854 | struct snd_soc_component { | ||
| 855 | const char *name; | ||
| 856 | int id; | ||
| 857 | int num_dai; | ||
| 858 | struct device *dev; | ||
| 859 | struct list_head list; | ||
| 860 | |||
| 861 | const struct snd_soc_component_driver *driver; | ||
| 862 | }; | ||
| 863 | |||
| 844 | struct snd_soc_dai_link { | 864 | struct snd_soc_dai_link { |
| 845 | /* config - must be set by machine driver */ | 865 | /* config - must be set by machine driver */ |
| 846 | const char *name; /* Codec name */ | 866 | const char *name; /* Codec name */ |
