You are not logged in.

#1 2010-10-20 20:54:55

Kei
Member
Registered: 2007-04-05
Posts: 88

[SOLVED] alsa: remove unneeded sound card (ATI HDMI)

Hi everybody,

I got an ATI graphics card with built-in HDMI sound card. ALSA wants to use that card, instead of my Creative Audigy 2.

I have sound in KDE applications, but nowhere else, i.e. VLC or mplayer.

I followed the suggestions found in https://bbs.archlinux.org/viewtopic.php?id=44465, but setting the default.[ctl|pcm].card values didn't work for me. I read http://alsa.opensrc.org/index.php/MultipleCards too, but honestly, I haven't understood much.

How can I either deactivate the graphic's card sound card, or otherwise set the priority for the Audigy sound card in a way, that it is used by all applications?

Regards,
kei


The sound cards plus subdevices:

chuck::kevin ~ !! 0 !!                                                                                                                                                                                                                                                         
$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic                                                                                                                                                                                                                             
                      HD-Audio Generic at 0xfbdbc000 irq 43                                                                                                                                                                                                                    
 1 [Audigy2        ]: Audigy2 - SB Audigy 2 Platinum [SB0240P]                                                                                                                                                                                                                 
                      SB Audigy 2 Platinum [SB0240P] (rev.4, serial:0x10021102) at 0xec00, irq 21                                                                                                                                                                              
                                                                                                                                                                                                                                                                               
chuck::kevin ~ !! 0 !!                                                                                                                                                                                                                                                         
$ aplay -v /usr/share/sounds/alsa/Front_Center.wav                                                                                                                                                                                                                             
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono                                                                                                                                                                      
Plug PCM: Hardware PCM card 1 'SB Audigy 2 Platinum [SB0240P]' device 0 subdevice 0                                                                                                                                                                                            
Its setup is:                                                                                                                                                                                                                                                                  
  stream       : PLAYBACK                                                                                                                                                                                                                                                      
  access       : RW_INTERLEAVED                                                                                                                                                                                                                                                
  format       : S16_LE                                                                                                                                                                                                                                                        
  subformat    : STD                                                                                                                                                                                                                                                           
  channels     : 1                                                                                                                                                                                                                                                             
  rate         : 48000                                                                                                                                                                                                                                                         
  exact rate   : 48000 (48000/1)                                                                                                                                                                                                                                               
  msbits       : 16                                                                                                                                                                                                                                                            
  buffer_size  : 24000                                                                                                                                                                                                                                                         
  period_size  : 6000                                                                                                                                                                                                                                                          
  period_time  : 125000                                                                                                                                                                                                                                                        
  tstamp_mode  : NONE                                                                                                                                                                                                                                                          
  period_step  : 1                                                                                                                                                                                                                                                             
  avail_min    : 6000                                                                                                                                                                                                                                                          
  period_event : 0                                                                                                                                                                                                                                                             
  start_threshold  : 24000                                                                                                                                                                                                                                                     
  stop_threshold   : 24000                                                                                                                                                                                                                                                     
  silence_threshold: 0                                                                                                                                                                                                                                                         
  silence_size : 0                                                                                                                                                                                                                                                             
  boundary     : 6755399441055744000                                                                                                                                                                                                                                           
  appl_ptr     : 0                                                                                                                                                                                                                                                             
  hw_ptr       : 0                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
chuck::kevin ~ !! 0 !!                                                                                                                                                                                                                                                         
$ aplay -l
**** List of PLAYBACK Hardware Devices ****                                                                                                                                                                                                                                    
card 0: Generic [HD-Audio Generic], device 3: ATI HDMI [ATI HDMI]                                                                                                                                                                                                              
  Subdevices: 1/1                                                                                                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                                                                                                   
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]                                                                                                                                                                        
  Subdevices: 32/32                                                                                                                                                                                                                                                            
  Subdevice #0: subdevice #0                                                                                                                                                                                                                                                   
  Subdevice #1: subdevice #1                                                                                                                                                                                                                                                   
  Subdevice #2: subdevice #2                                                                                                                                                                                                                                                   
  Subdevice #3: subdevice #3                                                                                                                                                                                                                                                   
  Subdevice #4: subdevice #4                                                                                                                                                                                                                                                   
  Subdevice #5: subdevice #5                                                                                                                                                                                                                                                   
  Subdevice #6: subdevice #6                                                                                                                                                                                                                                                   
  Subdevice #7: subdevice #7                                                                                                                                                                                                                                                   
  Subdevice #8: subdevice #8                                                                                                                                                                                                                                                   
  Subdevice #9: subdevice #9                                                                                                                                                                                                                                                   
  Subdevice #10: subdevice #10                                                                                                                                                                                                                                                 
  Subdevice #11: subdevice #11                                                                                                                                                                                                                                                 
  Subdevice #12: subdevice #12                                                                                                                                                                                                                                                 
  Subdevice #13: subdevice #13                                                                                                                                                                                                                                                 
  Subdevice #14: subdevice #14                                                                                                                                                                                                                                                 
  Subdevice #15: subdevice #15                                                                                                                                                                                                                                                 
  Subdevice #16: subdevice #16                                                                                                                                                                                                                                                 
  Subdevice #17: subdevice #17                                                                                                                                                                                                                                                 
  Subdevice #18: subdevice #18                                                                                                                                                                                                                                                 
  Subdevice #19: subdevice #19                                                                                                                                                                                                                                                 
  Subdevice #20: subdevice #20                                                                                                                                                                                                                                                 
  Subdevice #21: subdevice #21                                                                                                                                                                                                                                                 
  Subdevice #22: subdevice #22                                                                                                                                                                                                                                                 
  Subdevice #23: subdevice #23                                                                                                                                                                                                                                                 
  Subdevice #24: subdevice #24                                                                                                                                                                                                                                                 
  Subdevice #25: subdevice #25                                                                                                                                                                                                                                                 
  Subdevice #26: subdevice #26                                                                                                                                                                                                                                                 
  Subdevice #27: subdevice #27                                                                                                                                                                                                                                                 
  Subdevice #28: subdevice #28                                                                                                                                                                                                                                                 
  Subdevice #29: subdevice #29                                                                                                                                                                                                                                                 
  Subdevice #30: subdevice #30                                                                                                                                                                                                                                                 
  Subdevice #31: subdevice #31                                                                                                                                                                                                                                                 
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]                                                                                                                                                                     
  Subdevices: 8/8                                                                                                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                                                                                                   
  Subdevice #1: subdevice #1                                                                                                                                                                                                                                                   
  Subdevice #2: subdevice #2                                                                                                                                                                                                                                                   
  Subdevice #3: subdevice #3                                                                                                                                                                                                                                                   
  Subdevice #4: subdevice #4                                                                                                                                                                                                                                                   
  Subdevice #5: subdevice #5                                                                                                                                                                                                                                                   
  Subdevice #6: subdevice #6                                                                                                                                                                                                                                                   
  Subdevice #7: subdevice #7                                                                                                                                                                                                                                                   
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 3: emu10k1 [Multichannel Playback]                                                                                                                                                                                    
  Subdevices: 1/1                                                                                                                                                                                                                                                              
  Subdevice #0: subdevice #0                                                                                                                                                                                                                                                   
card 1: Audigy2 [SB Audigy 2 Platinum [SB0240P]], device 4: p16v [p16v]                                                                                                                                                                                                        
  Subdevices: 0/1                                                                                                                                                                                                                                                              
  Subdevice #0: subdevice #0

Last edited by Kei (2010-10-23 09:49:18)

Offline

#2 2010-10-22 20:09:26

Kei
Member
Registered: 2007-04-05
Posts: 88

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

(bump, because the whole text changed)

Offline

#3 2010-10-22 20:51:00

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,679

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

I have a Creative XFi that I want to be recognized as the default card.  I added this to /etc/asound.conf

pcm.!default {
    type hw
    card XFi
}
ctl.!default {
    type hw           
    card XFi
}

Offline

#4 2010-10-22 22:05:25

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

Another approach is to completely blacklist the corresponding module for your sound card. I did the same for the HDMI sound chip on my ATI HD4670 as well as for my Intel HDA onboard soundcard.


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#5 2010-10-22 22:42:20

Kei
Member
Registered: 2007-04-05
Posts: 88

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

skunktrader, Darksoul71, thanks for your suggestions!

The asound.conf method didn't work for me, so I blacklisted the modules for my ATI graphics card as well as for my onboard soundcard. Now, alsa sees only one soundcard, which is good.

Unfortunately, I still have the same problem: sound only works in KDE applications, but nowhere else. I tried 'play', 'aplay', VLC and mplayer, once again.

Do I have to select a specific subdevice? (see listing in first post)

I'm looking forward to any suggestions..


EDIT: it seems that the volume controls, especially the master channel, have no effect (exception: HD SPDIF Front controls the volume of the digital out) - there is no way to adjust the volume of the analog outputs. This applies to alsamixer as well as to kmix (KDE mixer application).

EDIT2: Should I post this problem in a new thread?

Last edited by Kei (2010-10-22 23:03:24)

Offline

#6 2010-10-23 00:21:37

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

Asoundconf always did a good job for me:
http://aur.archlinux.org/packages.php?ID=23382

chris@chrispc ~ % asoundconf list
Names of available sound cards:
NVidia
HDMI
SAA7134
chris@chrispc ~ % asoundconf set-default-card NVidia
chris@chrispc ~ %

It creates a ~/.asoundrc.asoundconf which should be included from ~/.asoundrc.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#7 2010-10-23 09:48:57

Kei
Member
Registered: 2007-04-05
Posts: 88

Re: [SOLVED] alsa: remove unneeded sound card (ATI HDMI)

I fixed it now, using the alsa-project's wiki: http://alsa-project.org/main/index.php/ … le-emu10k1

Thanks again,
kei

Offline

Board footer

Powered by FluxBB