I know how to set up /etc/asound.conf to use card 0, the bcm2835 chip as hw:0,0
I know how to set up /etc/asound.conf to use a Logitech USB headset, which becomes card 1 when it is plugged into the Pi, and it is represented as hw:1,0.
Is there a way to set up /etc/asound.conf so that if the USB headset is not plugged in, the system defaults to hw:0,0/bcm2835, and if the USB headset is plugged in the system defaults to hw:1,0/usb-audio?
As I have been using it, I have been manually changing the /etc/asound.conf to comply with whichever device I want to use. There must be an easier way!