diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-08-08 23:53:21 +0100 |
---|---|---|
committer | Ricardo Perez Olivares <x0081762@ti.com> | 2010-09-14 19:27:18 -0500 |
commit | 93059328a01aabb002aab9b7663ea5ef821d7be1 (patch) | |
tree | a086c6b173e8ced6455e99cfc051b640dc3e38db /include | |
parent | f9b66ee576b9a7aeee7b518f4bbf98e96177f5d6 (diff) |
ASoC: core - add backend DAI PCM operations routing.
Add support for Backend DAI to calculate routing at open
for all FE <-> BE paths.
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index be711ca2c05f..5d46cf077a1d 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -254,6 +254,9 @@ enum snd_soc_control_type { SND_SOC_SPI, }; +/* Max number of Backend DAIs */ +#define SND_SOC_MAX_BE 8 + int snd_soc_register_platform(struct device *dev, struct snd_soc_platform_driver *platform_drv); void snd_soc_unregister_platform(struct device *dev); @@ -582,6 +585,8 @@ struct snd_soc_dai_link { unsigned int dynamic:1; /* This DAI link has no codec side driver*/ unsigned int no_codec:1; + /* This DAI has a Backend ID */ + unsigned int be_id; /* codec/machine specific init - e.g. add machine controls */ int (*init)(struct snd_soc_pcm_runtime *rtd); @@ -642,6 +647,12 @@ struct snd_soc_pcm_runtime { unsigned int complete:1; unsigned int dev_registered:1; + /* BE runtime data */ + unsigned int fe_clients; + unsigned int num_be; + unsigned int be_active; + struct snd_soc_pcm_runtime *be_rtd[SND_SOC_MAX_BE]; + /* Symmetry data - only valid if symmetry is being enforced */ unsigned int rate; long pmdown_time; |