You are not logged in.

#1 2015-11-04 18:05:10

dsdante
Member
Registered: 2014-12-04
Posts: 13

Chromium ignores .asoundrc

I have 2 sound cards, one of them is USB "UHF-nano/S" that I want to use in all programs, the other one is integrated "HD-Audio Generic" that seems to be trying to become default anywhere possible. smile Here is my ALSA config:

$ cat .asoundrc
pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:UHFnanoS"
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 48000
        format S16_LE
    }
    bindings {
        0 0
        1 1
    }
}

ctl.dmixer {
    type hw
    card UHFnanoS
}
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: UHFnanoS [UHF-nano/S], device 0: USB Audio [USB Audio]
  Subdevices: 0/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 0: UHFnanoS [UHF-nano/S], device 1: USB Audio [USB Audio #1]                                                                                                                              
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 1: Generic [HD-Audio Generic], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]                                                                                                          
  Subdevices: 0/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 1: Generic [HD-Audio Generic], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]                                                                                                        
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                   
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]                                                                                                                                         
  Subdevices: 1/1                                                                                                                                                                              
  Subdevice #0: subdevice #0

Some programs (such as Chromium) not only lack of settings for audio but also arbitrarily decide to ignore my .asoundrc and use HD-Audio Generic for output. Any ideas how to fix it?

Offline

#2 2015-11-08 03:25:55

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: Chromium ignores .asoundrc

Offline

#3 2015-11-08 06:52:47

dsdante
Member
Registered: 2014-12-04
Posts: 13

Re: Chromium ignores .asoundrc

I tried

export ALSA_CONFIG_PATH="$HOME/.asoundrc"
chromium

Did not help.

Offline

#4 2015-11-08 13:37:27

xxvirusxx
Member
From: Romania
Registered: 2013-09-09
Posts: 41

Re: Chromium ignores .asoundrc

Post here cat /proc/asound/card*/id

Also make a back-up of .asoundrc content and try with this

pcm.!default {
    type hw
    card UHFnanoS
}

ctl.!default {
    type hw
    card UHFnanoS
}

Last edited by xxvirusxx (2015-11-08 13:38:28)

Offline

#5 2015-11-08 14:33:38

dsdante
Member
Registered: 2014-12-04
Posts: 13

Re: Chromium ignores .asoundrc

$ cat /proc/asound/card*/id
UHFnanoS
Generic
HDMI

Removing dmixer doesn't help either.

I can remember everything was OK in May, when I left my home for half a year. I returned several days ago, updated the system and found my Chromium using a wrong output.

Last edited by dsdante (2015-11-08 14:39:40)

Offline

Board footer

Powered by FluxBB