diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2010-12-02 09:53:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-03 11:36:45 -0500 |
commit | ff819b8357df0ca9903ff7c9ad518b949c410123 (patch) | |
tree | 610ef8b2d54813bc87fe6bf037bd89ed351d89e9 /sound/soc/soc-core.c | |
parent | 119bd789f6405b8bf351b58561d08d8fc4e2d10b (diff) |
ASoC: soc-core: Generalize snd_soc_prefix_map and rename to snd_soc_codec_conf
The snd_soc_codec_conf struct now holds codec specific configuration
information.
A new configuration option has been added to allow machine drivers to
override the compression type set by the codec driver.
In the absence of providing an snd_soc_codec_conf struct or when providing
one but not setting the compress_type member to anything, the one supplied
by the codec driver will be used instead. In all other cases the one
set in the snd_soc_codec_conf struct takes effect.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 1fd1d1a62af1..4649db6163b8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1401,11 +1401,11 @@ static void soc_set_name_prefix(struct snd_soc_card *card, | |||
1401 | { | 1401 | { |
1402 | int i; | 1402 | int i; |
1403 | 1403 | ||
1404 | if (card->prefix_map == NULL) | 1404 | if (card->codec_conf == NULL) |
1405 | return; | 1405 | return; |
1406 | 1406 | ||
1407 | for (i = 0; i < card->num_prefixes; i++) { | 1407 | for (i = 0; i < card->num_configs; i++) { |
1408 | struct snd_soc_prefix_map *map = &card->prefix_map[i]; | 1408 | struct snd_soc_codec_conf *map = &card->codec_conf[i]; |
1409 | if (map->dev_name && !strcmp(codec->name, map->dev_name)) { | 1409 | if (map->dev_name && !strcmp(codec->name, map->dev_name)) { |
1410 | codec->name_prefix = map->name_prefix; | 1410 | codec->name_prefix = map->name_prefix; |
1411 | break; | 1411 | break; |