Open baconYao opened 1 year ago
Hi @pieqq
ubuntu@mtk-genio:/snap/checkbox22/current/providers/checkbox-provider-base/bin$ sudo ./alsa_test loopback -d 5
Failed to change volume: Master mixer not found.
terminate called after throwing an instance of 'Alsa::AlsaError'
what(): Failed to open device: default. No such file or directory
Aborted
ubuntu@mtk-genio:/snap/checkbox22/current/providers/checkbox-provider-base/bin$ sudo ./alsa_test list-devices
Failed to change volume: Master mixer not found.
Playback devices:
hw:CARD=mt8395evk,DEV=0
hw:CARD=mt8395evk,DEV=1
hw:CARD=mt8395evk,DEV=2
hw:CARD=mt8395evk,DEV=3
hw:CARD=mt8395evk,DEV=4
hw:CARD=mt8395evk,DEV=5
hw:CARD=mt8395evk,DEV=6
plughw:CARD=mt8395evk,DEV=0
plughw:CARD=mt8395evk,DEV=1
plughw:CARD=mt8395evk,DEV=2
plughw:CARD=mt8395evk,DEV=3
plughw:CARD=mt8395evk,DEV=4
plughw:CARD=mt8395evk,DEV=5
plughw:CARD=mt8395evk,DEV=6
default:CARD=mt8395evk
sysdefault:CARD=mt8395evk
dmix:CARD=mt8395evk,DEV=0
dmix:CARD=mt8395evk,DEV=1
dmix:CARD=mt8395evk,DEV=2
dmix:CARD=mt8395evk,DEV=3
dmix:CARD=mt8395evk,DEV=4
dmix:CARD=mt8395evk,DEV=5
dmix:CARD=mt8395evk,DEV=6
null
samplerate
speexrate
jack
oss
pulse
upmix
vdownmix
usbstream:CARD=mt8395evk
Recording devices:
hw:CARD=mt8395evk,DEV=7
hw:CARD=mt8395evk,DEV=8
hw:CARD=mt8395evk,DEV=9
hw:CARD=mt8395evk,DEV=10
hw:CARD=mt8395evk,DEV=11
hw:CARD=mt8395evk,DEV=12
hw:CARD=mt8395evk,DEV=13
hw:CARD=mt8395evk,DEV=14
hw:CARD=mt8395evk,DEV=15
plughw:CARD=mt8395evk,DEV=7
plughw:CARD=mt8395evk,DEV=8
plughw:CARD=mt8395evk,DEV=9
plughw:CARD=mt8395evk,DEV=10
plughw:CARD=mt8395evk,DEV=11
plughw:CARD=mt8395evk,DEV=12
plughw:CARD=mt8395evk,DEV=13
plughw:CARD=mt8395evk,DEV=14
plughw:CARD=mt8395evk,DEV=15
dsnoop:CARD=mt8395evk,DEV=7
dsnoop:CARD=mt8395evk,DEV=8
dsnoop:CARD=mt8395evk,DEV=9
dsnoop:CARD=mt8395evk,DEV=10
dsnoop:CARD=mt8395evk,DEV=11
dsnoop:CARD=mt8395evk,DEV=12
dsnoop:CARD=mt8395evk,DEV=13
dsnoop:CARD=mt8395evk,DEV=14
dsnoop:CARD=mt8395evk,DEV=15
null
samplerate
speexrate
jack
oss
pulse
upmix
vdownmix
usbstream:CARD=mt8395evk
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1100.
This message was autogenerated
Issue can also be reproduced on G510 Platform
CID: 202312-33026 SKU: G510 Image: genio-classic-server-2204-20240104-149.img kernel-version: 5.15.0-9000-mtk
Issue can still be reproduced on G510 Platform, get a crashed job, no sound playback through Headset jack
Submission: https://certification.canonical.com/hardware/202312-33205/submission/361475/test-results/
CID: 202312-33025 SKU: G510 Image: genio-classic-server-2204-20240319-182.img kernel-version: 5.15.0-1030-mtk
Snap Info
ubuntu@mtk-genio:~$ sudo snap list
Name Version Rev Tracking Publisher Notes
bugit 1.1 24 latest/stable pieq devmode
checkbox 4.0.0-dev139 6105 latest/beta ce-certification-qa classic
checkbox-ce-oem 0.12-jammy 148 22.04/edge ceqa classic
checkbox22 4.0.0-dev139 834 latest/beta ce-certification-qa -
Screenshot
Similar to #273 there is probably at least some Alsa config to add in the snap, but I don't know if this will be enough.
Simply test the binary inside debian and snap checkbox, it would only fail inside snap.
(checkbox-shell) ubuntu@mtk-genio:/usr/lib/checkbox-provider-base/bin$ ./alsa_test playback -d 100
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
Failed to change volume: Master mixer not found.
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
^C
(checkbox-shell) ubuntu@mtk-genio:/usr/lib/checkbox-provider-base/bin$ ./alsa_test loopback -d 100
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
Failed to change volume: Master mixer not found.
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/alsa.conf
ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /snap/checkbox/6917/usr/share/alsa/pcm/default.conf
terminate called after throwing an instance of 'Alsa::AlsaError'
what(): Failed to open device: default. No such file or directory
Aborted (core dumped)
(checkbox-shell) ubuntu@mtk-genio:/usr/lib/checkbox-provider-base/bin$ exit
exit
ubuntu@mtk-genio:/usr/lib/checkbox-provider-base/bin$ ./alsa_test loopback -d 100
Bug Description
Problem
On device 202306-31692, the
audio/alsa-loopback-automated
andaudio/alsa-loopback
jobs will run into a problem like below and it's failed eventually. No sound be played and recorded.The job
audio/alsa-playback
can be performed and I can hear the sound via headset plugged to the earphone 3.5mm Jack.Submissions:
To Reproduce
IoT Client Certification for 22.04 classic images (Automated Tests)
com.canonical.certification::client-cert-iot-server-22-04-automated
d
, then select only Perform audio/alsa-loopback-automated fromAudio tests
category, and press t to start the sessionEnvironment
Relevant log output
Additional context
Reference this comment to get the
ALSAUCMCONF-test cases.pdf
file, this can prove the functionality of Earphone playback and record is working.Test Example (For Genio 1200 EVK)
section and follow the instructions ofEarphone/Earphone Loopback
MTK Genio Wiki about G1200-evk Audio