Rootinator
Posts: 12
Joined: Sat Jul 13, 2019 3:21 pm

Sound card as default

Wed Jul 24, 2019 8:43 pm

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.
ElectronicMusicWebradio -- The best of electronic & dance music!

www.WT-Radio.de

andrum99
Posts: 932
Joined: Fri Jul 20, 2012 2:41 pm

Re: Sound card as default

Wed Jul 24, 2019 9:51 pm

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?

Rootinator
Posts: 12
Joined: Sat Jul 13, 2019 3:21 pm

Re: Sound card as default

Thu Jul 25, 2019 10:22 am

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
ElectronicMusicWebradio -- The best of electronic & dance music!

www.WT-Radio.de

Man in a van
Posts: 139
Joined: Sat Dec 27, 2014 2:41 pm
Location: Staffordshire, UK.

Re: Sound card as default

Thu Jul 25, 2019 7:06 pm

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]:~ $
Last edited by Man in a van on Thu Jul 25, 2019 7:10 pm, edited 1 time in total.

Rootinator
Posts: 12
Joined: Sat Jul 13, 2019 3:21 pm

Re: Sound card as default

Thu Jul 25, 2019 7:09 pm

No, I downloaded a ready-made system and PulseAudio was already preinstalled there.
ElectronicMusicWebradio -- The best of electronic & dance music!

www.WT-Radio.de

Man in a van
Posts: 139
Joined: Sat Dec 27, 2014 2:41 pm
Location: Staffordshire, UK.

Re: Sound card as default

Thu Jul 25, 2019 7:11 pm

Well, do you neeed it/ can you remove it and use ALSA

Man in a van
Posts: 139
Joined: Sat Dec 27, 2014 2:41 pm
Location: Staffordshire, UK.

Re: Sound card as default

Thu Jul 25, 2019 7:35 pm

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

Return to “General discussion”