LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ALsa and Logitech quickcam pro 9000 (https://www.linuxquestions.org/questions/slackware-14/alsa-and-logitech-quickcam-pro-9000-a-687222/)

mwgrient 11-30-2008 06:09 AM

ALsa and Logitech quickcam pro 9000
 
All,
Thanks for reading.

Only if I reboot Slackware 12.1 without my webcam, I get sound. If I do otherwise my webcam becomes the default sound device.

Apparently I have to load the modules in the right order. What is the best way to do this permanent?

Here is some output.

lsusb
Bus 001 Device 005: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 004: ID 0830:0061 Palm, Inc. Lifedrive / Treo 650/680 / Tunsten E2/T5/TX / Zire 21/31/72 / Z22
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 002: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 003 Device 001: ID 0000:0000
-- End.

lsmod
Module Size Used by
snd_usb_audio 79584 1
snd_usb_lib 18432 1 snd_usb_audio
snd_rawmidi 22560 1 snd_usb_lib
snd_hwdep 10756 1 snd_usb_audio
ipv6 234724 16
snd_seq_dummy 6660 0
snd_seq_oss 32896 0
snd_seq_midi_event 10112 1 snd_seq_oss
snd_seq 50256 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 10380 4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 40352 0
snd_mixer_oss 17920 1 snd_pcm_oss
lp 13348 0
fuse 45588 3
rtc_cmos 11040 0
rtc_core 18696 1 rtc_cmos
parport_pc 27556 1
nvidia 6904916 26
rtc_lib 6528 1 rtc_core
parport 34632 2 lp,parport_pc
8139too 25600 0
mii 8448 1 8139too
skge 41104 0
snd_intel8x0 31900 3
snd_ac97_codec 98724 1 snd_intel8x0
ac97_bus 5760 1 snd_ac97_codec
snd_pcm 72068 4 snd_usb_audio,snd_pcm_oss,snd_intel8x0,snd_ac97_codec
thermal 16540 0
snd_timer 22532 2 snd_seq,snd_pcm
snd 47716 20 snd_usb_audio,snd_rawmidi,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd _intel8x0,snd_ac97_codec,snd_pcm,snd_timer
iTCO_wdt 13988 0
button 10000 0
visor 19596 0
intel_agp 25236 1
processor 32680 1 thermal
soundcore 9824 1 snd
iTCO_vendor_support 7044 1 iTCO_wdt
evdev 12672 3
snd_page_alloc 11528 2 snd_intel8x0,snd_pcm
usbserial 33384 1 visor
agpgart 30664 2 nvidia,intel_agp
shpchp 32788 0
i2c_i801 11792 0
sg 30224 0
-- End.

cladisch 12-01-2008 01:51 AM

Quote:

Only if I reboot Slackware 12.1 without my webcam, I get sound. If I do otherwise my webcam becomes the default sound device.

Apparently I have to load the modules in the right order. What is the best way to do this permanent?
Make sure that /etc/modprobe.d/alsa (or /etc/modprobe.conf, or whatever file contains your sound driver configuration) has the following lines:

Code:

alias snd-card-0 snd-intel8x0
alias snd-card-1 snd-usb-audio
options snd slots=snd-intel8x0,snd-usb-audio


Tuttle 12-13-2008 08:27 PM

Quote:

Originally Posted by cladisch (Post 3360141)
Code:

alias snd-card-0 snd-intel8x0
alias snd-card-1 snd-usb-audio
options snd slots=snd-intel8x0,snd-usb-audio


This has never worked for me. The only way to force a soundcard to do that (in my experience) is to recompile the kernel with the preferred card built in (ie. not as a module).

The above example didn't work for me, alsa threw up multiple errors at boot time. If there is a way to do this without recompiling my kernel I would love to know!

cladisch 12-15-2008 02:17 AM

Quote:

Originally Posted by Tuttle (Post 3374629)
The above example didn't work for me, alsa threw up multiple errors at boot time.

Please show the error messages.

Tuttle 12-15-2008 03:58 AM

Quote:

Originally Posted by cladisch (Post 3375853)
Please show the error messages.

Sure:
Code:

tuttle@shangrila:~$ dmesg
.........
blablabla
.........
snd: Unknown parameter `slots'
snd_timer: Unknown symbol snd_info_register
snd_timer: Unknown symbol snd_info_create_module_entry
snd_timer: Unknown symbol snd_info_free_entry
snd_timer: Unknown symbol snd_iprintf
snd_timer: Unknown symbol snd_ecards_limit
snd_timer: Unknown symbol snd_oss_info_register
snd_timer: Unknown symbol snd_unregister_device
snd_timer: Unknown symbol snd_device_new
snd_timer: Unknown symbol snd_register_device_for_dev
snd_pcm: Unknown symbol snd_info_register
snd_pcm: Unknown symbol snd_info_create_module_entry
snd_pcm: Unknown symbol snd_timer_notify
snd_pcm: Unknown symbol snd_timer_interrupt
snd_pcm: Unknown symbol snd_info_free_entry
snd_pcm: Unknown symbol snd_add_device_sysfs_file
snd_pcm: Unknown symbol snd_info_get_str
snd_pcm: Unknown symbol snd_ctl_register_ioctl
snd_pcm: Unknown symbol snd_card_file_add
snd_pcm: Unknown symbol snd_iprintf
snd_pcm: Unknown symbol snd_major
snd_pcm: Unknown symbol snd_unregister_device
snd_pcm: Unknown symbol snd_timer_new
snd_pcm: Unknown symbol snd_device_new
snd_pcm: Unknown symbol snd_ctl_unregister_ioctl
snd_pcm: Unknown symbol snd_lookup_minor_data
snd_pcm: Unknown symbol snd_info_create_card_entry
snd_pcm: Unknown symbol snd_power_wait
snd_pcm: Unknown symbol snd_device_free
snd_pcm: Unknown symbol snd_card_file_remove
snd_pcm: Unknown symbol snd_register_device_for_dev
snd_pcm: Unknown symbol snd_device_register
snd_pcm: Unknown symbol snd_info_get_line
snd_ac97_codec: Unknown symbol snd_info_register
snd_ac97_codec: Unknown symbol snd_ctl_add
snd_ac97_codec: Unknown symbol snd_info_free_entry
snd_ac97_codec: Unknown symbol snd_interval_refine
snd_ac97_codec: Unknown symbol snd_ctl_find_id
snd_ac97_codec: Unknown symbol snd_ctl_new1
snd_ac97_codec: Unknown symbol snd_ctl_remove_id
snd_ac97_codec: Unknown symbol snd_component_add
snd_ac97_codec: Unknown symbol snd_pcm_hw_rule_add
snd_ac97_codec: Unknown symbol snd_iprintf
snd_ac97_codec: Unknown symbol snd_ctl_boolean_mono_info
snd_ac97_codec: Unknown symbol snd_device_new
snd_ac97_codec: Unknown symbol snd_info_create_card_entry
snd_intel8x0: Unknown symbol snd_ac97_pcm_close
snd_intel8x0: Unknown symbol snd_ac97_resume
snd_intel8x0: Unknown symbol snd_pcm_new
snd_intel8x0: Unknown symbol snd_pcm_limit_hw_rates
snd_intel8x0: Unknown symbol snd_card_register
snd_intel8x0: Unknown symbol snd_card_free
snd_intel8x0: Unknown symbol snd_pcm_lib_preallocate_pages_for_all
snd_intel8x0: Unknown symbol snd_card_proc_new
snd_intel8x0: Unknown symbol snd_ac97_pcm_open
snd_intel8x0: Unknown symbol snd_ac97_set_rate
snd_intel8x0: Unknown symbol snd_ac97_update_bits
snd_intel8x0: Unknown symbol snd_ac97_mixer
snd_intel8x0: Unknown symbol snd_ac97_bus
snd_intel8x0: Unknown symbol snd_ac97_pcm_double_rate_rules
snd_intel8x0: Unknown symbol snd_ac97_update_power
snd_intel8x0: Unknown symbol snd_card_new
snd_intel8x0: Unknown symbol snd_ac97_suspend
snd_intel8x0: Unknown symbol snd_iprintf
snd_intel8x0: Unknown symbol snd_pcm_lib_malloc_pages
snd_intel8x0: Unknown symbol snd_pcm_lib_ioctl
snd_intel8x0: Unknown symbol snd_pcm_lib_free_pages
snd_intel8x0: Unknown symbol snd_pcm_set_ops
snd_intel8x0: Unknown symbol snd_pcm_hw_constraint_list
snd_intel8x0: Unknown symbol snd_device_new
snd_intel8x0: Unknown symbol snd_ac97_get_short_name
snd_intel8x0: Unknown symbol snd_pcm_suspend_all
snd_intel8x0: Unknown symbol snd_card_disconnect
snd_intel8x0: Unknown symbol snd_ac97_pcm_assign
snd_intel8x0: Unknown symbol snd_pcm_hw_constraint_integer
snd_intel8x0: Unknown symbol snd_pci_quirk_lookup
snd_intel8x0: Unknown symbol snd_pcm_hw_constraint_msbits
snd_intel8x0: Unknown symbol snd_pcm_period_elapsed
snd_intel8x0: Unknown symbol snd_ac97_tune_hardware
tuttle@shangrila:~$ alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
tuttle@shangrila:~$ lsmod | grep snd
snd_page_alloc        11528  0
tuttle@shangrila:~$

Looks like the "slots" option is not recognised

I have also used this in the past:
Code:

alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0

But still the cards swap at random...

cladisch 12-15-2008 04:28 AM

Quote:

Code:

snd: Unknown parameter `slots'

This parameter exists since ALSA 1.0.16 or kernel 2.6.25.

Quote:

Code:

snd_timer: Unknown symbol snd_info_register
...


This indicates that the "snd" and the "snd-timer" modules have not been compiled for the same kernel (configuration). In most cases, this happens when you try to load a newly compiled module although some old sound module is still loaded.

Quote:

I have also used this in the past:
Code:

alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0

But still the cards swap at random...
With earlier driver versions, you have to set the "index" option for each sound driver, like this:
Code:

alias snd-card-0 snd-intel8x0
alias snd-card-1 snd-usb-audio
options snd-intel8x0 index=0
options snd-usb-audio index=1


Tuttle 12-15-2008 05:00 AM

Code:

tuttle@shangrila:~$ uname -r
2.6.24.5-smp
tuttle@shangrila:~$ ls /var/adm/packages/alsa-
alsa-lib-1.0.15-i486-1    alsa-oss-1.0.15-i486-1    alsa-utils-1.0.15-i486-3

Slack is so backward! ;)

Great info cladisch, many thanks.

Tuttle 12-15-2008 05:27 AM

Your solution worked cladisch, thanks for your time.


All times are GMT -5. The time now is 06:40 AM.