[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: ASoC: sta32x: Fix cache sync
From: "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date: 2014-02-28 22:55:16
Message-ID: 20140228225516.57290660CCC () gitolite ! kernel ! org
[Download RAW message or body]
Gitweb: http://git.kernel.org/linus/;a=commit;h=70ff00f82a6af0ff68f8f7b411738634ce2f20d0
Commit: 70ff00f82a6af0ff68f8f7b411738634ce2f20d0
Parent: 025c3fa9256d4c54506b7a29dc3befac54f5c68d
Author: Lars-Peter Clausen <lars@metafoo.de>
AuthorDate: Sat Feb 22 18:27:17 2014 +0100
Committer: Mark Brown <broonie@linaro.org>
CommitDate: Sun Feb 23 10:48:55 2014 +0900
ASoC: sta32x: Fix cache sync
codec->control_data contains a pointer to the regmap struct of the device, not
to the device private data. Use snd_soc_codec_get_drvdata() instead.
The issue was introduced in commit 29fdf4fbbe ("ASoC: sta32x: Convert to
regmap").
Fixes: 29fdf4fbbe (ASoC: sta32x: Convert to regmap)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
---
sound/soc/codecs/sta32x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c
index 42c5b45..ea78c17 100644
--- a/sound/soc/codecs/sta32x.c
+++ b/sound/soc/codecs/sta32x.c
@@ -331,7 +331,7 @@ static int sta32x_sync_coef_shadow(struct snd_soc_codec *codec)
static int sta32x_cache_sync(struct snd_soc_codec *codec)
{
- struct sta32x_priv *sta32x = codec->control_data;
+ struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec);
unsigned int mute;
int rc;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic