Commit 2466ab97 authored by Mark Brown's avatar Mark Brown

ASoC: core: Split the union for CODEC/platform in the DAI

There's now core code which falls back to global CODEC operations for
DAI calls that needs to be able to tell if it's dealing with a CPU or
CODEC DAI and given the small number of DAIs in a typical system and
overall memory usage pattern saving a pointer per DAI is really not
worth the effort.
Reported-by: default avatarIan Lartey <ian@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent 4bdd4799
...@@ -250,10 +250,9 @@ struct snd_soc_dai { ...@@ -250,10 +250,9 @@ struct snd_soc_dai {
unsigned int rate; unsigned int rate;
/* parent platform/codec */ /* parent platform/codec */
union {
struct snd_soc_platform *platform; struct snd_soc_platform *platform;
struct snd_soc_codec *codec; struct snd_soc_codec *codec;
};
struct snd_soc_card *card; struct snd_soc_card *card;
struct list_head list; struct list_head list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment