Soundcard not working on ubuntu 22.04.1

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

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?

I could be wrong but I would guess that this might be the source of your problem: https://github.com/starfive-tech/linux#status

  • PWM DAC for sound through the minijack, only 16kHz samplerate for now
  • I2S [WIP]
  • TDM [WIP]

To me that looks like some of the software drivers for sound related hardware is still being worked on (WIP = Work In Progress).

That is about wifi/bluetooth and it can be ignored, at least in relation to sound. If it is annoying you, you could always add a soft link to the generic brcmfmac43430 firmware (/lib/firmware/brcm/) bin file that was successfully loaded after the board specific one failed to load (should be listed on one of the following lines in the log and is probably called something like brcmfmac43430-sdio.bin).

The official Ubuntu versions are useless for working with DE and sound.
Use Armbian\RISCVbian (Ubuntu\Debian). The sound works in them and the desktop DE works acceptably (the IceWM version works the fastest).

1 Like

Where can i get armbian for visionfive? I cant found it.

https://forum.rvspace.org/t/armbian-for-starfive-build-system-ubuntu-debian/468/25