alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd jack report and unsolicited event ad1988
@ 2011-05-05  7:05 Raymond Yau
  2011-05-05  9:50 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Raymond Yau @ 2011-05-05  7:05 UTC (permalink / raw)
  To: Takashi Iwai, ALSA Development Mailing List

2011/4/28 Takashi Iwai <tiwai@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-18  2:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05  7:05 snd jack report and unsolicited event ad1988 Raymond Yau
2011-05-05  9:50 ` Takashi Iwai
2011-05-09  3:56   ` Raymond Yau
2011-05-09 12:09     ` Takashi Iwai
2011-05-18  2:10       ` Raymond Yau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).