diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-11-25 18:47:38 +0300 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-30 17:39:00 +0300 |
commit | 2eea392d0a28a0a07d36a9da544eb40f81bf4cb6 (patch) | |
tree | 6eebdb530c1d73fdf60cb0408f1f1808d47a6b20 /include/sound/emu10k1_synth.h | |
parent | 09c74a9d0b0bedff16d0881db8cc0054a5e34f47 (diff) | |
download | linux-2eea392d0a28a0a07d36a9da544eb40f81bf4cb6.tar.xz |
ASoC: Add support for optional auxiliary dailess codecs
This makes possible to register auxiliary dailess codecs in a machine
driver. Term dailess is used here for amplifiers and codecs without DAI or
DAI being unused.
Dailess auxiliary codecs are kept in struct snd_soc_aux_dev and those codecs
are probed after initializing the DAI links. There are no major differences
between DAI link codecs and dailess codecs in ASoC core point of view. DAPM
handles them equally and sysfs and debugfs directories for dailess codecs
are similar except the pmdown_time node is not created.
Only suspend and resume functions are modified to traverse all probed codecs
instead of DAI link codecs.
Example below shows a dailess codec registration.
struct snd_soc_aux_dev foo_aux_dev[] = {
{
.name = "Amp",
.codec_name = "codec.2",
.init = foo_init2,
},
};
static struct snd_soc_card card = {
...
.aux_dev = foo_aux_dev,
.num_aux_devs = ARRAY_SIZE(foo_aux_dev),
};
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/emu10k1_synth.h')
0 files changed, 0 insertions, 0 deletions