Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA Sound Problem. Laptop plays both outputs at once.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nightowl_44
n00b
n00b


Joined: 08 Apr 2007
Posts: 7

PostPosted: Tue Jul 24, 2007 7:35 am    Post subject: ALSA Sound Problem. Laptop plays both outputs at once. Reply with quote

Okay, so I've had alsa installed as my sound driver for a while on my Compaq Presario V3000 laptop. I believe it uses the Intel HD/Conexant Audio device or something. Anyway, whenever I have to use my sound for playing music or whatever, I have to manually change the volume for either the headphone jack or the built-in speakers. In other words, the alsa system sees my two outputs as separate streams. So if I plug in my headphones, the speakers still play unless I mute the speakers and I still have to turn up the volume on my headphones after that. Most systems seem to use the combination of speakers and headphones as one unit, depending whether or not there is a jack in the headphone jack. When I tried Ubuntu a quite a while ago on my laptop, the sound system worked in the manner I expected and my lighted up buttons worked to change the volume (I can't seem to make them work with gnome). I don't know why my sound is so strangely set up, but does anyone know how to configure it so that these weird sound problems don't make switching to headphones a hassle? Thanks in advance to any help. I've only seen one guy with a similar problem and he was strangely using my laptop on ubuntu.
_________________
Jesus is never what anyone thinks. We get close to understanding some of the basics, but really He is never completely fathomed by anyone. He is my Savior, and that's all I am really capable of knowing.
Back to top
View user's profile Send private message
InvalidComponent
n00b
n00b


Joined: 22 Jan 2007
Posts: 28

PostPosted: Tue Jul 24, 2007 9:12 am    Post subject: Reply with quote

What devices do you have under /dev/sound?
Back to top
View user's profile Send private message
nightowl_44
n00b
n00b


Joined: 08 Apr 2007
Posts: 7

PostPosted: Tue Jul 24, 2007 6:17 pm    Post subject: Reply with quote

These are my devices under /dev/sound:

[code]localhost nightowl # ls /dev/sound/
audio dsp mixer[/code]

Thanks for your help.
_________________
Jesus is never what anyone thinks. We get close to understanding some of the basics, but really He is never completely fathomed by anyone. He is my Savior, and that's all I am really capable of knowing.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Jul 24, 2007 6:25 pm    Post subject: Reply with quote

I had the same problem. Make sure your card is being detected as the right model (check dmesg) and more than likely both sources will have their own volume meter. Example: my card is the 3stack-dig model, and "Front" controls the speaker and "3D" controls the headphone jack (I haven't figured out what's up with that yet :P )
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
InvalidComponent
n00b
n00b


Joined: 22 Jan 2007
Posts: 28

PostPosted: Tue Jul 24, 2007 7:02 pm    Post subject: Reply with quote

Is this 'problem' possible to be achieved with most sound cards? It would be cool to have four speakers on my laptop and therefore 3D sound! :D
Back to top
View user's profile Send private message
nightowl_44
n00b
n00b


Joined: 08 Apr 2007
Posts: 7

PostPosted: Tue Jul 24, 2007 7:13 pm    Post subject: Reply with quote

Well, my dmesg shows only one ALSA device, but I will print the parts I think are applicable.

[code]Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 23
GSI 16 sharing vector 0xC9 and IRQ 16
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LAZA] -> GSI 23 (level, high) -> IRQ 201
PCI: Setting latency timer of device 0000:00:10.1 to 64
ALSA device list:
#0: HDA NVidia at 0xc0000000 irq 201[/code]

[code]NVRM: loading NVIDIA UNIX x86_64 Kernel Module 1.0-9755 Mon Feb 26 23:16:31 PST 2007
snd_page_alloc: exports duplicate symbol snd_dma_alloc_pages (owned by kernel)
snd: exports duplicate symbol snd_major (owned by kernel)
snd_timer: disagrees about version of symbol snd_info_register
snd_timer: Unknown symbol snd_info_register
snd_timer: disagrees about version of symbol snd_info_create_module_entry
snd_timer: Unknown symbol snd_info_create_module_entry
snd_timer: disagrees about version of symbol snd_info_free_entry
snd_timer: Unknown symbol snd_info_free_entry
snd_timer: Unknown symbol snd_verbose_printk
snd_timer: disagrees about version of symbol snd_unregister_device
snd_timer: Unknown symbol snd_unregister_device
snd_timer: disagrees about version of symbol snd_device_new
snd_timer: Unknown symbol snd_device_new
snd_timer: disagrees about version of symbol snd_register_device
snd_timer: Unknown symbol snd_register_device
snd_pcm: disagrees about version of symbol snd_info_register
snd_pcm: Unknown symbol snd_info_register
snd_pcm: disagrees about version of symbol snd_info_create_module_entry
snd_pcm: Unknown symbol snd_info_create_module_entry
snd_pcm: disagrees about version of symbol snd_ctl_unregister_ioctl_compat
snd_pcm: Unknown symbol snd_ctl_unregister_ioctl_compat
snd_pcm: disagrees about version of symbol snd_timer_notify
snd_pcm: Unknown symbol snd_timer_notify
snd_pcm: disagrees about version of symbol snd_timer_interrupt
snd_pcm: Unknown symbol snd_timer_interrupt
snd_pcm: disagrees about version of symbol snd_info_free_entry
snd_pcm: Unknown symbol snd_info_free_entry
snd_pcm: Unknown symbol snd_add_device_sysfs_file
snd_pcm: Unknown symbol snd_verbose_printk
snd_pcm: disagrees about version of symbol snd_ctl_register_ioctl
snd_pcm: Unknown symbol snd_ctl_register_ioctl
snd_pcm: disagrees about version of symbol snd_card_file_add
snd_pcm: Unknown symbol snd_card_file_add
snd_pcm: disagrees about version of symbol snd_unregister_device
snd_pcm: Unknown symbol snd_unregister_device
snd_pcm: disagrees about version of symbol snd_timer_new
snd_pcm: Unknown symbol snd_timer_new
snd_pcm: disagrees about version of symbol snd_device_new
snd_pcm: Unknown symbol snd_device_new
snd_pcm: disagrees about version of symbol snd_ctl_unregister_ioctl
snd_pcm: Unknown symbol snd_ctl_unregister_ioctl
snd_pcm: disagrees about version of symbol snd_ctl_register_ioctl_compat
snd_pcm: Unknown symbol snd_ctl_register_ioctl_compat
snd_pcm: disagrees about version of symbol snd_info_create_card_entry
snd_pcm: Unknown symbol snd_info_create_card_entry
snd_pcm: disagrees about version of symbol snd_power_wait
snd_pcm: Unknown symbol snd_power_wait
snd_pcm: disagrees about version of symbol snd_device_free
snd_pcm: Unknown symbol snd_device_free
snd_pcm: disagrees about version of symbol snd_card_file_remove
snd_pcm: Unknown symbol snd_card_file_remove
snd_pcm: disagrees about version of symbol snd_device_register
snd_pcm: Unknown symbol snd_device_register
snd_pcm: disagrees about version of symbol snd_register_device
snd_pcm: Unknown symbol snd_register_device
snd_hda_codec: disagrees about version of symbol snd_ctl_add
snd_hda_codec: Unknown symbol snd_ctl_add
snd_hda_codec: disagrees about version of symbol snd_card_proc_new
snd_hda_codec: Unknown symbol snd_card_proc_new
snd_hda_codec: disagrees about version of symbol snd_ctl_find_id
snd_hda_codec: Unknown symbol snd_ctl_find_id
snd_hda_codec: Unknown symbol snd_verbose_printk
snd_hda_codec: disagrees about version of symbol snd_ctl_new1
snd_hda_codec: Unknown symbol snd_ctl_new1
snd_hda_codec: disagrees about version of symbol snd_component_add
snd_hda_codec: Unknown symbol snd_component_add
snd_hda_codec: disagrees about version of symbol snd_ctl_elem_read
snd_hda_codec: Unknown symbol snd_ctl_elem_read
snd_hda_codec: disagrees about version of symbol snd_ctl_elem_write
snd_hda_codec: Unknown symbol snd_ctl_elem_write
snd_hda_codec: disagrees about version of symbol snd_pcm_hw_constraint_list
snd_hda_codec: Unknown symbol snd_pcm_hw_constraint_list
snd_hda_codec: disagrees about version of symbol snd_device_new
snd_hda_codec: Unknown symbol snd_device_new
snd_hda_codec: disagrees about version of symbol snd_pcm_hw_constraint_step
snd_hda_codec: Unknown symbol snd_pcm_hw_constraint_step
snd_hda_intel: disagrees about version of symbol snd_pcm_new
snd_hda_intel: Unknown symbol snd_pcm_new
snd_hda_intel: disagrees about version of symbol snd_pcm_limit_hw_rates
snd_hda_intel: Unknown symbol snd_pcm_limit_hw_rates
snd_hda_intel: disagrees about version of symbol snd_card_register
snd_hda_intel: Unknown symbol snd_card_register
snd_hda_intel: disagrees about version of symbol snd_card_free
snd_hda_intel: Unknown symbol snd_card_free
snd_hda_intel: disagrees about version of symbol snd_pcm_lib_preallocate_pages_for_all
snd_hda_intel: Unknown symbol snd_pcm_lib_preallocate_pages_for_all
snd_hda_intel: disagrees about version of symbol snd_hda_bus_new
snd_hda_intel: Unknown symbol snd_hda_bus_new
snd_hda_intel: disagrees about version of symbol snd_hda_build_pcms
snd_hda_intel: Unknown symbol snd_hda_build_pcms
snd_hda_intel: Unknown symbol snd_verbose_printk
snd_hda_intel: disagrees about version of symbol snd_hda_codec_new
snd_hda_intel: Unknown symbol snd_hda_codec_new
snd_hda_intel: disagrees about version of symbol snd_hda_queue_unsol_event
snd_hda_intel: Unknown symbol snd_hda_queue_unsol_event
snd_hda_intel: disagrees about version of symbol snd_card_new
snd_hda_intel: Unknown symbol snd_card_new
snd_hda_intel: disagrees about version of symbol snd_pcm_lib_malloc_pages
snd_hda_intel: Unknown symbol snd_pcm_lib_malloc_pages
snd_hda_intel: disagrees about version of symbol snd_pcm_lib_ioctl
snd_hda_intel: Unknown symbol snd_pcm_lib_ioctl
snd_hda_intel: disagrees about version of symbol snd_pcm_lib_free_pages
snd_hda_intel: Unknown symbol snd_pcm_lib_free_pages
snd_hda_intel: disagrees about version of symbol snd_pcm_set_ops
snd_hda_intel: Unknown symbol snd_pcm_set_ops
snd_hda_intel: disagrees about version of symbol snd_hda_suspend
snd_hda_intel: Unknown symbol snd_hda_suspend
snd_hda_intel: disagrees about version of symbol snd_device_new
snd_hda_intel: Unknown symbol snd_device_new
snd_hda_intel: disagrees about version of symbol snd_pcm_suspend_all
snd_hda_intel: Unknown symbol snd_pcm_suspend_all
snd_hda_intel: disagrees about version of symbol snd_hda_resume
snd_hda_intel: Unknown symbol snd_hda_resume
snd_hda_intel: disagrees about version of symbol snd_pcm_hw_constraint_integer
snd_hda_intel: Unknown symbol snd_pcm_hw_constraint_integer
snd_hda_intel: disagrees about version of symbol snd_hda_build_controls
snd_hda_intel: Unknown symbol snd_hda_build_controls
snd_hda_intel: disagrees about version of symbol snd_pcm_period_elapsed
snd_hda_intel: Unknown symbol snd_pcm_period_elapsed[/code]

Those are the parts I believe have anything to do with my sound. I would like to also note that my driver is compiled straight into the kernel instead of modularized, if that will help at all. Sound configuration is one of the few things I don't really know much about in linux. sonicbhoc, did you find a way to make the ALSA system recognize your device as one thing? I believe we have a similar issue, that ALSA is treating our sound as two separate devices, instead of one. Also, InvalidComponent, I believe you are mistaken about what the "problem" is. I don't get 3D sound, I just get the same sound coming out of my headphones and speakers at the same time.
_________________
Jesus is never what anyone thinks. We get close to understanding some of the basics, but really He is never completely fathomed by anyone. He is my Savior, and that's all I am really capable of knowing.
Back to top
View user's profile Send private message
minor_prophets
Apprentice
Apprentice


Joined: 07 Oct 2007
Posts: 281

PostPosted: Fri Feb 20, 2009 5:15 pm    Post subject: Reply with quote

nightowl_44:

For sake of the thread, here's the solution to your unknown symbol issue. From the ALSA guide(though it may not have been there when you originally posted this)

Quote:
Code Listing 3.11: dmesg output

(Only relevant portions are shown below)
# dmesg | less
ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [APC3] -> GSI 18 (level, low) -> IRQ 209
snd_mixer_oss: Unknown symbol snd_unregister_oss_device
snd_mixer_oss: Unknown symbol snd_register_oss_device
snd_mixer_oss: Unknown symbol snd_mixer_oss_notify_callback
snd_mixer_oss: Unknown symbol snd_oss_info_register
snd_pcm_oss: Unknown symbol snd_unregister_oss_device
snd_pcm_oss: Unknown symbol snd_register_oss_device
snd_pcm_oss: Unknown symbol snd_mixer_oss_ioctl_card
snd_pcm_oss: Unknown symbol snd_oss_info_register
snd_mixer_oss: Unknown symbol snd_unregister_oss_device
snd_mixer_oss: Unknown symbol snd_register_oss_device
snd_mixer_oss: Unknown symbol snd_mixer_oss_notify_callback
snd_mixer_oss: Unknown symbol snd_oss_info_register

The above issue is caused when you switch from the alsa-driver to in-kernel ALSA because when you unmerge alsa-driver the module files are config protected and hence get left behind. So, when you switch to in-kernel drivers, running modprobe gives you a mix of alsa-driver and in-kernel modules thus causing the above errors.

The solution is quite easy. We just need to manually remove the problem causing directory after you unmerge alsa-driver. Be sure to remove the correct kernel version and not the current one!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum