Keyboard Shortcuts
Likes
Search
#sBitx WM8731 Codec
#sBitx
Yeap, that would be possible. I wrote about this some months ago. The WM8731 alsa driver itself is a good source of information.
toggle quoted message
Show quoted text
Rafael PU2UIT On 9/3/23 18:31, Mark Erbaugh wrote:
Has anyone considered not use the Linux sound drivers for the WM8731 codec, but instead reading / writing the dat directly to / from the codec directly using I2S? |
Mark, There is little to be gained and much to be lost with a user space driver. I started that way and it was very unstable. The instructions are? - f On Mon, Sep 4, 2023, 5:14 AM Mark Erbaugh <mark.election@...> wrote: Yes, I plan on looking at the driver source. Do you know if the driver uses DMA? I know with the Raspberry Pi Pico, DMA can be used to reduce the load on the main processor and improve timing. |
This is the kind of feedback I am looking for. Thanks. Speaking of that, is there a way to reset the codec in those situations other than a reboot or power cycle? |
Mark, This is a lingering problem. I too don't know the answer. My safe assumption is to always blame our own code rather than the driver. Next time, it lands in that funk, I will run aplay and arecord to see if they are showing the same problem. - f On Mon, Sep 4, 2023, 1:06 PM Mark Erbaugh <mark.election@...> wrote:
|
Hi all,
This is the kind of feedback I am looking for. Thanks.You would lose the ability to easily "genlock" (tru hwtimer aloop module parameter) the alsa loopback to the actual wm8731 alsa device. I tried a bit to get rid of alsa, and it would be a not small work. FWIW, I think the battery backed RTC should be setting the system clock, so it¡¯s time would be available to all programs, and I have modified my RPi configuration accordingly.I don't see any reason why you can not use other ALSA devices. You can - just make sure the order they are brought up so not to confuse userland. - Rafael |
Btw, I've seem some wm8731 lock-ups indeed. We should properly solve the issue or add a workaround to the driver itself, instead of bringing everything to userland (which indeed would not solve the problem... just make a "stop and start again" procedure easier).
toggle quoted message
Show quoted text
Anyway, if you really want to get rid of ALSA, lemme know, I also want, I just did not have the time to understand which interfaces to keep kernel side and how to interact to userland. - Rafael On 9/4/23 11:22, Rafael Diniz wrote:
Hi all,This is the kind of feedback I am looking for. Thanks.You would lose the ability to easily "genlock" (tru hwtimer aloop module parameter) the alsa loopback to the actual wm8731 alsa device. I tried a bit to get rid of alsa, and it would be a not small work. |
On Mon, Sep 4, 2023 at 06:23 AM, Rafael Diniz wrote:
I don't see any reason why you can not use other ALSA devices. You can - just make sure the order they are brought up so not to confuse userland. Again, sorry if I'm digging up an old thread, but the topic popped up again. |