All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: cs4265: SOC_SINGLE register value error fix
@ 2018-08-26 22:58 Matt Flax
  2018-08-26 22:58 ` [PATCH 2/3] ASoC: cs4265: Add native 32bit I2S transport Matt Flax
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Matt Flax @ 2018-08-26 22:58 UTC (permalink / raw)
  To: Mark Brown, alsa-devel, Brian Austin, Paul Handrigan, ckeepax; +Cc: Matt Flax

The cs4265 driver declares the "MMTLR Data Switch" register setting with
a 0 register value rather then the 0x12 register (CS4265_SPDIF_CTL2).
This incorrect value causes alsamixer to fault with the output :
cannot load mixer controls: Input/output error

This patch corrects the register value. alsamixer now runs.

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

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index 275677de..15b4ae04 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -157,8 +157,7 @@ static const struct snd_kcontrol_new cs4265_snd_controls[] = {
 	SOC_SINGLE("Validity Bit Control Switch", CS4265_SPDIF_CTL2,
 				3, 1, 0),
 	SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),
-	SOC_SINGLE("MMTLR Data Switch", 0,
-				1, 1, 0),
+	SOC_SINGLE("MMTLR Data Switch", CS4265_SPDIF_CTL2, 0, 1, 0),
 	SOC_ENUM("Mono Channel Select", spdif_mono_select_enum),
 	SND_SOC_BYTES("C Data Buffer", CS4265_C_DATA_BUFF, 24),
 };
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [PATCH 1/3] ASoC: cs4265: SOC_SINGLE register value error fix
@ 2018-08-26 22:55 Matt Flax
  2018-08-26 22:55 ` [PATCH 2/3] ASoC: cs4265: Add native 32bit I2S transport Matt Flax
  0 siblings, 1 reply; 15+ messages in thread
From: Matt Flax @ 2018-08-26 22:55 UTC (permalink / raw)
  To: Mark Brown, alsa-devel, Brian Austin, Paul Handrigan, ckeepax; +Cc: Matt Flax

From: Matt Flax <flatmax@flatmax.org>

The cs4265 driver declares the "MMTLR Data Switch" register setting with
a 0 register value rather then the 0x12 register (CS4265_SPDIF_CTL2).
This incorrect value causes alsamixer to fault with the output :
cannot load mixer controls: Input/output error

This patch corrects the register value. alsamixer now runs.

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

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index 275677de..15b4ae04 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -157,8 +157,7 @@ static const struct snd_kcontrol_new cs4265_snd_controls[] = {
 	SOC_SINGLE("Validity Bit Control Switch", CS4265_SPDIF_CTL2,
 				3, 1, 0),
 	SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),
-	SOC_SINGLE("MMTLR Data Switch", 0,
-				1, 1, 0),
+	SOC_SINGLE("MMTLR Data Switch", CS4265_SPDIF_CTL2, 0, 1, 0),
 	SOC_ENUM("Mono Channel Select", spdif_mono_select_enum),
 	SND_SOC_BYTES("C Data Buffer", CS4265_C_DATA_BUFF, 24),
 };
-- 
2.17.1

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

end of thread, other threads:[~2018-08-29  8:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-26 22:58 [PATCH 1/3] ASoC: cs4265: SOC_SINGLE register value error fix Matt Flax
2018-08-26 22:58 ` [PATCH 2/3] ASoC: cs4265: Add native 32bit I2S transport Matt Flax
2018-08-27  8:28   ` Charles Keepax
2018-08-27  9:51     ` Matt Flax
2018-08-28 18:56     ` Mark Brown
2018-08-28 23:31       ` Matt Flax
2018-08-29  0:26         ` Matt Flax
2018-08-29  8:22         ` Charles Keepax
2018-08-26 22:58 ` [PATCH 3/3] ASoC: cs4265: Add a SPDIF enable actl Matt Flax
2018-08-27  8:24   ` Charles Keepax
2018-08-27  9:52     ` Matt Flax
2018-08-27  8:30 ` [PATCH 1/3] ASoC: cs4265: SOC_SINGLE register value error fix Charles Keepax
2018-08-28 18:57 ` Mark Brown
2018-08-28 23:28   ` Matt Flax
  -- strict thread matches above, loose matches on Subject: below --
2018-08-26 22:55 Matt Flax
2018-08-26 22:55 ` [PATCH 2/3] ASoC: cs4265: Add native 32bit I2S transport Matt Flax

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.