[alsa-devel] Bug report - patch_realtek.c - Laptop HP COMPAQ B1900 Series

Raymond Yau superquad.vortex2 at gmail.com
Wed Feb 15 03:49:08 CET 2012


2012/2/15, Joey Jiao <joey.jiaojg at gmail.com>:
> Btw, for the code modification, I modified model will in
> patch_realtek.c which works same as the hda-verb command.
> From:
> static const struct hda_verb alc260_will_verbs[] = {
>         {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
>         {0x0b, AC_VERB_SET_CONNECT_SEL, 0x00},
>         {0x0d, AC_VERB_SET_CONNECT_SEL, 0x00},
>         {0x0f, AC_VERB_SET_EAPD_BTLENABLE, 0x02},
>         {0x1a, AC_VERB_SET_COEF_INDEX, 0x07},
>         {0x1a, AC_VERB_SET_PROC_COEF, 0x3040},
>         {}
> };
> To:
> static const struct hda_verb alc260_will_verbs[] = {
>         {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
>         {0x0b, AC_VERB_SET_CONNECT_SEL, 0x00},
>         {0x0d, AC_VERB_SET_CONNECT_SEL, 0x00},
>         {0x0f, AC_VERB_SET_EAPD_BTLENABLE, 0x02},
>         {0x1a, AC_VERB_SET_COEF_INDEX, 0x07},
>         {0x1a, AC_VERB_SET_PROC_COEF, 0x3040},
>         {0x01, AC_VERB_SET_GPIO_MASK, 0x01},
>         {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x01},
>         {}
> };
>
>
> 在 2012年2月15日 上午9:18,Joey Jiao <joey.jiaojg at gmail.com> 写道:
>> Hi all,
>> I solved the speaker problem of B1900, and I have you can fix the
>> driver in next alsa release.
>> I use hda-verb tool to enable sound from speaker.
>> Commands as below:
>> sudo hda-verb /dev/snd/hwC0D0 0x01 0x716 0x01
>> sudo hda-verb /dev/snd/hwC0D0 0x01 0x717 0x01
>>
>> Perhaps you need to add a new model besides will. Meanwhile, auto
>> detect of headphone inserting is not function, so speaker and
>> headphone don't switch automatically.
>>
>>
>> 在 2012年2月15日 上午8:50,Raymond Yau <superquad.vortex2 at gmail.com> 写道:
>>>
>>> The auto-parser require correct pin default
>>>
>>> Refer to alc260 General Description
>>>
>>> Realtek's proprietary impedance sensing and jack detect techniques
>>> allow device loads on inputs and outputs to be auto-detected. All
>>> analog IOs are input and output capable. Headphone amplifiers are also
>>> integrated at each analog output. All analog IOs can be re-tasked
>>> according to user's definitions, or automatically switched to suit the
>>> connecting device (Universal Audio Jack®).
>>>
>>> Reserve analog mixer architecture is backwards compatible with AC'97
>>
>>

the function is_jack_detectable() has been changed to check
AC_DEFCFG_MISC_NO_PRESENCE

http://thread.gmane.org/gmane.linux.alsa.devel/90911/focus=91215

I guess Takashi Iwai expect you to provide a pin fixup patch which
provide the pin location of the speaker , internal mic, headphone and
external mic jack for the auto parser

Refer to #25

>> Adding micphone detect:
>> $ sudo hda-verb /dev/snd/hwC0D0 0x12 0xF09 0x0
>> nid = 0x12, verb = 0xf09, param = 0x0
>>value = 0x800000c8

does impedence sense require some delay to get the accurate reading ?
it seem the microphone has a much higher impedenance than your result
0xc8


More information about the Alsa-devel mailing list