Date: | 2012-08-01 21:05:47 (11 years 3 months ago) |
---|---|
Author: | Mark Brown |
Commit: | 82a40fee5d73a5e34f38b64b726fc6586a2c72fd |
Message: | ASoC: core: Fix check before defaulting to regmap Check if the chip has provided a write operation (which is mandatory for I/O) rather than looking for control data as some of the MFDs use a global for this. Also skip the attempt if there's no regmap available by device in case things get confused by the attempt to default. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com> |
Files: |
sound/soc/soc-core.c (1 diff) |
Change Details
sound/soc/soc-core.c | ||
---|---|---|
1055 | 1055 | } |
1056 | 1056 | |
1057 | 1057 | /* If the driver didn't set I/O up try regmap */ |
1058 | if (!codec->control_data) | |
1058 | if (!codec->write && dev_get_regmap(codec->dev, NULL)) | |
1059 | 1059 | snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); |
1060 | 1060 | |
1061 | 1061 | if (driver->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