[Bug 240043] [linux-c7-alsa] how to make it work?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 22 19:19:19 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240043
Bug ID: 240043
Summary: [linux-c7-alsa] how to make it work?
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: h2+fbsdports at fsfe.org
Thanks for updating the default linux compat to -c7. I have some very hopeful
results with a couple of games.
However, I just cannot get sound working through alsa which a lot of the games
(anything unity based) depend on. I know that sound through linux-compat works
in general because things that use OpenAL like the unigine ports work.
My Setup:
# pkg info | grep alsa
alsa-lib-1.1.2_2 ALSA compatibility library
alsa-plugins-1.1.1_6 ALSA compatibility library plugins
alsa-utils-1.1.2 ALSA compatibility utils
linux-c7-alsa-lib-1.1.6 Advanced Linux Sound Architecture libraries
(Linux CentOS 7.6.1810)
linux-c7-alsa-plugins-oss-1.1.6 OSS plugin for ALSA (Linux CentOS 7.6.1810)
linux-c7-alsa-utils-1.1.6 Advanced Linux Sound Architecture utilities
(Linux CentOS 7.6.1810)
% freebsd-version
12.0-STABLE
% pkg info | grep nvidia
gstreamer-plugins-vdpau-0.10.23_3,3 Gstreamer nvidia vdpau plugin
nvidia-driver-390.87_3 NVidia graphics card binary drivers for hardware
OpenGL rendering
nvidia-settings-430.14 Display Control Panel for X NVidia driver
Here's what I have tried:
Native FreeBSD alsa speaker-test works:
% speaker-test
speaker-test 1.1.2
Wiedergabe-Gerät ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle
Verwende 16 Oktaven rosa Rauschen
Rate ist 48000 Hz (angefordert: 48000 Hz)
Puffergröße von 16 bis 65536
Periodengröße von 8 bis 32768
Verwende maximale Puffergröße 65536
Perioden = 4
gesetzt: period_size = 16384
gesetzt: buffer_size = 65536
Linux speaker-test fails:
% /compat/linux/usr/bin/speaker-test
speaker-test 1.1.6
Wiedergabe-Gerät ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle
Verwende 16 Oktaven rosa Rauschen
ALSA lib conf.c:3639:(config_file_open) cannot access file
/etc/alsa/conf.d/50-oss.conf
ALSA lib conf.c:3559:(snd_config_hooks_call) function snd_config_hook_load
returned error: Datei oder Verzeichnis nicht gefunden
ALSA lib conf.c:4013:(snd_config_update_r) hooks failed, removing configuration
Calling speaker test from inside a chroot on /compat/linux fails with a
different problem:
bash-4.2# speaker-test
speaker-test 1.1.6
Wiedergabe-Gerät ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle
Verwende 16 Oktaven rosa Rauschen
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver
returned error: Datei oder Verzeichnis nicht gefunden
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned
error: Datei oder Verzeichnis nicht gefunden
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned
error: Datei oder Verzeichnis nicht gefunden
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: Datei oder Verzeichnis
nicht gefunden
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
Fehler beim Öffnen des Gerätes: -2, Datei oder Verzeichnis nicht gefunden
Here's what I did to make speaker-test work:
* remove /compat/linux/etc/alsa/conf.d/50-oss.conf
* copy /usr/local/etc/asound.conf to /compat/linux/etc/etc/asound.conf
* mount -t devfs none /compat/linux/dev/
Now speaker-test works, both calling it from the host and from inside a chroot
in the linux directory.
BUT the games still don't have audio :( And now there is nothing in the logs,
it just looks like it will work, but it won't.
Any further things I can try?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list