hi,
I have been using LMS on a raspberry pi zero w and 2w for over one year to stream the signal from my turntable with the wavin plugin ("wavin:default" as a favourite) and a sound card with very good results.
However now i want to do the same with a pi 4b and i have a problem: the USB card is not always set as default card and when this happens, there is no sound...
Searching the internet i have learned how to set the USB soundcard as default modifying /etc/asound.conf
I use:
sudo vi /etc/asound.conf
to access the file, modify it accordingly, save the changes, and voila, i have my sound again. all good here.
The problem is that when i reboot the pi, the file returns to its original status and i need to modify it again.....
Is there a way to save these changes permanently?
If not, is there any other way to set up the USB soundcard as default permanently?
thank you for your help.
Results 1 to 10 of 11
-
2022-05-06, 10:57 #1
- Join Date
- Nov 2021
- Posts
- 24
how to change the default card permanently - help needed
-
2022-05-06, 11:23 #2
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 21,634
Probably no need to do anything with asound.conf
The default part of the "wavin::default" is ALSA device name.
"default" is mapped onto a ALSA named card.
The ALSA name of the card often remains the same so you should be useing somehting like "wavin:ALSANAME"
use the command "arecord -l" (without quotes and option is lower case letter L not digit one) to shpw what Alsa capture devices are available and pick your card.
-
2022-05-06, 12:22 #3
- Join Date
- Nov 2021
- Posts
- 24
-
2022-05-06, 12:47 #4
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 21,634
-
2022-05-06, 12:52 #5
- Join Date
- Nov 2021
- Posts
- 24
tc@pCP:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: HD [USB Sound Blaster HD], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HD [USB Sound Blaster HD], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
-
2022-05-06, 12:54 #6
- Join Date
- Nov 2021
- Posts
- 24
isn't there a way to make the changes to asound.conf permanent? because this solution works perfectly...
-
2022-05-06, 13:51 #7
See "My changes disappeared".
Although having to modify asound.conf seems a little drastic.
Most RPi have a headphones jack that usually is the ALSA default.
Most software *should* be able selection ALSA output by card name, rather than card number or the default which may change.
-
2022-05-06, 14:30 #8
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 21,634
Try the following URLs
wavinlughw:CARD=HD,DEV=0
wavinlughw:CARD=HD,DEV=1
edit:
spaces added to avoid emoji
wavin: plughw:CARD=HD,DEV=0
wavin: plughw:CARD=HD,DEV=1
-
2022-05-06, 14:33 #9
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 21,634
-
2022-05-06, 17:20 #10