Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plugging a USB device renders Amarok soundless
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ogenos
n00b
n00b


Joined: 22 Feb 2013
Posts: 25

PostPosted: Fri Aug 02, 2013 4:37 pm    Post subject: Plugging a USB device renders Amarok soundless Reply with quote

Hello,

I hope to have put this topic in the proper section, if not please move it as appropriate.

I have the sound on my system working properly. What I have are
Code:
> cat /proc/asound/cards
 0 [DX             ]: AV200 - Xonar DX
                      Asus Virtuoso 100 at 0xd000, irq 16
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xfe720000 irq 42
 2 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfe640000 irq 43

Upon rebooting the system the card numbers are assigned at random and the suggested modifications (gentoo-alsa-wiki) in /etc/modprobe.d/alsa.conf such as
Code:
options snd cards_limit=3
options snd slots=,snd_hda_intel

didn't work on my system to set order in this assignment. I had to always manually change the card number in ~/.asoundrc for the sound to output through the DX card.
The solution that worked for me was to change the content of ~/.asoundrc from
Code:
pcm.!default {
    type hw
    card 0
    device 0
}

to
Code:

pcm.!default {
    type plug
    slave.pcm {
        @func getenv
        vars [ ALSAPCM ]
        default "hw:DX"
    }
}

Now the problem is that whenever I plug a usb stick in the computer, if amarok is playing it stops outputting any sound; meanwhile it continues to run. It is similar to having assigned the wrong card number in the pcm.!default ... Card numbers remain assigned as they were before plugging the usb device. The only way to get output sound is to unplug the usb device and *restart* amarok.

With all this network of udev and rules I am at a loss. Any help in straightening this situation is much appreciated.

Thank you.
Back to top
View user's profile Send private message
ogenos
n00b
n00b


Joined: 22 Feb 2013
Posts: 25

PostPosted: Sat Aug 03, 2013 6:06 pm    Post subject: Reply with quote

Bump. No one even curious on disentangling this jumbo? Help me put some coherence in my fragmented knowledge ... Ok I can wait till Tuesday :D
Back to top
View user's profile Send private message
ogenos
n00b
n00b


Joined: 22 Feb 2013
Posts: 25

PostPosted: Wed Aug 07, 2013 1:27 pm    Post subject: Reply with quote

Ok, I think it is an Amarok issue, as it doesn't happen when I use Clementine to playback music. I should have been more thorough with the investigation before posting. My apologies. Can a moderator move this topic to the Multimedia section?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum