amaroK: output to usb headset (or any other alsa device, really)

Wednesday, May 18th 2005
Now, I use amarok for my music, which is not so interesting, I guess. But I spent too much time to figure out how to output my muzak to the usb headset and not to the ooomp-oomp-speakers, and I don't want to do that again. And my memory is terrible. Hence, I present [the link][alsa] and a recipe to offload my overtaxed brain: 1. Get the number of your alsa device of choice: $ cat /proc/asound/cards 0 [nForce2 ]: NFORCE - NVidia nForce2 NVidia nForce2 with ALC650F at 0xe0080000, irq 209 1 [Modem ]: ICH-MODEM - NVidia nForce2 Modem NVidia nForce2 Modem at 0xe0081000, irq 177 *2 [Headset ]*: USB-Audio - Logitech USB Headset Logitech Logitech USB Headset at usb-0000:00:02.1-1, full speed 2. Make amarok flow through alsa (go to the _amarok settings_) 3. Enter the alsa device name: `hw:2,0` (or whatever makes your clock tick) All this _"hw"_ magic is explained at [the link][alsa]. According to that document, I should be able to write virtual names (think _hw:headphones_ instead of that silly _2,0_ stuff), but this being a usb headset the device number may change (i.e. if I boot with the headphones plugged in). So how do I make the virtual names persistant? udev? But then again, this really is a job for computers and not humans to think about. I sure hope [the next-gen KDE multimedia system][kdemm] does not hard code the concept of only (main) mixer like the current does. [alsa]: http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#naming [kdemm]: http://cia.navi.cx/stats/project/kde/kdelibs/kdemm ### Update 2005-05-26 # ## Oh, it's [even in the faq][faq]. I guess I didn't look very well. But - how do I get persistant device naming? [faq]: http://amarok.kde.org/wiki/index.php/FAQ#I_have_a_second_soundcard_and_I.27m_using_ALSA._How_do_I_make_Amarok_use_it_instead_of_the_default.3F