Skip to content

Commit

Permalink
ASoC: core: Split the union for CODEC/platform in the DAI
Browse files Browse the repository at this point in the history
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: Ian Lartey <ian@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Mar 4, 2012
1 parent 4bdd479 commit 2466ab9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/sound/soc-dai.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ struct snd_soc_dai {
unsigned int rate;

/* parent platform/codec */
union {
struct snd_soc_platform *platform;
struct snd_soc_codec *codec;
};
struct snd_soc_platform *platform;
struct snd_soc_codec *codec;

struct snd_soc_card *card;

struct list_head list;
Expand Down

0 comments on commit 2466ab9

Please sign in to comment.