LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2015, 05:46 AM   #1
lustig1374
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Alsa can't change default


I tried setting my FiiO-Dac as default alsa sound device using changes in my alsa.conf, but after a reboot, alsa always went back to my broken onboard sound. Help would be appreciated.

cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel
2 snd_usb_audio
3 snd_usb_audio

cat /proc/asound/cards
0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfe600000 irq 16
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfe080000 irq 59
2 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:12.2-2.3, full spe
3 [Audio ]: USB-Audio - DigiHug USB Audio
FiiO DigiHug USB Audio at usb-0000:00:12.2-2.4, full speed

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Audio [DigiHug USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Audio [DigiHug USB Audio], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0

lsmod | grep snd
snd_hda_codec_hdmi 53248 1
snd_hda_codec_realtek 65536 1
snd_hda_codec_generic 65536 1 snd_hda_codec_realtek
snd_usb_audio 151552 0
snd_hda_intel 28672 0
snd_usbmidi_lib 28672 1 snd_usb_audio
snd_rawmidi 28672 1 snd_usbmidi_lib
snd_seq_device 16384 1 snd_rawmidi
snd_hda_controller 28672 1 snd_hda_intel
snd_hda_codec 114688 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
snd_pcm 90112 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller snd_timer 28672 1 snd_pcm
snd 69632 12 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_h da_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore 16384 2 snd,snd_hda_codec
usbcore 200704 11 uas,snd_usb_audio,usb_storage,ohci_hcd,ohci_pci,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xh ci_pci
 
Old 05-30-2015, 07:27 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, this thread is a bit old now, but have you got the usb audio working?

Generally, I blacklist the hdmi audio module, and then I'm able to begin to get the other audio modules (kernel) sorted.

Blacklist the hdmi audio..
/etc/modprobe.d/blacklist
Code:
# blacklisted modules for PCI coldplug
# see also /etc/modprobe.d/blacklist-compat

blacklist rivatv
blacklist bluetooth
# For some bridges both intel-agp and i82875p_edac are loaded. If i82875p_edac
# is loaded first it will grab the device. Then intel-agp doesn't work.
# Therefore we disable automatic loading of 82875p_edac. (Bug 213840)
# https://bugzilla.novell.com/show_bug.cgi?id=213840
blacklist i82875p_edac

# do not use "Boot Protocol" drivers, we prefer usbhid
# and they cause problems when loaded together with usbhid (#37726, #40861)
blacklist usbkbd
blacklist usbmouse

# disable PC speaker by default
# pcspkr is the standard driver, while snd-pcsp is the ALSA driver
blacklist pcspkr
blacklist snd-pcsp
blacklist nouveau
blacklist nv
blacklist snd_usb_audio # no longer being used on this system
blacklist snd_hda_codec_hdmi  #hdmi nvidia digital stereo
#blacklist snd_hda_codec_realtek #hda onboard 5.1 surround
#blacklist snd_hda_intel
#blacklist snd_hda_codec

# Prevent conflicts with nvidiabl
blacklist nvidia_bl
blacklist nvbacklight
blacklist mbp_nvidia_bl
# End of entries added for nvidiabl
add the line in red and save the file and reboot.

You need to be root to save this change!

If the hdmi kernel module is still there, reboot again. Because...

The module loading system of the kernel looks to see what is being used and tries to use those modules on the next boot. So

Usually you need to reboot twice for the new info to take action.

you could try to unload it with...modprobe (as root)
Code:
modprobe -r snd_hda_codec_hdmi
Sometimes this is difficult because of dependants.

Once you get that module out of use, you should be able to use the method you used before, in fact it's probably working.

Hope this helps, regards Glenn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 11:01 AM
Alsa change default soundcard hellasyoda Slackware 2 06-20-2008 06:10 PM
How-to change default mixer in alsa? barcode_linux Linux - Hardware 2 12-29-2006 12:59 PM
How do I change the default muted alsa setting in Core 2? enderjm Fedora 6 04-08-2004 01:35 PM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration