[alsa-devel] Clevo P170HM / Sager NP8170 audio

Raymond Yau superquad.vortex2 at gmail.com
Sun Dec 4 00:59:15 CET 2011


2011/12/2 Julian Sikorski <belegdol at gmail.com>:
> W dniu 02.12.2011 01:52, Raymond Yau pisze:
>>>>>>
>>>>>> $ aplay -l
>>>>>> **** List of PLAYBACK Hardware Devices ****
>>>>>> card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>> card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>> card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>> card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>> card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>> card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
>>>>>>  Subdevices: 1/1
>>>>>>  Subdevice #0: subdevice #0
>>>>>>
>>
>> How many hdmi connectors on your nvidia ?
>>
>> From the viewpoint of the user, I expect only one PCM device for each
>> hdmi connector
>
> There is one hdmi and one dvi. I did not try sending sound via hdmi, though.
>

http://thread.gmane.org/gmane.linux.alsa.devel/92097

>>
>>
>> if you compled alsa-driver in debug mode, you should see the following
>> message in system log.
>>
> How would I do that? Which config option do I need to change?
>
>> realtek: Enable HP auto-muting on NID 0x1b
>> realtek: Enable Line-Out auto-muting on NID 0x17
>>

configure --with-debug=verbose

In theory, , the driver can automatically mute IEC958 Playback Switch
(turn off the red light for power saving) when you plug/unplug the
side jack which share with spdif

>> The drawback is "Front Playback Volume" and "Front Playback Switch"
>> does not control the "Headphone Jack" which used as "Front" jack
>
> Not really a drawback, since in an unpatched 3.1.2 kernel there are
> separate "Speaker" and "Headphone" controls which are independent of
> each other:
>
> http://www.alsa-project.org/db/?f=c8a6fc8ced6993631bad6f754249454323422d1a
>

speaker test or pulseaudio expect the "front volume" control the front
jack (i.e. your HP jack) in surround 40 , 51 or 71


>>
>>
>> Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
>>   Control: name="Headphone Playback Switch", index=0, device=0
>>     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
>>   Control: name="Headphone Jack", index=0, device=0
>>   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
>>   Amp-In vals:  [0x00 0x00]
>>   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>>   Amp-Out vals:  [0x00 0x00]
>>   Pincap 0x0001373e: IN OUT HP EAPD Detect Trigger
>>     Vref caps: HIZ 50 GRD 80 100
>>   EAPD 0x0:
>>   Pin Default 0x0121101f: [Jack] HP Out at Ext Rear
>>     Conn = 1/8, Color = Black
>>     DefAssociation = 0x1, Sequence = 0xf
>>   Pin-ctls: 0xc0: OUT HP VREF_HIZ
>>   Unsolicited: tag=01, enabled=1
>>   Power states:  D0 D1 D2 D3
>>   Power: setting=D0, actual=D0
>>   Connection: 5
>>      0x0c 0x0d 0x0e 0x0f 0x26*
>>
>> The other method is using  "hp_pin" instead of "speaker_pin" to assign
>> "Front" dac 0x02
>>
>> but this method won't create "headphone playback volume" and
>> "Headphone playback switch" since "hp_pin" is used to create "Front
>> Playback Volume" and "Front Playback Switch"
>>
>>
>>>>>> Summing up, when it comes to P150HM, the only missing piece is the
>>>>>> internal subwoofer. I tried emailing Andrew, who started this thread,
>>>>>> but got no answer so far. The problem might be that we might need to
>>>>>> figure out what is that THX TruStudio PRO is doing under Windows that
>>>>>> makes the internal subwoofer work.
>>>>>
>>>>>
>>>>> Take a look at the removed model="targa_8ch_dig" which touch those gpio
>>>>>
>>>>> Have you ask the notebook vendor clevo support/engineer the subwoofer
>>>>> is connected to which pin of alc892 ?
>>>>
>>>> I have just sent an email to Clevo UK Support. Let's see what they answer.
>>>
>>> I was forwarded to realtek. Is there any way to figure it out ourselves?
>>>
>>>>
>>
>> The remaining unused output pin is 0x15 and 0x16
>
> Yes, this is what we figured earlier already. If P170hm is any similar,
> 0x16 is the sub:
> http://mailman.alsa-project.org/pipermail/alsa-devel/2011-August/042981.html
> The problem is that, as opposed to 0x17, simply switching the pin from
> in to out and unmuting it does not make sound come out of the subwoofer.
> Can it be because the center/lfe channel is already assigned to the mic
> pin? Or do you think that THX is doing some sort of pre-amplification
> which we need to emulate?
>
> Julian
>

change one of the unused pin to  speaker pin by hda-jack-retask

http://thread.gmane.org/gmane.linux.alsa.devel/92229

assign hp to get dac 0x02 instead of speaker_pins[0]

you have to assign your 0x14 speaker and one of the unused pin of  to
spec->extra_out
and increase spec->speaker_outs from 1 to 2


8fa7ab48acb636d24669dab291807b487dfb2804

ALSA: hda - Fix surround/CLFE headphone and speaker pins order


More information about the Alsa-devel mailing list