-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmap error with alsa::direct::pcm::Status on Raspberry Pi #34
Comments
Found it - apparently this mmap of control and status is only available on X86, ALPHA and PowerPC :-( |
Ok, so I've made a SyncPtrStatus struct for the other archs. I should probably do something generic across all ways to read status...but for now this will do... |
Cool! I'm looking at how to update the alsa_direct_status_test.rs code and just pushed a commit. Line 631 in aa33d98
On both x84_64 and arm, it returns |
The syscall is made when you call
Or just copy-paste |
Right! |
Hi @diwic!
Following on #33 (comment)
Here is a test program:
https://github.com/supercurio/asrc-rs-research/blob/master/src/alsa_direct_status_test.rs
Runs on a amd64 desktop Ubuntu 17.04 with all ALSA cards.
Fails with
Error("mmap (of driver memory)", Sys(ENXIO))', libcore/result.rs:945:5
on Raspberry Pi 3+ 4.14.30-v7+ capture and playback with:The text was updated successfully, but these errors were encountered: