No sound on all Snapcraft application

PrototypeIndustry

New Member
Joined
Aug 5, 2019
Messages
3
Reaction score
0
Credits
0
Hey Everyone
So Here is the problem i’m on the raspbian OS and I’ve installed a few applications with canonical’s snapcraft store .
The problem is that There is no sound in any of these applications . For exemple, when I launch retroarch with " snap run retroarch" the application work but I have no sound and I have this message in the terminal;

ALSA lib conf.c:3750: (snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf

ALSA lib pcm.c:2266: (snd_pcm_open_noupdate) Unknown PCM default

ALSA lib conf.c:3750: (snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf

ALSA lib seq.c:935: (snd_seq_open_noupdate) Unknown SEQ default


Someone told me to those packages but it is said that it is impossible to find it even if I update my system.
sudo apt-get remove alsa-utils
sudo apt-get remove alsamixer
sudo apt-get install alsa-utils
sudo apt-get install alsamixer

I've also use chmod to make the alsa file accessible but it didn't work.
I've also make my account to the audiogroup but this didn't work too.

Here is my snap connections with a snap application for exemple, retroarch if that can help.

So is there anybody who knows what is the problem is and how to solve it?
 

Attachments

  • retroarch.png
    retroarch.png
    194.5 KB · Views: 678


Hello,

I don't know if you are still following but since i'm going to be arround this forum for some time maybe i can help you.

Does the "/usr/share/alsa/alsa.conf" file exists on your system ?
I think there is something wrong with your alsa configuration since retroarch can't find the default device.

Alsa is part of the kernel so unless you are missing some kernel modules it's more likely to be a configuration problem.

Can you give us the output of "lsmod" command ?

If you type "aplay -l" (it's a lower L), what's the output ?
 
Actually having this exact issue. Was using the standard Ubuntu (18.04) signed kernel. Tried latest 5.2.20 kernel, but same result. Also tried reinstalling alsa to no avail.

Thanks in advance for any help.

```
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3271 Analog [ALC3271 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
```

alsa.conf file is readable by all, but the owner/group is root.

```
$ stat /usr/share/alsa/alsa.conf
File: /usr/share/alsa/alsa.conf
Size: 9663 Blocks: 24 IO Block: 4096 regular file
Device: 10303h/66307d Inode: 3153 Links: 1
Access: (0744/-rwxr--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-10-11 00:02:08.045073791 +0200
Modify: 2018-12-19 05:25:25.000000000 +0100
Change: 2019-10-10 23:55:43.109599776 +0200
Birth: -
```

lsmod output matching "hda" just in case.

```
$ lsmod | grep hda
snd_hda_codec_hdmi 61440 1
snd_soc_hdac_hda 24576 1 snd_soc_skl
snd_hda_ext_core 32768 2 snd_soc_hdac_hda,snd_soc_skl
snd_soc_core 241664 2 snd_soc_hdac_hda,snd_soc_skl
snd_hda_codec_realtek 118784 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
ledtrig_audio 16384 3 snd_hda_codec_generic,snd_hda_codec_realtek,dell_laptop
snd_hda_intel 49152 6
snd_hda_codec 131072 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core 90112 8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_soc_skl
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 106496 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd 86016 25 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
```

Kernel model in use.

```
lspci -nnk | grep -A2 Audio
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
Subsystem: Dell Sunrise Point-LP HD Audio [1028:07e6]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl
```
 
Hello,

I think its all related to the fact that alsa lib can't read the alsa configuration entry poin which is /usr/share/alsa/alsa.conf.

I've looked at the alsa lib source code and unfortunatly there are no logging of the errno on the "stat" function call that fails so we won't be able to know exacly why it fails (unless you are will to compile alsa lib...).

Can you make sure that all the directories along the path have the +x flag set for all users ?
Code:
# stat /usr
# stat /usr/share
# stat /usr/share/alsa
 
Hey Julien CC, I forgot that problem for a few month but now that I want to use Snapcraft applications again , The problem is still here.
Thanks to trying to resolve the problem.

So, First, Yes /usr/share/alsa/alsa.conf exist on my system

and lsmod command give me that

Module Size Used by
hid_generic 16384 0
usbhid 45056 0
hid 94208 2 hid_generic,usbhid
ctr 16384 2
ccm 20480 1
fuse 90112 3
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
arc4 16384 2
snd_hda_codec_hdmi 40960 1
ath5k 139264 0
acer_wmi 20480 0
ath 24576 1 ath5k
sparse_keymap 16384 1 acer_wmi
mac80211 552960 1 ath5k
joydev 20480 0
coretemp 16384 0
sg 32768 0
pcmcia 49152 0
pcspkr 16384 0
serio_raw 16384 0
cfg80211 450560 3 mac80211,ath,ath5k
lpc_ich 20480 0
tifm_7xx1 16384 0
mfd_core 16384 1 lpc_ich
nsc_ircc 24576 0
tifm_core 16384 1 tifm_7xx1
snd_hda_codec_realtek 73728 1
snd_hda_codec_generic 65536 1 snd_hda_codec_realtek
rfkill 20480 4 acer_wmi,cfg80211
yenta_socket 40960 0
pcmcia_rsrc 20480 1 yenta_socket
pcmcia_core 20480 3 yenta_socket,pcmcia,pcmcia_rsrc
snd_hda_intel 32768 4
snd_hda_codec 94208 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core 57344 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_pcm_oss 45056 0
ac 16384 0
snd_mixer_oss 24576 1 snd_pcm_oss
irda 151552 1 nsc_ircc
crc_ccitt 16384 1 irda
battery 20480 0
snd_pcm 86016 5 snd_pcm_oss,snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer 28672 1 snd_pcm
snd 57344 18 snd_pcm_oss,snd_hda_intel,snd_hwdep,snd_mixer_oss,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore 16384 1 snd
shpchp 32768 0
evdev 20480 18
binfmt_misc 20480 1
squashfs 45056 29
loop 28672 58
parport_pc 28672 0
ppdev 20480 0
sunrpc 249856 1
lp 20480 0
parport 40960 3 lp,parport_pc,ppdev
ip_tables 20480 0
x_tables 20480 1 ip_tables
autofs4 36864 2
ext4 503808 1
crc16 16384 1 ext4
jbd2 77824 1 ext4
crc32c_generic 16384 2
fscrypto 24576 1 ext4
ecb 16384 0
xts 16384 0
lrw 16384 0
gf128mul 20480 2 lrw,xts
ablk_helper 16384 0
cryptd 20480 1 ablk_helper
aes_i586 20480 2
mbcache 16384 2 ext4
sr_mod 24576 0
cdrom 49152 1 sr_mod
sd_mod 40960 3
ata_generic 16384 0
psmouse 122880 0
ata_piix 32768 0
ahci 36864 2
libahci 28672 1 ahci
i2c_i801 24576 0
i2c_smbus 16384 1 i2c_i801
libata 192512 4 ahci,ata_piix,libahci,ata_generic
scsi_mod 180224 4 sd_mod,libata,sr_mod,sg
firewire_ohci 36864 0
sdhci_pci 28672 0
sdhci 40960 1 sdhci_pci
mmc_core 118784 2 sdhci,sdhci_pci
firewire_core 57344 1 firewire_ohci
i915 1183744 7
crc_itu_t 16384 1 firewire_core
i2c_algo_bit 16384 1 i915
drm_kms_helper 114688 1 i915
tg3 159744 0
ptp 20480 1 tg3
pps_core 20480 1 ptp
libphy 40960 1 tg3
ehci_pci 16384 0
uhci_hcd 40960 0
ehci_hcd 65536 1 ehci_pci
drm 253952 8 i915,drm_kms_helper
usbcore 184320 4 usbhid,ehci_hcd,uhci_hcd,ehci_pci
usb_common 16384 1 usbcore
wmi 16384 1 acer_wmi
thermal 20480 0
video 36864 2 acer_wmi,i915
button 16384 1 i915


The aplay -l give me that

**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: Intel [HDA Intel], périphérique 0: ALC268 Analog [ALC268 Analog]
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
 
Hello,

I think its all related to the fact that alsa lib can't read the alsa configuration entry poin which is /usr/share/alsa/alsa.conf.

I've looked at the alsa lib source code and unfortunatly there are no logging of the errno on the "stat" function call that fails so we won't be able to know exacly why it fails (unless you are will to compile alsa lib...).

Can you make sure that all the directories along the path have the +x flag set for all users ?
Code:
# stat /usr
# stat /usr/share
# stat /usr/share/alsa

stat /usr/share/alsa give that

Fichier : /usr/share/alsa
Taille : 4096 Blocs : 8 Blocs d'E/S : 4096 répertoire
Périphérique : 801h/2049d Inœud : 5377426 Liens : 9
Accès : (0755/drwxr-xr-x) UID : ( 0/ root) GID : ( 0/ root)
Accès : 2019-11-25 22:16:09.974156580 +0100
Modif. : 2019-08-09 21:48:30.581387041 +0200
Changt : 2019-08-09 21:48:30.581387041 +0200
Créé : -
 


Top