[alsa-devel] getting the sound to work on my asus m6s00v

Raymond Yau superquad.vortex2 at gmail.com
Fri Mar 27 06:09:05 CET 2015


>>
>> I have done a couple of things
>> First I left the laptop off with no power connected;
>> This made the laptop awake in the non functional state regarding the
soundcard.
>> I then used this opportunity to update to the latest kernel.
>>
>> With the latest kernel, the sound is still not working.
>> Unmuting the S/PDIF in alsamixer turn on red light in the headphone jack.
>>
>> also, using 3stack-digout option doesn't bring back sound.
>>
>> This is the output from the alsa information tool
>>
http://www.alsa-project.org/db/?f=df46a9ee01e04dde11b194e0278c9f22594540d0
>>
>> after updating this is the output from various commands
>>
>> [
>> Nothing plugged in:
>> ./hdajacksensetest -a
>> Pin 0x14 (Green Headphone, Rear side): present = No
>> Pin 0x15 (Not connected): present = No
>> Pin 0x16 (Not connected): present = No
>> Pin 0x17 (Not connected): present = No
>> Pin 0x18 (Internal Mic): present = Yes
>> Pin 0x19 (Not connected): present = No
>> Pin 0x1a (Not connected): present = Yes
>> Pin 0x1b (Not connected): present = No
>> Pin 0x1c (Not connected): present = No
>> Pin 0x1d (Not connected): present = No
>> Pin 0x1e (Internal SPDIF Out, Mobile-In): present = No
>> Pin 0x1f (Not connected): present = No
>>
>> ./hda-verb /dev/snd/hwC0D0 0x1{4,5,8} SET_PIN_SENSE 0 nid
>> nid = 0x14, verb = 0x709, param = 0x0
>> value = 0x0
>>
>> nid = 0x15, verb = 0x709, param = 0x0
>> value = 0x0
>>
>> nid = 0x18, verb = 0x709, param = 0x0
>> value = 0x0
>>
>> ./hda-verb /dev/snd/hwC0D0 0x1{4,5,8} GET_PIN_SENSE 0 nid
>> nid = 0x14, verb = 0xf09, param = 0x0
>> value = 0x80001f41
>>
>> nid = 0x15, verb = 0xf09, param = 0x0
>> value = 0x80001f41
>>
>> nid = 0x18, verb = 0xf09, param = 0x0
>> value = 0x7fffffff
>> ]
>>

You need to issue get_pin_sense  after set_pin_sense of the same node to
get the impedance measurement of that node before you test another node

It is strange that your result is different from hdajacksensetest

>> [
>> With headphone plugged in
>> ./hdajacksensetest/hdajacksensetest -a
>> Pin 0x14 (Green Headphone, Rear side): present = No
>> Pin 0x15 (Not connected): present = Yes
>> Pin 0x16 (Not connected): present = No
>> Pin 0x17 (Not connected): present = No
>> Pin 0x18 (Internal Mic): present = Yes
>> Pin 0x19 (Not connected): present = No
>> Pin 0x1a (Not connected): present = Yes
>> Pin 0x1b (Not connected): present = No
>> Pin 0x1c (Not connected): present = No
>> Pin 0x1d (Not connected): present = No
>> Pin 0x1e (Internal SPDIF Out, Mobile-In): present = No
>> Pin 0x1f (Not connected): present = No
>>
>> // and also ecact same output for hda-verb as with nothing plugged in
>> ]
>>
>> [
>> with Mic plugged in, the following items changed
>>
>> ./hdajacksensetest/hdajacksensetest -a
>> Pin 0x14 (Green Headphone, Rear side): present = Yes
>> Pin 0x15 (Not connected): present = Yes
>> Pin 0x16 (Not connected): present = No
>> Pin 0x17 (Not connected): present = No
>> Pin 0x18 (Internal Mic): present = Yes
>> Pin 0x19 (Not connected): present = No
>> Pin 0x1a (Not connected): present = Yes
>> Pin 0x1b (Not connected): present = No
>> Pin 0x1c (Not connected): present = No
>> Pin 0x1d (Not connected): present = No
>> Pin 0x1e (Internal SPDIF Out, Mobile-In): present = No
>> Pin 0x1f (Not connected): present = No
>>
>> ./hda-verb /dev/snd/hwC0D0 0x15 GET_PIN_SENSE 0 nid
>> nid = 0x15, verb = 0xf09, param = 0x0
>> value = 0x7fffffff
>>
>> ./hda-verb /dev/snd/hwC0D0 0x18 GET_PIN_SENSE 0 nid
>> nid = 0x18, verb = 0xf09, param = 0x0
>> value = 0x80001f41
>> ]
>>
> It looks like the pin connection map as below:
>
> 0x14: external mic in jack
> 0x15: external headphone jack
> 0x18: internal mic
> 0x1a: internal speaker
> 0x1e: internal SPDIF Out

If sound work with the previous version ,

Either 0x14, 0x15 and 0x16 are the headphone and speaker

So internal mic is 0x1a and mic jack is 0x18 if hda jack sense test report
present when you plug the mic jack

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=29e3fdcc84e5da04cb7e6a36fee0a772c91d3b28

- * ALC880 ASUS model
- *
- * DAC: HP/Front = 0x02 (0x0c), Surr = 0x03 (0x0d), CLFE = 0x04 (0x0e)
- * Pin assignment: HP/Front = 0x14, Surr = 0x15, CLFE = 0x16,
- *  Mic = 0x18, Line = 0x1a
- */


More information about the Alsa-devel mailing list