diff options
| -rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f219b2f7ee68..f81c5976b961 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
| @@ -1096,7 +1096,7 @@ static int soc_probe_codec(struct snd_soc_card *card, | |||
| 1096 | } | 1096 | } |
| 1097 | 1097 | ||
| 1098 | /* If the driver didn't set I/O up try regmap */ | 1098 | /* If the driver didn't set I/O up try regmap */ |
| 1099 | if (!codec->control_data) | 1099 | if (!codec->write && dev_get_regmap(codec->dev, NULL)) |
| 1100 | snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); | 1100 | snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); |
| 1101 | 1101 | ||
| 1102 | if (driver->controls) | 1102 | if (driver->controls) |
