Debian This forum is for the discussion of Debian Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
07-27-2009, 02:44 AM
#1
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Rep:
No way to switch sound cards under Lenny
I have
Code:
# cat /proc/asound/cards
0 [default ]: USB-Audio - AK5370
AKM AK5370 at usb-0000:00:02.1-2, full speed
1 [default_1 ]: USB-Audio - PnP Audio Device
PnP Audio Device at usb-0000:00:02.1-4, full speed
I want/need to have sound, by any ways:
Code:
# cat /proc/asound/cards
0 [default ]: USB-Audio - PnP Audio Device
PnP Audio Device at usb-0000:00:02.1-4, full speed
1 [default_1 ]: USB-Audio - AK5370
AKM AK5370 at usb-0000:00:02.1-2, full speed
my dmesg indicates:
Code:
4.289035] usb 3-2: New USB device found, idVendor=0556, idProduct=0001
[ 4.289038] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.289041] usb 3-2: Product: AK5370
[ 4.289042] usb 3-2: Manufacturer: AKM
[ 4.289109] usb 3-2: configuration #1 chosen from 1 choice
[ 4.596032] usb 3-4: new full speed USB device using ohci_hcd and address 3
[ 4.596072] hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
[ 4.596171] hdc: UDMA/66 mode selected
[ 4.596304] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.611027] ide1 at 0x170-0x177,0x376 on irq 15
[ 4.611331] sata_nv 0000:00:0a.0: version 3.5
[ 4.611601] ACPI: PCI Interrupt Link [LTID] enabled at IRQ 21
[ 4.611605] sata_nv 0000:00:0a.0: PCI INT A -> Link[LTID] -> GSI 21 (level, low) -> IRQ 21
[ 4.611634] sata_nv 0000:00:0a.0: setting latency timer to 64
[ 4.611677] scsi0 : sata_nv
[ 4.611751] scsi1 : sata_nv
[ 4.612194] ata1: SATA max UDMA/133 cmd 0xf80 ctl 0xf00 bmdma 0xe000 irq 21
[ 4.612197] ata2: SATA max UDMA/133 cmd 0xe80 ctl 0xe00 bmdma 0xe008 irq 21
[ 4.806034] usb 3-4: New USB device found, idVendor=0d8c, idProduct=0201
[ 4.806038] usb 3-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4.806040] usb 3-4: Product: PnP Audio Device
[ 4.806107] usb 3-4: configuration #1 chosen from 1 choice
[ 5.254944] ide-gd driver 1.18
[ 5.254972] hda: max request size: 512KiB
[ 5.258359] ide-cd driver 5.00
[ 5.258369] hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63
[ 5.258762] hda: cache flushes supported
[ 5.258801] hda: hda1 hda2 < hda5 hda6 hda7 > hda3
[ 5.334957] ide-cd: hdc: ATAPI 48X DVD-ROM DVD-R/RAM CD-R/RW drive, 2048kB Cache
[ 5.334964] Uniform CD-ROM driver Revision: 3.20
[ 5.981592] PM: Starting manual resume from disk
[ 6.038889] kjournald starting. Commit interval 5 seconds
[ 6.038902] EXT3-fs: mounted filesystem with ordered data mode.
[ 7.500906] udevd version 125 started
[ 7.815041] Linux agpgart interface v0.103
[ 7.817365] agpgart-amd64 0000:00:00.0: AGP bridge [10de/00e1]
[ 7.817390] agpgart-amd64 0000:00:00.0: aperture size 4096 MB is not right, using settings from NB
[ 7.817394] agpgart-amd64 0000:00:00.0: setting up Nforce3 AGP
[ 7.833006] agpgart-amd64 0000:00:00.0: AGP aperture is 512M @ 0xc0000000
[ 7.945067] i2c-adapter i2c-0: nForce2 SMBus adapter at 0x5000
[ 7.945081] i2c-adapter i2c-1: nForce2 SMBus adapter at 0x5040
[ 8.052716] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[ 8.052723] ACPI: Power Button [PWRF]
[ 8.052793] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input3
[ 8.052796] ACPI: Power Button [PWRB]
[ 8.097668] processor ACPI_CPU:00: registered as cooling_device0
[ 8.097699] processor ACPI_CPU:01: registered as cooling_device1
[ 8.382280] input: USB Optical Mouse USB Optical Mouse as /devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0/input/input4
[ 8.382328] a4tech 0003:09DA:0006.0001: input,hidraw2: USB HID v1.10 Mouse [USB Optical Mouse USB Optical Mouse] on usb-0000:00:02.0-1/input0
[ 8.575155] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 8.588074] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 8.736034] k8temp 0000:00:18.3: Temperature readouts might be wrong - check erratum #141
[ 8.793015] input: PC Speaker as /devices/platform/pcspkr/input/input5
[ 9.474067] Linux video capture interface: v2.00
[ 9.565013] bttv: driver version 0.9.18 loaded
[ 9.565017] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 9.565052] bttv: Bt8xx card found (0).
[ 9.565299] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 19
[ 9.565309] bttv 0000:02:09.0: PCI INT A -> Link[LNKB] -> GSI 19 (level, low) -> IRQ 19
[ 9.565318] bttv0: Bt878 (rev 2) at 0000:02:09.0, irq: 19, latency: 32, mmio: 0xfbffe000
[ 9.565342] bttv0: detected: FlyVideo 98 (LR50)/ Chronos Video Shuttle II [card=35], PCI subsystem ID is 1851:1850
[ 9.565345] bttv0: using: Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II [card=35,autodetected]
[ 9.565348] IRQ 19/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 9.565381] bttv0: gpio: en=00000000, out=00000000 in=008dff00 [init]
[ 9.565427] bttv0: FlyVideo_gpio: unknown tuner type.
[ 9.565430] bttv0: FlyVideo Radio=no RemoteControl=yes Tuner=-1 gpio=0x8dff00
[ 9.565432] bttv0: FlyVideo LR90=no tda9821/tda9820=no capture_only=no
[ 9.565435] bttv0: tuner type unset
[ 9.565468] bttv0: registered device video0
[ 9.565487] bttv0: registered device vbi0
the prob is that a boot, it loads first hte moduels for hte AK5370 of the microsophone usb
asound.conf is not present anymroe under lenny
what a mess linux and sound.
it could be made easy
07-27-2009, 05:45 AM
#2
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux (Gnome+Compiz)
Posts: 368
Rep:
You can still create the /etc/asound.conf or ~/.asoundrc file and write its contents by hand. You can even make ALSA apps use a sound interface by defining it via an environment variable. If you want me to write such a file, post the output of the command "aplay -l" here and I'll explain how to use it etc. .
07-27-2009, 06:10 AM
#3
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Original Poster
Rep:
Quote:
Originally Posted by
TITiAN
You can still create the /etc/asound.conf or ~/.asoundrc file and write its contents by hand. You can even make ALSA apps use a sound interface by defining it via an environment variable. If you want me to write such a file, post the output of the command "aplay -l" here and I'll explain how to use it etc. .
wow you are talented!
so here the output:
cat /proc/asound/cards
Code:
0 [default ]: USB-Audio - AK5370
AKM AK5370 at usb-0000:00:02.1-1, full speed
1 [default_1 ]: USB-Audio - PnP Audio Device
PnP Audio Device at usb-0000:00:02.1-4, full speed
I would liek to swap the default and default_1.
(I have to reboot to do aplay)
07-27-2009, 09:02 AM
#4
Member
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux (Gnome+Compiz)
Posts: 368
Rep:
Oops, not "cat /proc/asound/cards", it's "aplay -l"
07-27-2009, 04:00 PM
#5
Member
Registered: May 2009
Posts: 85
Rep:
In /etc/modprobe.d/alsa-base.conf you have a line like
Code:
options <snd-driver-for-AK5370> index=-2
the index=-2 part basically tells the system not to load the card as the first card
07-28-2009, 01:08 AM
#6
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Original Poster
Rep:
still not working
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: default_1 [PnP Audio Device ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I also tried this:
cat /etc/modprobe.d/alsa-base
Code:
...
install snd-wavefront /sbin/modprobe --ignore-install snd-wavefront $CMDLINE_OPTS && /lib/alsa/modprobe-post-install snd-wavefront
# Prevent abnormal drivers from grabbing index 0
options ohci_hcd index=-2
#options bt87x index=-2
#options cx88_alsa index=-2
#options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
based on :
Code:
3.739045] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.739047] usb 1-2: Product: USB-compliant keyboard
[ 3.739112] usb 1-2: configuration #1 chosen from 1 choice
[ 3.750318] input: USB-compliant keyboard as /devices/pci0000:00/0000:00:02.0/usb1/1-2/1-2:1.0/input/input0
[ 3.750356] generic-usb 0003:062A:0201.0002: input,hidraw0: USB HID v1.10 Keyboard [USB-compliant keyboard] on usb-0000:00:02.0-2/input0
[ 3.760529] input: USB-compliant keyboard as /devices/pci0000:00/0000:00:02.0/usb1/1-2/1-2:1.1/input/input1
[ 3.760615] generic-usb 0003:062A:0201.0003: input,hiddev96,hidraw1: USB HID v1.10 Mouse [USB-compliant keyboard] on usb-0000:00:02.0-2/input1
[ 3.912100] hdc: ASUS DRW-1814BL, ATAPI CD/DVD-ROM drive
[ 4.064023] usb 3-1: new full speed USB device using ohci_hcd and address 2
[ 4.276536] usb 3-1: New USB device found, idVendor=0556, idProduct=0001
[ 4.276539] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.276542] usb 3-1: Product: AK5370
[ 4.276543] usb 3-1: Manufacturer: AKM
[ 4.276606] usb 3-1: configuration #1 chosen from 1 choice
[ 4.580022] usb 3-4: new full speed USB device using ohci_hcd and address 3
[ 4.584053] hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
[ 4.584167] hdc: UDMA/66 mode selected
[ 4.584313] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.599729] ide1 at 0x170-0x177,0x376 on irq 15
[ 4.603004] sata_nv 0000:00:0a.0: version 3.5
[ 4.603274] ACPI: PCI Interrupt Link [LTID] enabled at IRQ 21
[ 4.603279] sata_nv 0000:00:0a.0: PCI INT A -> Link[LTID] -> GSI 21 (level, low) -> IRQ 21
[ 4.603307] sata_nv 0000:00:0a.0: setting latency timer to 64
[ 4.603360] scsi0 : sata_nv
[ 4.603452] scsi1 : sata_nv
[ 4.603880] ata1: SATA max UDMA/133 cmd 0xf80 ctl 0xf00 bmdma 0xe000 irq 21
[ 4.603883] ata2: SATA max UDMA/133 cmd 0xe80 ctl 0xe00 bmdma 0xe008 irq 21
[ 4.789538] usb 3-4: New USB device found, idVendor=0d8c, idProduct=0201
[ 4.789541] usb 3-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
:
07-29-2009, 02:28 PM
#7
Member
Registered: May 2009
Posts: 85
Rep:
what does lsmod | grep snd return?
07-30-2009, 05:53 AM
#8
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Original Poster
Rep:
Quote:
Originally Posted by
milomak
what does lsmod | grep snd return?
Code:
~$ lsmod | grep snd
snd_usb_audio 72008 1
snd_pcm_oss 32232 0
snd_mixer_oss 12368 1 snd_pcm_oss
snd_pcm 62364 2 snd_usb_audio,snd_pcm_oss
snd_page_alloc 8180 1 snd_pcm
snd_usb_lib 13508 1 snd_usb_audio
snd_hwdep 6104 1 snd_usb_audio
snd_seq_midi 5688 0
snd_rawmidi 18580 2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event 6212 1 snd_seq_midi
snd_seq 42436 2 snd_seq_midi,snd_seq_midi_event
snd_timer 17436 2 snd_pcm,snd_seq
snd_seq_device 6136 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 49040 11 snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 6184 1 snd
usbcore 125872 6 snd_usb_audio,snd_usb_lib,usbhid,ehci_hcd,ohci_hcd
Best regards
07-30-2009, 12:59 PM
#9
Member
Registered: May 2009
Posts: 85
Rep:
Oh I notice that both cards are USB so both probably using snd-usb-audio. The the /etc/asound.conf or ~/.asoundrc solution is what will most likely work
Here is how I have used /etc/asound.conf on my MythTV box to make the card that is not first to be used
Code:
mythtv@mythtv-debian:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: HDA Generic [HDA Generic]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code:
mythtv@mythtv-debian:~$ cat /etc/asound.conf
pcm.!default {
type hw
card 0
device 3
}
pcm.!default {
type plug
slave.pcm "hdmi"
}
do a google search for asoundrc or asound.conf for a better understanding of how to use it.
This should set you in the right direction
Last edited by milomak; 07-30-2009 at 01:02 PM .
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 01:01 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News