All of lore.kernel.org
 help / color / mirror / Atom feed
From: wangweidong.a@awinic.com
To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	perex@perex.cz, tiwai@suse.com, wangweidong.a@awinic.com,
	shumingf@realtek.com, rf@opensource.cirrus.com,
	herve.codina@bootlin.com, ckeepax@opensource.cirrus.com,
	13916275206@139.com, ryans.lee@analog.com,
	linus.walleij@linaro.org, sebastian.reichel@collabora.com,
	ajye_huang@compal.corp-partner.google.com,
	harshit.m.mogalapalli@oracle.com, arnd@arndb.de,
	colin.i.king@gmail.com, dan.carpenter@linaro.org,
	trix@redhat.com, liweilei@awinic.com,
	alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: yijiangtao@awinic.com
Subject: [PATCH V2 2/4] ASoC: codecs: Modify max_register usage error
Date: Fri, 20 Oct 2023 16:34:24 +0800	[thread overview]
Message-ID: <20231020083426.302925-3-wangweidong.a@awinic.com> (raw)
In-Reply-To: <20231020083426.302925-1-wangweidong.a@awinic.com>

From: Weidong Wang <wangweidong.a@awinic.com>

Modify the value of max_register, otherwirse
the AW88261_EFRL1_REG register will not be
accessible.

Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
---
 sound/soc/codecs/aw88261.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/aw88261.c b/sound/soc/codecs/aw88261.c
index a697b5006b45..0db7a0a3c179 100644
--- a/sound/soc/codecs/aw88261.c
+++ b/sound/soc/codecs/aw88261.c
@@ -20,7 +20,7 @@
 static const struct regmap_config aw88261_remap_config = {
 	.val_bits = 16,
 	.reg_bits = 8,
-	.max_register = AW88261_REG_MAX - 1,
+	.max_register = AW88261_REG_MAX,
 	.reg_format_endian = REGMAP_ENDIAN_LITTLE,
 	.val_format_endian = REGMAP_ENDIAN_BIG,
 };
-- 
2.41.0


  parent reply	other threads:[~2023-10-20  8:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20  8:34 [PATCH V2 0/4] ASoC: codecs: Add aw88399 amplifier driver wangweidong.a
2023-10-20  8:34 ` [PATCH V2 1/4] ASoC: dt-bindings: Add schema for "awinic,aw88399" wangweidong.a
2023-10-20  8:34 ` wangweidong.a [this message]
2023-10-20  8:34 ` [PATCH V2 3/4] ASoC: codecs: Add code for bin parsing compatible with aw88399 wangweidong.a
2023-10-23 12:29   ` Mark Brown
2023-10-24  7:14     ` [PATCH V2 0/4] ASoC: codecs: Add aw88399 amplifier driver wangweidong.a
2023-10-24  7:14       ` [PATCH V2 1/4] ASoC: dt-bindings: Add schema for "awinic,aw88399" wangweidong.a
2023-10-24  7:14       ` [PATCH V2 2/4] ASoC: codecs: Modify max_register usage error wangweidong.a
2023-10-24  7:14       ` [PATCH V2 3/4] ASoC: codecs: Add code for bin parsing compatible with aw88399 wangweidong.a
2023-10-24  7:14       ` [PATCH V2 4/4] ASoC: codecs: Add aw88399 amplifier driver wangweidong.a
2023-10-24 12:28       ` [PATCH V2 0/4] " Mark Brown
2023-10-24  7:19     ` [PATCH V2 3/4] ASoC: codecs: Add code for bin parsing compatible with aw88399 wangweidong.a
2023-10-24 12:42       ` Mark Brown
2023-10-24 13:57         ` Mark Brown
2023-10-25  8:58           ` wangweidong.a
2023-10-20  8:34 ` [PATCH V2 4/4] ASoC: codecs: Add aw88399 amplifier driver wangweidong.a
2023-10-24 13:55 ` [PATCH V2 0/4] " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231020083426.302925-3-wangweidong.a@awinic.com \
    --to=wangweidong.a@awinic.com \
    --cc=13916275206@139.com \
    --cc=ajye_huang@compal.corp-partner.google.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=colin.i.king@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=dan.carpenter@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=harshit.m.mogalapalli@oracle.com \
    --cc=herve.codina@bootlin.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liweilei@awinic.com \
    --cc=perex@perex.cz \
    --cc=rf@opensource.cirrus.com \
    --cc=robh+dt@kernel.org \
    --cc=ryans.lee@analog.com \
    --cc=sebastian.reichel@collabora.com \
    --cc=shumingf@realtek.com \
    --cc=tiwai@suse.com \
    --cc=trix@redhat.com \
    --cc=yijiangtao@awinic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.