Date:2012-08-01 21:05:47 (11 years 3 months ago)
Author:Mark Brown
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 <>
Tested-by: Peter Ujfalusi <>
Files: sound/soc/soc-core.c (1 diff)

Change Details

10551055    }
10571057    /* 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))
10591059        snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
10611061    if (driver->controls)

Archive Download the corresponding diff file