alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: Takashi Iwai <tiwai@suse.de>,
	ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: snd jack report and unsolicited event ad1988
Date: Thu, 5 May 2011 15:05:41 +0800	[thread overview]
Message-ID: <BANLkTikbOGHJp9VJ+yyA4dJxgcbuNk4LeA@mail.gmail.com> (raw)

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

             reply	other threads:[~2011-05-05  7:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05  7:05 Raymond Yau [this message]
2011-05-05  9:50 ` snd jack report and unsolicited event ad1988 Takashi Iwai
2011-05-09  3:56   ` Raymond Yau
2011-05-09 12:09     ` Takashi Iwai
2011-05-18  2:10       ` Raymond Yau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikbOGHJp9VJ+yyA4dJxgcbuNk4LeA@mail.gmail.com \
    --to=superquad.vortex2@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).