From: Fabio Estevam Subject: [PATCH 1/3] ASoC: sglt5000: Provide the reg_stride field Date: Thu, 4 Jul 2013 18:08:48 -0300 Message-ID: <1372972130-32451-1-git-send-email-festevam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ye0-f173.google.com (mail-ye0-f173.google.com [209.85.213.173]) by alsa0.perex.cz (Postfix) with ESMTP id 976F62657DC for ; Thu, 4 Jul 2013 23:09:37 +0200 (CEST) Received: by mail-ye0-f173.google.com with SMTP id m7so508305yen.4 for ; Thu, 04 Jul 2013 14:09:36 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: broonie@kernel.org Cc: Fabio Estevam , alsa-devel@alsa-project.org, oskar@scara.com List-Id: alsa-devel@alsa-project.org From: Fabio Estevam sgtl5000 has 16-bit registers, so we need to tell regmap to use a reg_stride of two bytes. Signed-off-by: Fabio Estevam --- sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index d441559..7c99f3c 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1470,6 +1470,7 @@ static struct snd_soc_codec_driver sgtl5000_driver = { static const struct regmap_config sgtl5000_regmap = { .reg_bits = 16, .val_bits = 16, + .reg_stride = 2, .max_register = SGTL5000_MAX_REG_OFFSET, .volatile_reg = sgtl5000_volatile, -- 1.8.1.2