Open baconYao opened 1 year ago
One interesting thing is that if I install the alsa-utils
or alsa-ucm-conf
deb package on Ubuntu Server manually (not in checkbox shell), then the case can be executed and the I can hear the sound via headset without any problem. But I still got the output like below
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/2020/usr/share/alsa/pcm/default.conf
Because I found the /usr/share/alsa
path will appear after installing those alsa related deb package.
Another important thing is the path,/usr/share/alsa
, exists in Ubuntu Server 20.04 and UC20 by default since the deb package alsa-ucm-conf
is default package. So the case audio/alsa-playback
can be executed on Server 20.04 and UC20 normally.
the alsa-playback and alsa-loopback tests passed when if we install alsa-utils debian package.
We have integrated the alsa-utils in checkbox-ce-oem snap and added a workaround to bind the alsa config in checkbox snap to system. And the both alsa-playback and alsa-loopback could passed. https://git.launchpad.net/~oem-qa/+git/checkbox-ce-oem/tree/snap/snapcraft.yaml#n130
@pieqq do you think the workaround is doable? Or we would like to have a better solution for this issue?
Bug Description
Some of the audio cases such as
audio/alsa-playback
,audio/alsa-loopback
are broken on Jammy.Impact image:
Ubuntu Server 22.04
andUbuntu Core22
Result
Ubuntu Server 22.04
The following result is from the output of
audio/alsa-playback
caseThe output of
$ALSA_CONFIG_PATH
is/snap/checkbox/2020/usr/share/alsa/alsa.conf:/snap/checkbox/2020/usr/share/alsa/pcm/default.conf:/snap/checkbox22/current/usr/share/alsa/alsa.conf:/snap/checkbox22/current/usr/share/alsa/pcm/default.conf
Ubuntu Core22
The following result is from the output of
audio/alsa-playback
caseThe output of
$ALSA_CONFIG_PATH
is/snap/checkbox/2034/checkbox-runtime/usr/share/alsa/alsa.conf:/snap/checkbox/2034/checkbox-runtime/usr/share/alsa/pcm/default.conf:/snap/checkbox/2034/checkbox-runtime/usr/share/alsa/alsa.conf:/snap/checkbox/2034/checkbox-runtime/usr/share/alsa/pcm/default.conf
To Reproduce
Ubuntu Server 22.04
audio/alsa-playback
incom.canonical.certification::client-cert-iot-server-22-04-manual
test planUbuntu Core22
audio/alsa-playback
incom.canonical.certification::client-cert-iot-ubuntucore-22-manual
test planEnvironment
Relevant log output
Additional context
Ubuntu Server 22.04
sosreport: sosreport-u-2022-12-15-hblcemw.zip
UC 22
sosreport: sosreport-ubuntu-2022-12-15-cynpkni.tar.gz