alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* cs4265 : alsactl store and "C data buffer" fails
@ 2019-05-07  1:06 Matt Flax
  2019-05-07  6:08 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Flax @ 2019-05-07  1:06 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org, Charles Keepax

Hi,

When alsactl store is run with a cs4265 chip, the following error occurs 
(from https://github.com/Audio-Injector/Ultra/issues/25) :

$ sudo alsactl store
alsactl: get_control:256: Cannot read control '2,0,0,C Data Buffer,0': 
Input/output error


Upon commenting out the C data buffer control it works :

https://github.com/torvalds/linux/blob/master/sound/soc/codecs/cs4265.c#L163


Can you suggest a suitable method for fixing this bug ?


thanks

Matt

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

* Re: cs4265 : alsactl store and "C data buffer" fails
  2019-05-07  1:06 cs4265 : alsactl store and "C data buffer" fails Matt Flax
@ 2019-05-07  6:08 ` Clemens Ladisch
  2019-05-08  6:34   ` Matt Flax
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2019-05-07  6:08 UTC (permalink / raw)
  To: alsa-devel

Matt Flax wrote:
> When alsactl store is run with a cs4265 chip, the following error occurs (from https://github.com/Audio-Injector/Ultra/issues/25) :
>
> $ sudo alsactl store
> alsactl: get_control:256: Cannot read control '2,0,0,C Data Buffer,0': Input/output error

This sounds like a bug in cs4265_readable_register(); try replacing CS4265_SPDIF_CTL2
with CS4265_MAX_REGISTER.


Regards,
Clemens

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

* Re: cs4265 : alsactl store and "C data buffer" fails
  2019-05-07  6:08 ` Clemens Ladisch
@ 2019-05-08  6:34   ` Matt Flax
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Flax @ 2019-05-08  6:34 UTC (permalink / raw)
  To: Clemens Ladisch, alsa-devel

Thanks Clemens for your guidance.

It worked !!!

I have posted the patch.

On 7/5/19 4:08 pm, Clemens Ladisch wrote:
> Matt Flax wrote:
>> When alsactl store is run with a cs4265 chip, the following error occurs (from https://github.com/Audio-Injector/Ultra/issues/25) :
>>
>> $ sudo alsactl store
>> alsactl: get_control:256: Cannot read control '2,0,0,C Data Buffer,0': Input/output error
> This sounds like a bug in cs4265_readable_register(); try replacing CS4265_SPDIF_CTL2
> with CS4265_MAX_REGISTER.
>
>
> Regards,
> Clemens
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2019-05-08  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07  1:06 cs4265 : alsactl store and "C data buffer" fails Matt Flax
2019-05-07  6:08 ` Clemens Ladisch
2019-05-08  6:34   ` Matt Flax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).