Skip to contentSkip to conversation

ALC883 codec and jack sense issue

DISCUSSION Andrew L. Neporada 2 participants 3 messages Nov 13, 2006

lore
Share & tools
lore
#0 lore raw

Hi!

It seems that snd_hda_intel driver fails to detect hp/mic/line jack presense with ALC883 codec.

According to Realtek's specs (and practice) ALC883 doesn't generate unsolicited events in this case, so the only way to detect jack is to periodically poll appropriate pin complex with AC_VERB_GET_PIN_SENSE. AFAIK, there is currently no way to do such thing.

The idea is to add a new function to hda_codec_ops:
void (*poll)(struct hda_codec *codec)
and run it as a separate thread after codec init phase is done.

What do you think?

Andrew.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#1 lore raw

At Mon, 13 Nov 2006 16:04:10 +0300,

Quoted 8 lines · Andrew L. Neporada

Hi!

It seems that snd_hda_intel driver fails to detect hp/mic/line jack presense with ALC883 codec.

According to Realtek's specs (and practice) ALC883 doesn't generate unsolicited events in this case,

Really? AFAIK, all port pins can generate unsolicited events, according to the datasheet version 1.2 (see section 8.21).

Quoted 7 lines

so the only way to detect jack is to
periodically poll appropriate pin complex with AC_VERB_GET_PIN_SENSE. AFAIK, there is currently no way to do such thing.

The idea is to add a new function to hda_codec_ops:
void (*poll)(struct hda_codec *codec)
and run it as a separate thread after codec init phase is done.

I don't think we need a common callback for this particular codec. Each codec routine can create a workqueue if needed.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw

В Пнд, 13/11/2006 в 15:25 +0100, Takashi Iwai пишет:

Quoted 5 lines

At Mon, 13 Nov 2006 16:04:10 +0300,

Quoted 3 lines · Andrew L. Neporada

Hi!

Quoted 9 lines
Quoted 5 lines

It seems that snd_hda_intel driver fails to detect hp/mic/line jack presense with ALC883 codec.

According to Realtek's specs (and practice) ALC883 doesn't generate unsolicited events in this case,

Really? AFAIK, all port pins can generate unsolicited events, according to the datasheet version 1.2 (see section 8.21).

You are right. I had missed this section. ALC883 generates unsolicited events as expected. Thanks.

Andrew.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel