After installing chromium alsa stops working

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=22
G_DIETPI_VERSION_RC=3
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

bookworm 0

  • Kernel version | uname -a

Linux TankPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture

arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

RPi 4 Model B (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)

The official one.

  • SD card used | (EG: SanDisk ultra)

Sandisk Canvas 32gb

Steps to reproduce

  1. Burn fresh image DietPi_RPi-ARMv8-Bookworm.img.xz to a sd card
  2. Let it update it self and use the minimal image config.
  3. Install via dietpi-config alsa and change sound output to HDMI.
  4. Install mpg123 and mpv via apt, sound works then rebooted.
  5. Install chromium via dietpi-software and make all the autostart config, test the sound and it doesn’t work prints an error present at the “Actual behaviour”.

Expected behaviour

  • Play sound via HDMI

Actual behaviour

  • root@DietPi:~# mpv https://cast.magicstreams.gr:9111/stream/1/
    (+) Audio --aid=1 (mp3 2ch 44100Hz)
    File tags:
    icy-title: Okular & Keim - M’aice (Original Mix)
    [W][00032.792085] pw.conf | [ conf.c: 939 try_load_conf()] can’t load config client.conf: No such file or directory
    [E][00032.794149] pw.conf | [ conf.c: 963 pw_conf_load_conf_for_context()] can’t load default config client.conf: No such file or directory
    [ao/alsa] Can’t find appropriate sample format.
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    [ao/jack] cannot open server
    [ao/sdl] could not open audio: alsa: Unsupported audio format
    [ao] Failed to initialize audio driver ‘sdl’
    Could not open/initialize audio device → no sound.
    Audio: no audio

Exiting… (Errors when loading file)
root@DietPi:~# mpg123 https://cast.magicstreams.gr:9111/stream/1/
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.31.2; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes

Directory: https://cast.magicstreams.gr:9111/stream/1/

Terminal control enabled, press ‘h’ for listing of keys and functions.

Playing MPEG stream 1 of 1: …
ICY-NAME: Psyndora Psytrance
ICY-URL: Trance Channel
[src/libmpg123/format.c:INT123_frame_output_format():350] error: Unable to set up output format! Constraints: 44100, 22050 or 11025Hz.
main: [src/mpg123.c:play_frame():861] error: …in decoding next frame: Unable to set up output format! (code 1)

[0:00] Decoding of finished.

Extra details

@MichaIng can you have a look pls

  1. Install mpg123 and mpv via apt, sound works then rebooted.

Did audio output also work after reboot, before installing Chromium? The reboot (changed boot configuration) is much more likely to cause the issue than the Chromium installation.

After the reboot without the the installation of chromium it worked. I did output sound from HDMI.
Thank you

Strange. Chromium on RPi pulls only internal FFmpeg A/V libraries which should not affect other programs.

But ah, the Chromium installation forcefully enables KMS and hence the KMS HDMI driver while the SoC diver is disabled.

Can you try to enable the auto-conversion plugin in dietpi-config audio options? Both drivers natively support different audio formats.