From patchwork Sat Feb 22 17:27:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 3701701 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BB6749F2EC for ; Sat, 22 Feb 2014 17:27:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9804201DD for ; Sat, 22 Feb 2014 17:27:43 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7ED02201BC for ; Sat, 22 Feb 2014 17:27:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E85262625D4; Sat, 22 Feb 2014 18:27:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id CA0EB261B28; Sat, 22 Feb 2014 18:27:30 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7CFD3261B2A; Sat, 22 Feb 2014 18:27:28 +0100 (CET) Received: from smtp-out-015.synserver.de (smtp-out-129.synserver.de [212.40.185.129]) by alsa0.perex.cz (Postfix) with ESMTP id 54B38261B0C for ; Sat, 22 Feb 2014 18:27:21 +0100 (CET) Received: (qmail 4792 invoked by uid 0); 22 Feb 2014 17:27:18 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 4684 Received: from ppp-46-244-149-120.dynamic.mnet-online.de (HELO lars-adi-laptop.fritz.box) [46.244.149.120] by 217.119.54.73 with SMTP; 22 Feb 2014 17:27:17 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Sat, 22 Feb 2014 18:27:17 +0100 Message-Id: <1393090037-8824-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 Cc: Johannes Stezenbach , Lars-Peter Clausen , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: sta32x: Fix cache sync X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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"). Signed-off-by: Lars-Peter Clausen --- sound/soc/codecs/sta32x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;