You are not logged in.

#1 2024-01-21 03:55:04

xyz987
Member
Registered: 2023-10-12
Posts: 7

HDMI & USB sound card can't regular

My mother board sound card was broken, so i used HDMI usually, but sometimes i need use mic, so i insert usb sound card.

but i must to change value from file of   ""/etc/asound.conf"' often

sometimes  defaults.pcm.card 0    sometimes  defaults.pcm.card 1, then  HDMI can operation correct.

can it regular ????   


 

""/etc/asound.conf"'  like list

defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

Offline

#2 2024-01-21 13:24:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: HDMI & USB sound card can't regular

Welcome to the boards

The index order is random when multiple cards are there, either use string values in the asound.conf (e.g.

defaults.pcm.!card "HDMI"

(this needs to be the identifier in square brackets in aplay -l) or fix the index order with modprobe config e.g. /etc/modprobe.d/alsa-base.conf

options snd-hda-intel index=-1
options snd-usb-audio index=-2

If that didn't work post the output of

aplay -lL

in code tags

Also note that if you're actually using pulseaudio/wireplumber you shouldn't need an asound.conf.

Offline

Board footer

Powered by FluxBB