From 44051ef9f32e5774c5556fda4dae56a3f5641d30 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Wed, 1 Aug 2012 20:05:47 +0100 Subject: [PATCH] --- yaml --- r: 321365 b: refs/heads/master c: 98d3088e534a2a61f6690b5426909b0c3b57a785 h: refs/heads/master i: 321363: 1ce8f9340529c2e7857aef37aac100d4295c86ed v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 10c52cf0e309..d370399b2386 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9d40e5582c9c4cfb6977ba2a0ca9c2ed82c56f21 +refs/heads/master: 98d3088e534a2a61f6690b5426909b0c3b57a785 diff --git a/trunk/sound/soc/soc-core.c b/trunk/sound/soc/soc-core.c index f219b2f7ee68..f81c5976b961 100644 --- a/trunk/sound/soc/soc-core.c +++ b/trunk/sound/soc/soc-core.c @@ -1096,7 +1096,7 @@ static int soc_probe_codec(struct snd_soc_card *card, } /* If the driver didn't set I/O up try regmap */ - if (!codec->control_data) + if (!codec->write && dev_get_regmap(codec->dev, NULL)) snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP); if (driver->controls)