First of all please forgive me, if I am doing something wrong. This is my first post here.
I have an Acer Aspire One DMA250 PC running Meego 1.0. In an application i am making
i need to check if headphones are connected to the soundcard minijack output or playback is
over the builtin loudspeakers. To do that i do something like shown in the attached jacksensetest.c
example. It works on another Dell PC running Ubuntu I have. On the Acer Aspire One PC there was
no /dev/input/eventX present which held information about the sound card but everything was
working fine beside that.
The Acer Aspire one PC has an Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller
(rev 02) and Realtek ALC272X codec.
My Meego kernel version is 220.127.116.11-6-netbook. It is the Linux kernel from kernel.org with a few
patches applied.In order to get jack sensing working i tried to apply the following patch:
and defined CONFIG_SND_HDA_INPUT_JACK
Now I have
/dev/input/event6: "HDA Intel Mic"
/dev/input/event7: "HDA Intel Headphone"
but I am still not able to do jack sensing. If I use ioctl to query /dev/input/event7
(like in jacksensetest.c) it always returns 0 (not connected).
Now I have started to dig deeper into the kernel/driver code and have inserted a lot of printk()'s
in the patch_realtek.c file. It shows me that the jack sensing events are not generated when
If I run HDAAnalyzer it does not list "Input Sense" in the PIN Caps list for the Jack HP out PIN (0x21).
That makes me think that it is either not supported or somehow I have to activate this functionality.
Jack sensing should be supported and it also works in Windows 7.
Does anyone know how to enable this jack sensing feature?
Or maybe I am doing things wrong or overlooking something?