You are not logged in.

#1 2011-01-02 21:02:28

nrempel
Member
Registered: 2010-12-27
Posts: 37

[SOLVED] Trouble blacklisting on-board audio device

I'm aware that this topic has been well documented.  Unfortunately I'm still having trouble so hopefully someone can give me a hand.

I'm trying to completely blacklist the on-board sound card in my PC as I have a dedicated sound card for digital audio that works great.  The problem I'm encountering is that the system detects two audio devices and sometimes loads them in a different order.  This causes problems for most of the applications I use.

So far I have blacklisted the pcspkr module in /etc/rc.conf.

MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(fuse !pcspkr !floppy)

Before I blacklisted pcspkr, my optical S/PDIF would not work at all.  It works great now but ALSA still detects two audio devices.  For example, in VLC audio settings under "device" my options are (default, HDANVidia:ALC1200 Analog (hw:0,0), HDANVidia...(hw:0,1), ...(hw:0,2), C-Media CMI8762: C-Media PCI DAC-ADC (hw:1,0), ...(hw:1,2).  Sometimes C-Media is hw:0 and sometimes it is hw:1.  I would like to remove Nvidia HD audio completely.

I will include some information that I think is pertinent although I'm not sure how to use it.

[nrempel@Nicholas-Desktop ~]$ lsmod
Module                  Size  Used by
ipv6                  281833  30 
snd_usb_audio          85240  0 
snd_usbmidi_lib        18244  1 snd_usb_audio
ext2                   63599  1 
gspca_zc3xx            40388  0 
gspca_main             23728  1 gspca_zc3xx
joydev                 10055  0 
hid_logitech           10605  0 
ff_memless              4931  1 hid_logitech
usbhid                 36325  1 hid_logitech
hid                    76168  2 hid_logitech,usbhid
usblp                  11408  0 
mt2131                  4616  1 
s5h1409                 9805  1 
snd_hda_codec_nvhdmi    14827  1 
usb_storage            42540  1 
snd_hda_codec_realtek   275887  1 
ir_lirc_codec           3803  0 
lirc_dev                8500  1 ir_lirc_codec
ir_sony_decoder         2283  0 
ir_jvc_decoder          2409  0 
ir_rc6_decoder          2761  0 
ir_rc5_decoder          2249  0 
snd_seq_dummy           1431  0 
ir_nec_decoder          2537  0 
cx23885               122035  0 
snd_seq_oss            28760  0 
snd_seq_midi_event      5436  1 snd_seq_oss
ir_core                14133  7 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,cx23885
cx2341x                16384  1 cx23885
v4l2_common             6711  2 cx23885,cx2341x
snd_seq                50082  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
videodev               64318  4 gspca_main,cx23885,cx2341x,v4l2_common
v4l1_compat            15578  1 videodev
v4l2_compat_ioctl32    10212  1 videodev
videobuf_dma_sg         7800  1 cx23885
videobuf_dvb            4730  1 cx23885
dvb_core               90083  2 cx23885,videobuf_dvb
videobuf_core          14581  3 cx23885,videobuf_dma_sg,videobuf_dvb
btcx_risc               3211  1 cx23885
tveeprom               13329  1 cx23885
nvidia              10081406  56 
snd_pcm_oss            39221  0 
snd_mixer_oss          17106  1 snd_pcm_oss
ohci_hcd               21207  0 
snd_cmipci             31504  1 
snd_hda_intel          22285  0 
gameport                8400  1 snd_cmipci
snd_opl3_lib            8662  1 snd_cmipci
snd_hda_codec          79384  3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6110  3 snd_usb_audio,snd_opl3_lib,snd_hda_codec
video                  19305  0 
snd_mpu401_uart         5883  1 snd_cmipci
snd_rawmidi            19237  2 snd_usbmidi_lib,snd_mpu401_uart
output                  1940  1 video
snd_seq_device          5297  5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd_pcm                71921  5 snd_usb_audio,snd_pcm_oss,snd_cmipci,snd_hda_intel,snd_hda_codec
snd_timer              19265  3 snd_seq,snd_opl3_lib,snd_pcm
snd                    57562  19 snd_usb_audio,snd_usbmidi_lib,snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_cmipci,snd_opl3_lib,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
soundcore               5969  1 snd
snd_page_alloc          7249  2 snd_hda_intel,snd_pcm
fan                     3274  0 
ehci_hcd               36988  0 
evdev                   8519  6 
psmouse                52592  0 
i2c_nforce2             5160  0 
usbcore               137570  10 snd_usb_audio,snd_usbmidi_lib,gspca_zc3xx,gspca_main,usbhid,usblp,usb_storage,ohci_hcd,ehci_hcd
edac_core              34966  0 
edac_mce_amd            6865  0 
wmi                     8051  0 
i2c_core               18726  8 mt2131,s5h1409,cx23885,v4l2_common,videodev,tveeprom,nvidia,i2c_nforce2
shpchp                 26453  0 
asus_atk0110           10231  0 
firewire_ohci          26841  0 
pci_hotplug            24319  1 shpchp
sg                     25652  0 
firewire_core          49430  1 firewire_ohci
crc_itu_t               1297  1 firewire_core
thermal                12242  0 
forcedeth              52098  0 
k10temp                 2723  0 
serio_raw               4486  0 
button                  4834  0 
processor              25936  0 
fuse                   64259  5 
ext4                  313574  2 
mbcache                 5722  2 ext2,ext4
jbd2                   69002  1 ext4
crc16                   1297  1 ext4
sd_mod                 25856  7 
sr_mod                 14954  0 
cdrom                  35851  1 sr_mod
pata_acpi               3248  0 
ahci                   20353  4 
pata_amd               11052  0 
libahci                17982  1 ahci
libata                156316  4 pata_acpi,ahci,pata_amd,libahci
scsi_mod              124891  5 usb_storage,sg,sd_mod,sr_mod,libata
[nrempel@Nicholas-Desktop ~]$ lspci
00:00.0 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a2)
00:01.0 ISA bridge: nVidia Corporation MCP78S [GeForce 8200] LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP78S [GeForce 8200] SMBus (rev a1)
00:01.2 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:01.3 Co-processor: nVidia Corporation MCP78S [GeForce 8200] Co-Processor (rev a2)
00:01.4 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:02.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:04.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:04.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:06.0 IDE interface: nVidia Corporation MCP78S [GeForce 8200] IDE (rev a1)
00:07.0 Audio device: nVidia Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
00:08.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:09.0 IDE interface: nVidia Corporation MCP78S [GeForce 8200] SATA Controller (non-AHCI mode) (rev a2)
00:0a.0 Ethernet controller: nVidia Corporation MCP77 Ethernet (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:12.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:13.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:14.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Link Control
01:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
01:0a.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70)
02:00.0 VGA compatible controller: nVidia Corporation C77 [nForce 750a SLI] (rev a2)
03:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2)
06:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 03)

Thanks in advance,
Nick

Last edited by nrempel (2011-01-02 22:03:11)

Offline

#2 2011-01-02 21:10:51

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Trouble blacklisting on-board audio device

Blacklist at least snd_hda_intel and possibly snd_hda_codec_nvhdmi too.

Offline

#3 2011-01-02 21:40:30

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: [SOLVED] Trouble blacklisting on-board audio device

Can I test which modules I want to blacklist by using modprobe -r, or is that a permanent change?

EDIT:

I added !snd_hda_intel to MODULES in /etc/rc.conf.  This fixed the problem.

Thanks.

Last edited by nrempel (2011-01-02 22:02:48)

Offline

Board footer

Powered by FluxBB