Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC : cs4265 : readable register too low
@ 2019-05-08  6:33 Matt Flax
  2019-05-09 10:45 ` Charles Keepax
  2019-05-13 12:30 ` Applied "ASoC : cs4265 : readable register too low" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Matt Flax @ 2019-05-08  6:33 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Brian Austin, Paul Handrigan, clemens,
	ckeepax, alsa-devel
  Cc: Matt Flax

The cs4265_readable_register function stopped short of the maximum
register.

An example bug is taken from :
https://github.com/Audio-Injector/Ultra/issues/25

Where alsactl store fails with :
Cannot read control '2,0,0,C Data Buffer,0': Input/output error

This patch fixes the bug by setting the cs4265 to have readable
registers up to the maximum hardware register CS4265_MAX_REGISTER.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
---
 sound/soc/codecs/cs4265.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index ab27d2b94d02..c0190ec59e74 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -60,7 +60,7 @@ static const struct reg_default cs4265_reg_defaults[] = {
 static bool cs4265_readable_register(struct device *dev, unsigned int reg)
 {
 	switch (reg) {
-	case CS4265_CHIP_ID ... CS4265_SPDIF_CTL2:
+	case CS4265_CHIP_ID ... CS4265_MAX_REGISTER:
 		return true;
 	default:
 		return false;
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC : cs4265 : readable register too low
  2019-05-08  6:33 [PATCH] ASoC : cs4265 : readable register too low Matt Flax
@ 2019-05-09 10:45 ` Charles Keepax
  2019-05-13 12:30 ` Applied "ASoC : cs4265 : readable register too low" to the asoc tree Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2019-05-09 10:45 UTC (permalink / raw)
  To: Matt Flax
  Cc: alsa-devel, clemens, Brian Austin, Paul Handrigan, Liam Girdwood,
	Mark Brown

On Wed, May 08, 2019 at 04:33:13PM +1000, Matt Flax wrote:
> The cs4265_readable_register function stopped short of the maximum
> register.
> 
> An example bug is taken from :
> https://github.com/Audio-Injector/Ultra/issues/25
> 
> Where alsactl store fails with :
> Cannot read control '2,0,0,C Data Buffer,0': Input/output error
> 
> This patch fixes the bug by setting the cs4265 to have readable
> registers up to the maximum hardware register CS4265_MAX_REGISTER.
> 
> Signed-off-by: Matt Flax <flatmax@flatmax.org>
> ---

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Applied "ASoC : cs4265 : readable register too low" to the asoc tree
  2019-05-08  6:33 [PATCH] ASoC : cs4265 : readable register too low Matt Flax
  2019-05-09 10:45 ` Charles Keepax
@ 2019-05-13 12:30 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2019-05-13 12:30 UTC (permalink / raw)
  To: Matt Flax
  Cc: alsa-devel, ckeepax, clemens, Brian Austin, Paul Handrigan,
	Liam Girdwood, Mark Brown

The patch

   ASoC : cs4265 : readable register too low

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From f3df05c805983427319eddc2411a2105ee1757cf Mon Sep 17 00:00:00 2001
From: Matt Flax <flatmax@flatmax.org>
Date: Wed, 8 May 2019 16:33:13 +1000
Subject: [PATCH] ASoC : cs4265 : readable register too low

The cs4265_readable_register function stopped short of the maximum
register.

An example bug is taken from :
https://github.com/Audio-Injector/Ultra/issues/25

Where alsactl store fails with :
Cannot read control '2,0,0,C Data Buffer,0': Input/output error

This patch fixes the bug by setting the cs4265 to have readable
registers up to the maximum hardware register CS4265_MAX_REGISTER.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/cs4265.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index ab27d2b94d02..c0190ec59e74 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -60,7 +60,7 @@ static const struct reg_default cs4265_reg_defaults[] = {
 static bool cs4265_readable_register(struct device *dev, unsigned int reg)
 {
 	switch (reg) {
-	case CS4265_CHIP_ID ... CS4265_SPDIF_CTL2:
+	case CS4265_CHIP_ID ... CS4265_MAX_REGISTER:
 		return true;
 	default:
 		return false;
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-13 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08  6:33 [PATCH] ASoC : cs4265 : readable register too low Matt Flax
2019-05-09 10:45 ` Charles Keepax
2019-05-13 12:30 ` Applied "ASoC : cs4265 : readable register too low" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox