I have a problem.
# aplay -l
aplay: device_list:274: no soundcards found...
# alsamixer
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1528:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No such file or directory
I took the preinstalled ubuntu image from the official canonical site Ubuntu 22.04.1 LTS (Jammy Jellyfish)
and test it with 2 kernels
- Ubuntu 5.17.0-1009.10-starfive 5.17.15 - default
- Ubuntu 5.19.0-1005.7-starfive 5.19.7 - from riscv64 build of linux-starfive 5.19.0-1005.7 : Canonical Kernel Security PPA (development) : “Canonical Kernel Security Team” team
Both kernels have a problem with soundcard.
Nov 7 19:32:40 ubuntu kernel: [ 34.011187] sf-pwmdac 10440000.pwmdac: ASoC: error at snd_soc_pcm_component_new on 10440000.pwmdac: -22
Nov 7 19:32:40 ubuntu kernel: [ 34.178267] asoc-simple-card: probe of soc:snd-card failed with error -22
Nov 7 19:32:40 ubuntu kernel: [ 35.128506] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.starfive,visionfive-v1.bin failed with error -2
# lsmod | grep snd
snd_soc_wm8960 61440 0
snd_soc_simple_card 24576 0
snd_soc_simple_card_utils 40960 1 snd_soc_simple_card
snd_soc_starfive_pwmdac 20480 0
snd_soc_dmic 16384 0
snd_soc_spdif_tx 16384 0
snd_soc_spdif_rx 16384 0
snd_soc_starfive_pwmdac_transmitter 16384 0
snd_soc_core 446464 8 snd_soc_starfive_pwmdac,snd_soc_spdif_tx,snd_soc_starfive_pwmdac_transmitter,snd_soc_spdif_rx,snd_soc_simple_card_utils,snd_soc_simple_card,snd_soc_dmic,snd_soc_wm8960
snd_compress 36864 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 20480 1 snd_soc_core
snd_pcm 212992 5 snd_compress,snd_soc_simple_card_utils,snd_soc_core,snd_soc_wm8960,snd_pcm_dmaengine
snd_timer 57344 1 snd_pcm
snd 151552 5 snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_soc_wm8960
soundcore 24576 1 snd
Do you have any ideas how to fix the soundcard?