diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2010-12-02 09:53:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-03 11:36:03 -0500 |
commit | 23bbce34f47762ce944ea9b8b3b3e05e220c6a2e (patch) | |
tree | 58632d79ba97edf0a904ac3dd6a4447896f52288 /include | |
parent | 676ad98a06a629e6273819a54b70f3987044b608 (diff) |
ASoC: Add compress_type as a member to snd_soc_codec
We need to keep a copy of the compress_type supplied by the codec driver
so that we can override it if necessary with whatever the machine driver
has provided us with. The reason for not modifying the codec->driver
struct directly is that ideally we'd like to keep it const.
Adjust the code in soc-cache and soc-core to make use of the compress_type
member in the snd_soc_codec struct.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 714a70441bf2..586bfb99fedb 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -460,6 +460,7 @@ struct snd_soc_codec { | |||
460 | struct list_head list; | 460 | struct list_head list; |
461 | struct list_head card_list; | 461 | struct list_head card_list; |
462 | int num_dai; | 462 | int num_dai; |
463 | enum snd_soc_compress_type compress_type; | ||
463 | 464 | ||
464 | /* runtime */ | 465 | /* runtime */ |
465 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ | 466 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ |