Page 1 of 1

Sound card as default

Posted: Wed Jul 24, 2019 8:43 pm
by Rootinator
Hello,

PulseAudio is used as a driver on the Raspberry.

How can I set my external USB sound card as default here?

The following did not work:

Code: Select all

sudo nano /etc/asound.conf

pcm.!default {
 type hw
 card 1
 device 0
}

Code: Select all

sudo nano /etc/modprobe.d/alsa-base.conf

#change the index from -2 to 0:
options snd-usb-audio index=0
Both files do not exist. Even after creating these files it does not work.

bcm_2835 is disabled.

Re: Sound card as default

Posted: Wed Jul 24, 2019 9:51 pm
by andrum99
If the built-in sound (bcm2835) is disabled, then your sound card will become the default without you needing to do anything. How did you disable bcm2835?

Re: Sound card as default

Posted: Thu Jul 25, 2019 10:22 am
by Rootinator
andrum99 wrote:
Wed Jul 24, 2019 9:51 pm
How did you disable bcm2835?

Code: Select all

sudo nano /boot/config.txt

dtparam=audio=off
andrum99 wrote: If the built-in sound (bcm2835) is disabled, then your sound card will become the default without you needing to do anything.
That's the problem. The external sound card is only sporadically recognized and used.

With the command "aplay -l" it does not show a sound card at this time.


In addition, I always have, if I want to change the volume with

Code: Select all

alsamixer
first select the external sound card.

But how can I set the external sound card as default when PulseAudio is used?


The sound card works on another system with the driver "ALSA" without problems. There, however, PulseAudio was uninstalled

Re: Sound card as default

Posted: Thu Jul 25, 2019 7:06 pm
by Man in a van
Rootinator wrote:
Wed Jul 24, 2019 8:43 pm
Hello,

PulseAudio is used as a driver on the Raspberry.

did you install PulseAudio yourself?

This is mine, rpi4b running Buster

Code: Select all

[email protected]:~ $ dpkg -s pulseaudio
dpkg-query: package 'pulseaudio' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
[email protected]:~ $

Re: Sound card as default

Posted: Thu Jul 25, 2019 7:09 pm
by Rootinator
No, I downloaded a ready-made system and PulseAudio was already preinstalled there.

Re: Sound card as default

Posted: Thu Jul 25, 2019 7:11 pm
by Man in a van
Well, do you neeed it/ can you remove it and use ALSA

Re: Sound card as default

Posted: Thu Jul 25, 2019 7:35 pm
by Man in a van
A quick search found this for pulseaudio

https://raspberrypi.stackexchange.com/q ... dio-device

and I have used this on Stretch, not sure it's reaaly needed now. on Buster, but it should work

https://raspberrypi.stackexchange.com/q ... ian-jessie

I think tha main problem is tha your sound card is not being consistently recognised