SliTaz SliTaz Forum

You are not logged in.

#1 2012-08-21 22:39:41

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

How do I select my primary sound card?

Hi,

I have two sound cards, the one on my motherboard and the one attached by PCI. I wish to use the PCI one by default.

00:1f.5 and 02:01.0 are my sound cards:

--------

richie@richie-slitaz:~$ lspci

00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)

00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)

00:06.0 System peripheral: Intel Corporation 82865G/PE/P Processor to I/O Memory Interface (rev 02)

00:1d.0 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)

00:1d.1 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)

00:1d.2 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)

00:1d.3 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)

00:1d.7 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)

00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)

00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)

00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)

00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)

00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)

01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)

02:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5500] (rev a1)

02:01.0 Multimedia audio controller: Creative Labs [SB Live! Value] EMU10k1X

02:01.1 Input device controller: Creative Labs [SB Live! Value] Input device controller

02:02.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)

02:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)

--------

And in alsamixer the card is not muted. The output of `aplay -l':

--------

richie@richie-slitaz:~$ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Live [Dell Sound Blaster Live!], device 0: emu10k1x [EMU10K1X Front]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Live [Dell Sound Blaster Live!], device 1: emu10k1x [EMU10K1X Rear]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Live [Dell Sound Blaster Live!], device 2: emu10k1x [EMU10K1X Center/LFE]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

--------

So I would like to know where I can select the sound card that should be used.

Thanks for your help!

Offline

#2 2012-08-22 01:09:09

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: How do I select my primary sound card?

Check out the following link

http://www.alsa-project.org/main/index.php/Asoundrc

Offline

#3 2012-08-22 18:31:53

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: How do I select my primary sound card?

Thanks for the link.

I created the ~/.asoundrc file and copied the following lines into it, since I want Card #1, that is my second card, to be default:

--------

pcm.!default {

    type hw

    card 1

}

ctl.!default {

    type hw

    card 1

}

--------

However after rebooting the sound is still not working. Did I put the wrong thing in my asoundrc?

Offline

#4 2012-08-23 00:44:56

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How do I select my primary sound card?

When you open alsamixer is sound card 1 listed?

Volumes are up, nothings muted?

Your .asoundrc worked for me,put it in /home/tux

Plugged in logitech usb headset,it has a built-in sound card chipset.

Logged out/into account tux.

Alsaplayer outputs audio to my usb headset and alsamixer controls it instead of the motherboard IntelHDA soundcard to speakers.

Offline

#5 2012-08-23 19:23:26

BugRaiser
Member
Registered: 2012-06-19
Posts: 39

Re: How do I select my primary sound card?

Here's the output of my .asoundrc, maybe try with this and see if it works:

defaults.pcm.card 1

defaults.pcm.device 1

defaults.ctl.card 1

Offline

#6 2012-09-01 18:46:24

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: How do I select my primary sound card?

Thank you very much for your replies, at the moment I would love to try your suggestions but forgetting about this thread I decided to simply remove the kernel modules for my unwanted sound card - still no sound from the Sound Blaster live! Value card though. Doesn't looks like anything's muted, cable's plugged in and it works in Kubuntu. I removed my ~/.asoundrc file.

Offline

#7 2012-09-02 08:10:47

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: How do I select my primary sound card?

@searchfgold6789, can you post output from 'lsmod' and 'cat /proc/asound/devices' commands?

Offline

#8 2012-09-08 18:18:57

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: How do I select my primary sound card?

lsmod:

Module                  Size  Used by    Tainted: P

nvidia               7026999 30

i2c_core               12192  1 nvidia

parport_pc             16061  0

floppy                 41138  0

parport                20983  1 parport_pc

button                  3602  0

snd_emu10k1x            9907  1

snd_rawmidi            12384  1 snd_emu10k1x

snd_seq_device          3757  1 snd_rawmidi

snd_ac97_codec         77963  1 snd_emu10k1x

snd_pcm                43737  2 snd_emu10k1x,snd_ac97_codec

snd_timer              12515  1 snd_pcm

snd                    33394  8 snd_emu10k1x,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer

soundcore               3357  1 snd

ac97_bus                 718  1 snd_ac97_codec

snd_page_alloc          4853  2 snd_emu10k1x,snd_pcm

intel_agp               7908  1

intel_gtt               9214  1 intel_agp

agpgart                18221  3 nvidia,intel_agp,intel_gtt

cat /proc/asound/devices:

  2:        : timer

  3: [ 0- 0]: raw midi

  4: [ 0- 2]: digital audio playback

  5: [ 0- 1]: digital audio playback

  6: [ 0- 0]: digital audio playback

  7: [ 0- 0]: digital audio capture

  8: [ 0]   : control

Offline

#9 2012-09-09 07:34:28

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: How do I select my primary sound card?

I would try....

aplay -D hw:0,[n] test.wav - where n is either 0,1 or 2 and test.wav is any sound file in wav format.

I suspect sound is routed to the midi device which is hw:0,0

Offline

#10 2012-09-26 15:06:27

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: How do I select my primary sound card?

None of those commands seem to do anything:

richie@richie-slitaz:~$ aplay -D hw:0,0 ./100Hz_44100Hz_16bit_05sec.wav

Playing WAVE './100Hz_44100Hz_16bit_05sec.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

aplay: set_params:1065: Channels count non available

richie@richie-slitaz:~$ aplay -D hw:0,1 ./100Hz_44100Hz_16bit_05sec.wav

Playing WAVE './100Hz_44100Hz_16bit_05sec.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

aplay: set_params:1065: Channels count non available

richie@richie-slitaz:~$ aplay -D hw:0,2 ./100Hz_44100Hz_16bit_05sec.wav

Playing WAVE './100Hz_44100Hz_16bit_05sec.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono

aplay: set_params:1065: Channels count non available

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]