[alsa-devel] cs4265 : alsactl store and "C data buffer" fails
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
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
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
participants (2)
-
Clemens Ladisch
-
Matt Flax