LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   How to fix when audio is heared both in headphone and inbuilt speaker of laptop (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/how-to-fix-when-audio-is-heared-both-in-headphone-and-inbuilt-speaker-of-laptop-471586/)

san_irtt 08-07-2006 09:16 AM

How to fix when audio is heared both in headphone and inbuilt speaker of laptop
 
Hi,

I am having a strange problem in my laptop( Dell latitude 620). I have installed mandriva linux.

Even if i connect headphones in the jack provided, the audio can be heared both in headphone and also through inbuilt speakers of the laptop.

I am using AlsaMixer v1.0.9.


please see the technical details below:



[root@santhosh santhosh]# uname -a
Linux santhosh 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz unknown GNU/Linux




[root@santhosh santhosh]# lsmod | grep snd
snd_seq_dummy 3524 0
snd_seq_oss 33024 0
snd_seq_midi_event 6880 1 snd_seq_oss
snd_seq 51504 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 7884 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 50368 0
snd_mixer_oss 17952 1 snd_pcm_oss
snd_hda_intel 14752 1
snd_hda_codec 83872 1 snd_hda_intel
snd_pcm 83812 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 22596 2 snd_seq,snd_pcm
snd_page_alloc 9384 2 snd_hda_intel,snd_pcm
snd 48644 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_pcm,snd _timer
soundcore 8256 1 snd



[root@santhosh santhosh]# lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controllers cc=IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
03:01.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Intel Corporation: Unknown device 4222 (rev 02)

masonm 08-07-2006 09:18 AM

First question I have is whether you're dual booting and having the same problems in windows. It sounds like a mechanical problem in the headphone jack which is supposed to interrupt the signal to the speakers.

san_irtt 08-08-2006 12:04 AM

Hi Mason,

Thanks for your reply....
We had totally bought 4 laptops with exactly same configuration. In two of the laptops we had installed Windows XP. In the other two we had installed Mandriva linux. The windows laptop doesn't have any problem like this. But the other two Linux laptops are having the same problem. We haven't installed dual operating system on any laptop...

Regards,
Santhosh

san_irtt 08-10-2006 03:41 AM

The issue is not resolved yet.
Is there anybody to help me ????

ciotog 08-12-2006 04:16 PM

Open up alsamixer, and look for an entry that simply says "Headphone" with no volume bar. If you scroll over to select it, the "Item" at the top should say something like "Headphone Jack Sense [Off]". You will want to press 'M' to enable this option (which isn't even offered as an option in Windows...).

san_irtt 08-14-2006 12:42 AM

Hi ciotog,

Thanks for your reply.
I opened the alsamixer window by typing the command 'alsamixer'
There I couldn't find any option as 'Headphone'

The options listed are
1) Master
2) PCM
3) IEC958
4) Capture
5) Input Source


Please correct me if i am wrong.



Sorry, I tried to post the screen shot of that window as an image attachment. But i couldn't find any option for image attachment in this forum.

ciotog 08-14-2006 01:50 AM

Hmm... Maybe that option isn't offered for the driver for your card. Have you tried compiling the most recent version of alsa? Maybe it's been added since 1.0.9

san_irtt 08-15-2006 01:26 AM

I tried installing the latest verion. But i get the following error.
I dont know how to fix this.



[root@santhosh alsa-driver-1.0.11]# ./configure --with-kernel=/usr/src/linux-2.4.20/ --with-cards=hda-intel --with-sequencer=yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/alsa/alsa-driver-1.0.11
checking cross compile...
checking for directory with kernel source... /usr/src/linux-2.4.20/
checking for directory with kernel build...
checking for kernel linux/version.h... yes
checking for kernel linux/autoconf.h... yes
checking for kernel version... 2.4.20
checking for GCC version... Kernel compiler: gcc 2.95.3 20010315 (release) Used compiler: gcc (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
checking for built-in ALSA... no
checking for existing ALSA module... no
checking for Red Hat kernel... auto
checking for Red Hat kernel... no
checking for SUSE kernel... auto
checking for SUSE kernel... no
checking to modify of kernel linux/kmod.h... no
checking for kernel linux/compiler.h... yes
checking for kernel linux/pm.h... yes
checking for kernel linux/spinlock.h... yes
checking for kernel linux/irq.h... yes
checking for kernel linux/threads.h... yes
checking for kernel linux/rwsem.h... yes
checking for kernel linux/gameport.h... yes
checking for kernel linux/devfs_fs_kernel.h... yes
checking for kernel linux/highmem.h... yes
checking for kernel linux/workqueue.h... no
Creating a dummy <linux/workqueue.h>...
checking for kernel linux/dma-mapping.h... no
Creating a dummy <linux/dma-mapping.h>...
checking for kernel asm/hw_irq.h... yes
checking for kernel linux/device.h... no
Creating <linux/device.h>...
checking for kernel linux/platform_device.h... no
Creating <linux/platform_device.h>...
checking for kernel linux/jiffies.h... no
Creating <linux/jiffies.h>...
checking for kernel linux/compat.h... no
Creating <linux/compat.h>...
checking for kernel linux/adb.h... yes
checking for kernel linux/cuda.h... yes
checking for kernel linux/pmu.h... yes
checking for kernel linux/moduleparam.h... no
Creating a dummy <linux/moduleparam.h>...
checking for kernel linux/syscalls.h... no
Creating <linux/syscalls.h>...
checking for kernel linux/firmware.h... no
Creating <linux/firmware.h>...
checking for kernel linux/err.h... no
Creating <linux/err.h>...
checking for kernel linux/bitmap.h... no
Creating <linux/bitmap.h>...
checking for kernel linux/mutex.h... no
Creating <linux/mutex.h>...
checking for exported symbol dump_stack... yes
checking for kernel module symbol versions... yes
checking for PCI support in kernel... yes
checking for I2C driver in kernel... module
checking for firmware loader... unknown
checking for input subsystem in kernel... module
checking for directory to store kernel modules... /lib/modules/2.4.20/kernel/sound
checking for verbose procfs... on
checking for verbose printk... on
checking for debug level... none
checking for ISA support in kernel... yes
checking for processor type... i686
checking for SMP... no
checking for Video device support in kernel... yes
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... no
checking for Kernel ISA-PnP support... yes
checking for ISA PnP support... yes
checking for strlcpy... no
checking for snprintf... no
checking for vsnprintf... no
checking for scnprintf... no
checking for sscanf... no
checking for vmalloc_to_page... no
checking for old kmod... yes
checking for PDE... no
checking for pci_set_consistent_dma_mask... no
checking for pci_dev_present... no
checking for msleep... no
checking for msecs_to_jiffies... no
checking for tty->count is the atomic type... no
checking for video_get_drvdata... no
checking for io_remap_pfn_range... no
checking for new io_remap_page_range... no
checking for kcalloc... no
checking for kstrdup... no
checking for kzalloc... no
checking for create_workqueue with flags... no
checking for saved_config_space in pci_dev... no
checking for register_sound_special_device... no
Symlinking <linux/pnp.h>...
checking for driver version... 1.0.11
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for OSS PCM plugin system inclusion... yes
checking for RTC callback support in kernel... may be buggy, skipped
checking for HPET support... no
checking for dynamic minor numbers... no
checking for support of old API... yes
checking for Procfs support... yes
checking for USB support... yes
checking for PC-Speaker hook... no
checking for kernel PCMCIA
checking for PCMCIA support... yes
checking for PC9800 support in kernel... no
checking for parallel port support... yes
checking for which soundcards to compile driver for... hda-intel
configure: creating ./config.status
config.status: creating version
config.status: creating Makefile.conf
config.status: creating snddevices
config.status: creating utils/alsa-driver.spec
config.status: creating utils/buildrpm
config.status: creating toplevel.config
config.status: creating utils/alsasound
config.status: creating utils/alsasound.posix
config.status: creating include/pci_ids_compat.h
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/config1.h
config.status: include/config1.h is unchanged
config.status: creating include/version.h
config.status: include/version.h is unchanged
config.status: creating include/autoconf-extra.h
config.status: include/autoconf-extra.h is unchanged




[root@santhosh alsa-driver-1.0.11]# make
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.11/acore'
copying file alsa-kernel/core/memalloc.c
/bin/sh: patch: command not found
make[1]: *** [memalloc.c] Error 127
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.11/acore'
make: *** [compile] Error 1

ciotog 08-15-2006 11:29 AM

Do you have the patch command?
Code:

which patch
If not, this is actually a bug in the configure script, since it should check for the presence of patch if required.

The "--with-kernel" option isn't really required, it will be detected automatically in most situations. Do you have kernel source installed for your kernel? If not, you'll have to install it first: http://linuxfornewbies.org/forum/ind...opic,18.0.html

san_irtt 08-16-2006 12:54 AM

Yes am not having the patch command in my system.
Where can i get it and how should i install it.

ciotog 08-16-2006 01:36 AM

You can get the patch rpm here:
http://fr.rpmfind.net/linux/rpm2html...hp?query=patch

Of course if you don't have "patch" installed I wonder what else is missing...

You could try installing 3rd party alsa rpms, for example from here:
http://www.mde.djura.org/index2006.0.html

san_irtt 08-16-2006 02:08 AM

Thanks ciotog,

I have installed the 'patch' package and the kernel source package for my kernel.

The driver installed successfully but the problem persist again.....

ciotog 08-16-2006 02:34 AM

That's too bad... The notebook I have at work uses the atiixp driver and it has lots of different settings, including the "headphone sense". I wonder how hard it would be to implement such a thing with the hda-intel driver?

FWIW my home computer doesn't have the "headphone sense" option either.

mango1122 08-16-2006 03:23 AM

hi me too facing the same prob.i have hp 2002 tu.

osbie 08-16-2006 05:43 AM

Here is your answer http://www.fzu.cz/~kolorenc/d620/ as i thought, a kernel thing. hope it works for you.


All times are GMT -5. The time now is 01:23 AM.