Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2019 19:19:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240043] [linux-c7-alsa] how to make it work?
Message-ID:  <bug-240043-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240043

            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@FreeBSD.org
          Reporter: h2+fbsdports@fsfe.org

Thanks for updating the default linux compat to -c7. I have some very hopef=
ul
results with a couple of games.

However, I just cannot get sound working through alsa which a lot of the ga=
mes
(anything unity based) depend on. I know that sound through linux-compat wo=
rks
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 hard=
ware
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=C3=A4t ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kan=C3=A4le
Verwende 16 Oktaven rosa Rauschen
Rate ist 48000 Hz (angefordert: 48000 Hz)
Puffergr=C3=B6=C3=9Fe von 16 bis 65536
Periodengr=C3=B6=C3=9Fe von 8 bis 32768
Verwende maximale Puffergr=C3=B6=C3=9Fe 65536
Perioden =3D 4
gesetzt: period_size =3D 16384
gesetzt: buffer_size =3D 65536



Linux speaker-test fails:
% /compat/linux/usr/bin/speaker-test

speaker-test 1.1.6

Wiedergabe-Ger=C3=A4t ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kan=C3=A4le
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 configura=
tion


Calling speaker test from inside a chroot on /compat/linux fails with a
different problem:
bash-4.2# speaker-test=20

speaker-test 1.1.6

Wiedergabe-Ger=C3=A4t ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kan=C3=A4le
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 return=
ed
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 Verzeic=
hnis
nicht gefunden
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
Fehler beim =C3=96ffnen des Ger=C3=A4tes: -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 chr=
oot
in the linux directory.

BUT the games still don't have audio :( And now there is nothing in the log=
s,
it just looks like it will work, but it won't.

Any further things I can try?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240043-7788>