-
Notifications
You must be signed in to change notification settings - Fork 11
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
openat(AT_FDCWD, "/dev/dsp", O_RDWR) = -1 EINVAL (Invalid argument) #17
Comments
Lines 216 to 228 in 72f82cc
Does your system perhaps only have output devices? |
I do not think so? This is tandart desktop motherboard with integrated sound and hdmi (unused) hanging from gt710 gpu ...
While I have aloop setup for recording outgoing sound, it may interfere ..... |
so, making capture device name "sysdefault" instead of "default" fixes "Device busy" err in MainActor but osstest now tests more and errs more:
so I guess "fix" for such non-standart configs is to make alsa device configureble, may be via env variable? |
Yes, absolutely. Making the ALSA device configurable would be ideal regardless of any errors that may appear when using the default one. Out of curiosity, what happens if you replace |
I think I force-disabled "pulse" device for alsa (because it was hiding real muxer controls) by removing its config file .... |
while I tested it with "pulse" and playback and tests still works like they did with "sysdefault". But I have not tested real recording functionality .... |
I was trying to see why old proprietary application was failing to play sound with osspd (self compiled on Slackware 15.0 i586 with libfuse3 3.16.2 recompiled from -current).
It turned out it was using openat with O_RDWR argument, while sox/mplayer were using O_WRONLY and thus were unaffected by this bug.
Actually, tests seems to fail for ro case too:
git commit 72f82cc
I enabled alsa provider because I do not use pulseaudio normally.
I also set
/etc/modprobe.d/soundcore.conf
with single line
options soundcore preclaim_oss=0
proprietary application in question:
https://web.archive.org/web/20060615000000*/http://www.linuxmedialabs.com/LMLCD/contrib/RPMS/MainActor-3.6-5.i386.rpm
extract into /opt (I used midnight commander)
You can see what it tries to do with /dev/dsp by using
strace -P /dev/dsp app
kernel level OSS emulation with snd-pcm-oss module as itself works, aoss not.
Not sure from where this EINVAL comes? I tried running app and tests with sudo just in case, but they fail like for normal user.
you can try to compile dsp_info program from this page:
https://www.gbppr.net/guerrilla.net/reference/dsp/prog_dsp.htm
it shows similar error by default but if you set flag for openat to O_WRONLY it works.
The text was updated successfully, but these errors were encountered: