[alsa-devel] snd jack report and unsolicited event ad1988
Raymond Yau
superquad.vortex2 at gmail.com
Thu May 5 09:05:41 CEST 2011
2011/4/28 Takashi Iwai <tiwai at suse.de>
> At Thu, 28 Apr 2011 21:10:23 +0800,
> Raymond Yau wrote:
> >
>
> > Still unable to enable the unsolicited event for jack sense even if I add
> > the unsol_event and verb for the audio jacks at rear panel since I don't
> > have the HDA compilant front audio panel
> >
> > SoundMax automatically popup immediately when jack is plug into the rear
> > panel at other OS, so the hardware is capable of jack sense at rear panel
> >
> > AFG Function Id: 0x1 (unsol 0)
> >
> > Is there any trick to enable/debug the unsolicited event ?
> > seem unsol event is disabled in the HDA controller
>
> No, there shouldn't be big differences. Otherwise it won't work on
> any other machines.
>
> There might be other way to trigger the jack detection, e.g. GPIO
> unsolicited event, depending on the codec chip. I don't remember how
> is AD1988, though...
>
>
> OK, after a few experiments, unsolicited events seem to work for those rear
panel jacks
1) for the unsolicited event , different tags have to be assigned for six
different jacks
This mean that the driver need to define FRONT_MIC_EVENT, REAR_MIC_EVENT,
LINE_IN_EVENT in addition to HP_EVENT
Can snd_jack_report used to report the mic event of two pink jacks (front
panel and rear panel) of the desktop to the user space program?
2) when the jack is plug in or out. , snd_hda_jack_detect() work with
no_trigger_sense=1 to detect jack presence but the driver get several
unsolicited responses with no_trigger_sense=0
3) snd_hda_pin_sense() need trigger sense to get the Impedance
it usually get the value of 0x7FFF,FFFF and need to wait for a while to get
the sense measurement
(all1’s) indicates that a valid sense reading is not available, or the sense
measurement is busy if it has been recently triggered
More information about the Alsa-devel
mailing list