Date: | 2012-06-22 14:04:02 (11 years 5 months ago) |
---|---|
Author: | Mark Brown |
Commit: | 90ff1252b873baaf628e43eec55769f7d8faeba3 |
Message: | ASoC: core: Try to use regmap if the driver doesn't set up any I/O Since most new drivers are expected to use regmap and since frequently the only thing we need to do in the CODEC probe function is configure the I/O try to initialise the register I/O using regmap if the driver hasn't done so after probe(). Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> |
Files: |
sound/soc/soc-core.c (1 diff) |
Change Details
sound/soc/soc-core.c | ||
---|---|---|
1054 | 1054 | } |
1055 | 1055 | } |
1056 | 1056 | |
1057 | /* If the driver didn't set I/O up try regmap */ | |
1058 | if (!codec->control_data) | |
1059 | snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); | |
1060 | ||
1057 | 1061 | if (driver->controls) |
1058 | 1062 | snd_soc_add_codec_controls(codec, driver->controls, |
1059 | 1063 | driver->num_controls); |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9