Skip to contentSkip to conversation

getting the sound to work on my asus m6s00v

DISCUSSION Christian Gleerup 4 participants 28 messages Mar 17, 2015 – May 22, 2015 6 messages not in the archive Sound

lore
Share & tools
lore
#0 lore raw

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read it)

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that faded into nothing.

with help from debianuser on freenode#alsa we managed to get it working.
the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is fine)
* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the volume of the recording level, all others

Notice:
I don't have OSS or pulseaudio installed.

I am thinking it would be really nice if the driver automatically could detect that this option is required.

this is the output from the alsa-info script
http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

let me know if I can do anything to help with this.

Regards.

#1 lore raw
Quoted 19 lines · Christian Gleerup

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read it)

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that faded into nothing.

with help from debianuser on freenode#alsa we managed to get it working.
the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is fine)
* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the volume of the recording level, all others

Notice:
I don't have OSS or pulseaudio installed.

Quoted 6 lines

I am thinking it would be really nice if the driver automatically could detect that this option is required.

this is the output from the alsa-info script
http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

let me know if I can do anything to help with this.

It seems the latest kernel already had a fixup for this machine, but the fixup is ALC880_FIXUP_ASUS_W5A instead of ALC880_FIXUP_3ST_DIG. Probably you should use latest upstream kernel without "model=3stack-digout" to test again, if it can't fix your problem, maybe the patch below can work.

sound/pci/hda/patch_realtek.c +1 -1
@@ -1349,7 +1349,7 @@ static const struct hda_fixup alc880_fixups[] = {
 
 static const struct snd_pci_quirk alc880_fixup_tbl[] = {
        SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P", ALC880_FIXUP_W810),
-       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_ASUS_W5A),
+       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_3ST_DIG),
        SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
        SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
        SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE", 

ALC880_FIXUP_6ST_AUTOMUTE),

Quoted 8 lines

Regards.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#2 lore raw

2015-3-18 上午10:05 於 "Hui Wang" <[email protected]> 寫道:

Quoted 9 lines · Christian Gleerup
Quoted 7 lines

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read it)

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that

faded into nothing.

Quoted 9 lines
Quoted 9 lines

with help from debianuser on freenode#alsa we managed to get it working. the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is fine)
* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the volume of

the recording level, all others

Quoted 5 lines
Quoted 5 lines

Notice:
I don't have OSS or pulseaudio installed.

I am thinking it would be really nice if the driver automatically could

detect that this option is required.

Quoted 3 lines
Quoted 3 lines

this is the output from the alsa-info script

http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

Quoted 4 lines
Quoted 2 lines

let me know if I can do anything to help with this.

It seems the latest kernel already had a fixup for this machine, but the

fixup is ALC880_FIXUP_ASUS_W5A instead of ALC880_FIXUP_3ST_DIG. Probably you should use latest upstream kernel without "model=3stack-digout" to test again, if it can't fix your problem, maybe the patch below can work.

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = { · line 1355

Quoted 12 lines
sound/pci/hda/patch_realtek.c +1 -1
@@ -1349,7 +1349,7 @@ static const struct hda_fixup alc880_fixups[] = {
 
 static const struct snd_pci_quirk alc880_fixup_tbl[] = {
        SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P", ALC880_FIXUP_W810),
-       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_ASUS_W5A),
+       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_3ST_DIG),
        SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
        SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
        SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE",

ALC880_FIXUP_6ST_AUTOMUTE),

Quoted 2 lines

Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19920
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0xb7331121
0x1d 0x411111f0
0x1e 0x0145411e
0x1f 0x411111f0

Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '2ch' '6ch'
Item0: '2ch'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'

Seem missing internal speaker and redundant CD pin

Do your mic jack and internal mic work as expected ?

It is not correct to use 3stack when your laptop does not have three audio jacks for surround 5.1

!!

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

Seem no mic jack and speaker in w5n
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options snd-hda-intel model=3stack-digout' and did a powercycle (power off)... and now the sound still works, so it seems the soundcard was woken from some deepsleep.
The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel without the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Any recommendations?

-----Original Message-----

Quoted 103 lines

From: "Raymond Yau" <[email protected]>
To: "Hui Wang" <[email protected]>
Cc: "ALSA Development Mailing List" <[email protected]>, "Christian Gleerup" <[email protected]>
Date: 18/03/2015 04:18
Subject: Re: [alsa-devel] getting the sound to work on my asus m6s00v

2015-3-18 上午10:05 於 "Hui Wang" <[email protected]> 寫道:

Quoted 9 lines · Christian Gleerup
Quoted 7 lines

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read it)

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that

faded into nothing.

Quoted 9 lines
Quoted 9 lines

with help from debianuser on freenode#alsa we managed to get it working. the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is fine)
* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the volume of

the recording level, all others

Quoted 5 lines
Quoted 5 lines

Notice:
I don't have OSS or pulseaudio installed.

I am thinking it would be really nice if the driver automatically could

detect that this option is required.

Quoted 3 lines
Quoted 3 lines

this is the output from the alsa-info script

http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

Quoted 4 lines
Quoted 2 lines

let me know if I can do anything to help with this.

It seems the latest kernel already had a fixup for this machine, but the

fixup is ALC880_FIXUP_ASUS_W5A instead of ALC880_FIXUP_3ST_DIG. Probably you should use latest upstream kernel without "model=3stack-digout" to test again, if it can't fix your problem, maybe the patch below can work.

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = { · line 1355

Quoted 12 lines
sound/pci/hda/patch_realtek.c +1 -1
@@ -1349,7 +1349,7 @@ static const struct hda_fixup alc880_fixups[] = {
 
  static const struct snd_pci_quirk alc880_fixup_tbl[] = {
         SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P", ALC880_FIXUP_W810),
-       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_ASUS_W5A),
+       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A", ALC880_FIXUP_3ST_DIG),
         SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
         SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
         SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE",

ALC880_FIXUP_6ST_AUTOMUTE),

Quoted 2 lines

Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19920
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0xb7331121
0x1d 0x411111f0
0x1e 0x0145411e
0x1f 0x411111f0

Simple mixer control 'Channel Mode',0
 Capabilities: enum
 Items: '2ch' '6ch'
 Item0: '2ch'
Simple mixer control 'Input Source',0
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'
Simple mixer control 'Input Source',1
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'
Simple mixer control 'Input Source',2
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'

Seem missing internal speaker and redundant  CD pin

Do your mic jack and internal mic work as expected ?

It is not correct to use 3stack when your laptop does not have three audio jacks for surround 5.1

!!

Quoted 7 lines

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

Seem no mic jack and speaker in w5n
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw
Quoted 4 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken from

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel without

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

Since your pci ssid are same as nb 's ASUS W5A, you will need to ask why HP and mic disable jack detection and using ALC880_FIXUP_GPIO1

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */
+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,

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

Most asus computers using alc880 were using asus model in previous version

Do the front or surround playback volume affect the speaker and headphone in your asus m6s00v ?

Do the mic jack works ?

Do mic boost and front mic boost affect the mic and internal mic ?

Try hdajacksensetest to test the jack detection of hp and mic jack

http://git.alsa-project.org/?p=alsa-tools.git;a=tree;f=hdajacksensetest;hb=HEAD

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read

it)

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that

faded into nothing.

Quoted 2 lines
Quoted 2 lines

with help from debianuser on freenode#alsa we managed to get it

working.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is

fine)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the

volume of

Quoted 6 lines
Quoted 6 lines

the recording level, all others

Quoted 5 lines
Quoted 5 lines

Notice:
I don't have OSS or pulseaudio installed.

I am thinking it would be really nice if the driver automatically

could

Quoted 5 lines
Quoted 5 lines

detect that this option is required.

Quoted 3 lines
Quoted 3 lines

this is the output from the alsa-info script

http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

let me know if I can do anything to help with this.

It seems the latest kernel already had a fixup for this machine, but

the

Quoted 2 lines
Quoted 2 lines

fixup is ALC880_FIXUP_ASUS_W5A instead of ALC880_FIXUP_3ST_DIG. Probably you should use latest upstream kernel without "model=3stack-digout" to

test

Quoted 5 lines
Quoted 5 lines

again, if it can't fix your problem, maybe the patch below can work.

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] =

Quoted 4 lines
sound/pci/hda/patch_realtek.c +0 -0
@@ -1349,7 +1349,7 @@ static const struct hda_fixup alc880_fixups[] =

{

Quoted 3 lines
Quoted 3 lines

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1350

Quoted 3 lines
sound/pci/hda/patch_realtek.c +0 -0
 static const struct snd_pci_quirk alc880_fixup_tbl[] = {
        SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P",

ALC880_FIXUP_W810),

Quoted 1 line
Quoted 1 line

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1351

Quoted 1 line
sound/pci/hda/patch_realtek.c +0 -1
-       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A",

ALC880_FIXUP_ASUS_W5A),

Quoted 1 line
Quoted 1 line

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1351

Quoted 1 line
sound/pci/hda/patch_realtek.c +1 -0
+       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A",

ALC880_FIXUP_3ST_DIG),

Quoted 41 lines
Quoted 41 lines

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = { · line 1355

Quoted 3 lines
sound/pci/hda/patch_realtek.c +0 -0
        SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
        SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
        SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE",

ALC880_FIXUP_6ST_AUTOMUTE),

Quoted 2 lines

Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19920
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0xb7331121
0x1d 0x411111f0
0x1e 0x0145411e
0x1f 0x411111f0

Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '2ch' '6ch'
Item0: '2ch'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'

Quoted 5 lines
Quoted 5 lines

Seem missing internal speaker and redundant CD pin

Do your mic jack and internal mic work as expected ?

It is not correct to use 3stack when your laptop does not have three

audio

Quoted 5 lines
Quoted 5 lines

jacks for surround 5.1

!!

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

Quoted 7 lines
Quoted 6 lines

Seem no mic jack and speaker in w5n
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw
Quoted 9 lines
Quoted 3 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken from

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel without

Quoted 8 lines

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

Since your pci ssid are same as nb 's ASUS W5A, you will need to ask why HP and mic disable jack detection and using ALC880_FIXUP_GPIO1

That w5a seems much never than this one, I have tried looking some more into asus website to find this model, and I guess it is either m6v or m6n... It is a pentium single core, no webcam and two jacks
* MIC
* S/PDIF

Quoted 21 lines

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */
+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,

Quoted 2 lines

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

I am not sure what to make of that, I am guessing that those numbers are identical to some signature my laptop have? I have no experience with kernel hacking / driver development, so there might be something I am missing here.

Quoted 5 lines

Most asus computers using alc880 were using asus model in previous version

Do the front or surround  playback volume affect the speaker and headphone in your asus m6s00v ?

front affects both internal speaker and Headphone.

Quoted 1 line

Do the mic jack works ?

Yes

Quoted 1 line

Do mic boost and front mic boost affect the mic and internal mic ?

I don't see a mic boost option anywhere. The recording part of alsamixer that is related to recording on my laptop is 'digital' 'capture' 'capture 1' and 'capture 2' seems to be ignored

Quoted 3 lines

Try hdajacksensetest to test the jack detection of hp and mic jack

http://git.alsa-project.org/?p=alsa-tools.git;a=tree;f=hdajacksensetest;hb=HEAD

With 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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

With Headphones plugged in:
./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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

With Mic plugged in
./hdajacksensetest -a
Pin 0x14 (Green Headphone, Rear side): present = Yes Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = Yes Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

Quoted 116 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I had some problems getting the sound to work on my asus m6s00v (I think that is the model, it is a bit worn so I can't really read

it)

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

the symptoms was
* on the integrated speakers, no sound at all
* on the headphone speakers, sound for a very very short period that

faded into nothing.

Quoted 2 lines
Quoted 2 lines

with help from debianuser on freenode#alsa we managed to get it

working.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the option that i had to load the module with is the following:
sudo modprobe snd-hda-intel model=3stack-digout
the status now (perfect)...
* sound on integrated speaker.
* sound in headphones (disables integrated speaker output which is

fine)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

* mic works, both for direct playback and recording
* when recording it is the 'digital' channel that controls the

volume of

Quoted 6 lines
Quoted 6 lines

the recording level, all others

Quoted 5 lines
Quoted 5 lines

Notice:
I don't have OSS or pulseaudio installed.

I am thinking it would be really nice if the driver automatically

could

Quoted 5 lines
Quoted 5 lines

detect that this option is required.

Quoted 3 lines
Quoted 3 lines

this is the output from the alsa-info script

http://www.alsa-project.org/db/?f=28b98a3bd1efc6a80dbd5c54b52c4472d8ea5496

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

let me know if I can do anything to help with this.

It seems the latest kernel already had a fixup for this machine, but

the

Quoted 2 lines
Quoted 2 lines

fixup is ALC880_FIXUP_ASUS_W5A instead of ALC880_FIXUP_3ST_DIG. Probably you should use latest upstream kernel without "model=3stack-digout" to

test

Quoted 5 lines
Quoted 5 lines

again, if it can't fix your problem, maybe the patch below can work.

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] =

Quoted 4 lines
sound/pci/hda/patch_realtek.c +0 -0
@@ -1349,7 +1349,7 @@ static const struct hda_fixup alc880_fixups[] =

{

Quoted 3 lines
Quoted 3 lines

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1350

Quoted 3 lines
sound/pci/hda/patch_realtek.c +0 -0
  static const struct snd_pci_quirk alc880_fixup_tbl[] = {
         SND_PCI_QUIRK(0x1019, 0x0f69, "Coeus G610P",

ALC880_FIXUP_W810),

Quoted 1 line
Quoted 1 line

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1351

Quoted 1 line
sound/pci/hda/patch_realtek.c +0 -1
-       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A",

ALC880_FIXUP_ASUS_W5A),

Quoted 1 line
Quoted 1 line

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = · line 1351

Quoted 1 line
sound/pci/hda/patch_realtek.c +1 -0
+       SND_PCI_QUIRK(0x1043, 0x10c3, "ASUS W5A",

ALC880_FIXUP_3ST_DIG),

Quoted 41 lines
Quoted 41 lines

sound/pci/hda/patch_realtek.c static const struct hda_fixup alc880_fixups[] = { · line 1355

Quoted 3 lines
sound/pci/hda/patch_realtek.c +0 -0
         SND_PCI_QUIRK(0x1043, 0x1964, "ASUS Z71V", ALC880_FIXUP_Z71V),
         SND_PCI_QUIRK_VENDOR(0x1043, "ASUS", ALC880_FIXUP_GPIO1),
         SND_PCI_QUIRK(0x147b, 0x1045, "ABit AA8XE",

ALC880_FIXUP_6ST_AUTOMUTE),

Quoted 2 lines

Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19920
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0xb7331121
0x1d 0x411111f0
0x1e 0x0145411e
0x1f 0x411111f0

Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
Simple mixer control 'Input Source',2
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'

Quoted 5 lines
Quoted 5 lines

Seem missing internal speaker and redundant  CD pin

Do your mic jack and internal mic work as expected ?

It is not correct to use 3stack when your laptop does not have three

audio

Quoted 5 lines
Quoted 5 lines

jacks for surround 5.1

!!

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

Quoted 7 lines
Quoted 6 lines

Seem no mic jack and speaker in w5n
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Quoted 4 lines

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#6 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken

from

Quoted 4 lines
Quoted 4 lines

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel

without

Quoted 10 lines
Quoted 8 lines

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

Since your pci ssid are same as nb 's ASUS W5A, you will need to ask why HP and mic disable jack detection and using ALC880_FIXUP_GPIO1

That w5a seems much never than this one, I have tried looking some more

into asus website to find this model, and I guess it is either m6v or m6n... It is a pentium single core, no webcam and two jacks

Quoted 3 lines

* MIC
* S/PDIF

http://mailman.alsa-project.org/pipermail/alsa-devel/2013-November/068359.html

Quoted 14 lines
Quoted 14 lines

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */

Quoted 8 lines
Quoted 8 lines

+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,

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

Quoted 3 lines
Quoted 1 line

I am not sure what to make of that, I am guessing that those numbers are

identical to some signature my laptop have? I have no experience with kernel hacking / driver development, so there might be something I am missing here.

http://git.kernel.org/cgit/linux/kernel/git/tiwai/hda-emu.git/tree/codecs/alc880-asus-w6a?id=HEAD

!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:2668 (rev 04)
Subsystem: 1043:10c2

Quoted 2 lines
Quoted 2 lines

Most asus computers using alc880 were using asus model in previous

version

Quoted 3 lines
Quoted 3 lines

Do the front or surround playback volume affect the speaker and

headphone

Quoted 11 lines
Quoted 1 line

in your asus m6s00v ?

front affects both internal speaker and Headphone.

Quoted 1 line

Do the mic jack works ?

Yes

Quoted 1 line

Do mic boost and front mic boost affect the mic and internal mic ?

I don't see a mic boost option anywhere. The recording part of alsamixer

that is related to recording on my laptop is 'digital' 'capture' 'capture 1' and 'capture 2' seems to be ignored

How about mic playback volume which allow you hear what is recording from your mic

Simple mixer control 'Mic',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65
Mono:
Front Left: Playback 62 [95%] [27.00dB] [off]
Front Right: Playback 62 [95%] [27.00dB] [off]

Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="CD Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="CD Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0

Amp-In caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=1 Amp-In vals: [0xbe 0xbe] [0x80 0x80] [0x3b 0x3b] [0x80 0x80] [0xbc 0xbc]
[0x38 0x38] [0x80 0x80] [0x80 0x80]
Connection: 8

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15

If node 0x18 is the mic jack , can you hear the internal mic 's recording when you turn on line playback switch ?

Quoted 4 lines
Quoted 4 lines

Try hdajacksensetest to test the jack detection of hp and mic jack

http://git.alsa-project.org/?p=alsa-tools.git;a=tree;f=hdajacksensetest;hb=HEAD

Quoted 16 lines

With 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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

Quoted 14 lines

With Headphones plugged in:
./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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

It is possible that node 0x15 is the headphone jack since pinctl is OUT , but this node is connected to surround playback volume at node 0x0d and HP amp is not enabled in pin ctls

Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1

     0x0d
Quoted 16 lines

With Mic plugged in
./hdajacksensetest -a
Pin 0x14 (Green Headphone, Rear side): present = Yes Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = Yes Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

1) Nothing plugged in: ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

2) Headphones plugged in in S/PDIF ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

3) microphone plugged in 'Mic' ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

A returned value of 0x7FFF,FFFF (all 1‟s) indicates that a valid sense reading is not available, or the sense measurement is busy

Most Significant Bit indicating the state of the Presence Detect capability. A 1 indicates that there is “something” plugged into the jack associated with the Pin Complex 0x80000000

Try node 0x15 and node 0x18
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#7 lore raw

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
]

[
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
]

Quoted 20 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken

from

Quoted 4 lines
Quoted 4 lines

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel

without

Quoted 9 lines
Quoted 8 lines

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

Since your pci ssid are same as nb 's ASUS W5A, you will need to ask why HP and mic disable jack detection and using ALC880_FIXUP_GPIO1

Quoted 8 lines
Quoted 1 line

That w5a seems much never than this one, I have tried looking some more

into asus website to find this model, and I guess it is either m6v or m6n... It is a pentium single core, no webcam and two jacks

Quoted 3 lines

* MIC
* S/PDIF

http://mailman.alsa-project.org/pipermail/alsa-devel/2013-November/068359.html

Yep, thats not the one
it is this one
http://postimg.org/image/onlil7luv/

Quoted 191 lines
Quoted 14 lines
Quoted 14 lines

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */

Quoted 8 lines
Quoted 8 lines

+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,

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

Quoted 3 lines
Quoted 1 line

I am not sure what to make of that, I am guessing that those numbers are

identical to some signature my laptop have? I have no experience with kernel hacking / driver development, so there might be something I am missing here.

http://git.kernel.org/cgit/linux/kernel/git/tiwai/hda-emu.git/tree/codecs/alc880-asus-w6a?id=HEAD

!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:2668 (rev 04)
Subsystem: 1043:10c2

Quoted 2 lines
Quoted 2 lines

Most asus computers using alc880 were using asus model in previous

version

Quoted 3 lines
Quoted 3 lines

Do the front or surround  playback volume affect the speaker and

headphone

Quoted 11 lines
Quoted 1 line

in your asus m6s00v ?

front affects both internal speaker and Headphone.

Quoted 1 line

Do the mic jack works ?

Yes

Quoted 1 line

Do mic boost and front mic boost affect the mic and internal mic ?

I don't see a mic boost option anywhere. The recording part of alsamixer

that is related to recording on my laptop is 'digital' 'capture' 'capture 1' and 'capture 2' seems to be ignored

How about mic playback volume which allow you hear what is recording from your mic

Simple mixer control 'Mic',0
 Capabilities: pvolume pswitch penum
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 65
 Mono:
 Front Left: Playback 62 [95%] [27.00dB] [off]
 Front Right: Playback 62 [95%] [27.00dB] [off]

Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
 Control: name="CD Playback Volume", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=4, ofs=0
 Control: name="CD Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=4, ofs=0
 Control: name="Line Playback Volume", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=2, ofs=0
 Control: name="Line Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=2, ofs=0
 Control: name="Mic Playback Volume", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=0, ofs=0
 Control: name="Mic Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=0, ofs=0
 Control: name="Beep Playback Volume", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=5, ofs=0
 Control: name="Beep Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=In, idx=5, ofs=0
 Amp-In caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=1 Amp-In vals:  [0xbe 0xbe] [0x80 0x80] [0x3b 0x3b] [0x80 0x80] [0xbc 0xbc]
[0x38 0x38] [0x80 0x80] [0x80 0x80]
 Connection: 8
    0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15

If node 0x18 is the mic jack , can you hear the internal mic 's recording when you turn on line playback switch ?

Quoted 4 lines
Quoted 4 lines

Try hdajacksensetest to test the jack detection of hp and mic jack

http://git.alsa-project.org/?p=alsa-tools.git;a=tree;f=hdajacksensetest;hb=HEAD

Quoted 16 lines

With 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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

Quoted 14 lines

With Headphones plugged in:
./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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

It is possible that node 0x15 is the headphone jack since pinctl is OUT , but this node is connected to surround playback volume at node 0x0d and HP amp is not enabled in pin ctls

Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x80 0x80]
 Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x411111f0: [N/A] Speaker at Ext Rear Conn = 1/8, Color = Black
   DefAssociation = 0xf, Sequence = 0x0
   Misc = NO_PRESENCE
 Pin-ctls: 0x40: OUT
 Unsolicited: tag=00, enabled=0
 Connection: 1
    0x0d

Quoted 16 lines

With Mic plugged in
./hdajacksensetest -a
Pin 0x14 (Green Headphone, Rear side): present = Yes Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = Yes Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

1) Nothing plugged in: ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

2) Headphones plugged in in S/PDIF ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

3) microphone plugged in 'Mic' ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb = 0xf09, param = 0x0 value = 0x7fffffff

A returned value of 0x7FFF,FFFF (all 1‟s) indicates that a valid sense reading is not available, or the sense measurement is busy

Most Significant Bit indicating the state of the Presence Detect capability.  A 1 indicates that there is “something” plugged into the jack associated with the Pin Complex 0x80000000

Quoted 5 lines

Try node 0x15 and node 0x18
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#8 lore raw

I looked closer at the previous image,

and there where some things that didnt look right.

The right model is m6v
and it seems like it actually have 4 speakers !

here is some cuts from the manual
http://postimg.org/image/4zptpru97/

And the manual
 http://dlcdnet.asus.com/pub/ASUS/nb/M6VA/e1916_m6_hw.pdf

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#9 lore raw
In reply to Christian Gleerup
Quoted 4 lines

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.

Quoted 9 lines

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

Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19920
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0xb7331121
0x1d 0x411111f0
0x1e 0x0145411e
0x1f 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:
0x14 0x0121411f
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x90a60160
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1c 0x411111f0
0x1d 0x411111f0
0x1e 0xb743111e

/sys/class/sound/hwC0D0/user_pin_configs:

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

It is because the patch clear the pin default of all pin complex

only hp , internal mic and digital out exist

The generic driver automatically add the headphone mic when there is headphone and internal mic

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

Have you ask the author tiwai and tester nb how he test the patch ?

Your notebook need four pin comples: hp, intermal speaker, mic and internal mic

3stack-dig won't work since there is w5a pin fixup

HP and mic jack can be easily found by hda jack sense test but it is not easy to find the internal mic and internal speaker after you upgrade

You need to use hda-jack-retask to retask the remaing pin complex

If you still have the working sound kernel, you can use hda analyzer to mute the node to find the internal speaker and internal mic

Quoted 76 lines

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
]

[
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

Quoted 12 lines

./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
]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power

off)...

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

and now the sound still works, so it seems the soundcard was woken

from

Quoted 4 lines
Quoted 4 lines

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel

without

Quoted 1 line
Quoted 1 line

the extra options, I am unsure if trying the newest vanilla kernel

would

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

make any sense?

Quoted 2 lines

Any recommendations?

Since your pci ssid are same as nb 's ASUS W5A, you will need to

ask why

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

HP and mic disable jack detection and using ALC880_FIXUP_GPIO1

That w5a seems much never than this one, I have tried looking some

more

Quoted 7 lines
Quoted 7 lines

into asus website to find this model, and I guess it is either m6v or m6n... It is a pentium single core, no webcam and two jacks

Quoted 3 lines

* MIC
* S/PDIF

http://mailman.alsa-project.org/pipermail/alsa-devel/2013-November/068359.html

Quoted 28 lines

Yep, thats not the one
it is this one
http://postimg.org/image/onlil7luv/

Quoted 23 lines
Quoted 22 lines
Quoted 22 lines

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */
+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,

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

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

I am not sure what to make of that, I am guessing that those numbers

are

Quoted 5 lines
Quoted 5 lines

identical to some signature my laptop have? I have no experience with kernel hacking / driver development, so there might be something I am missing here.

http://git.kernel.org/cgit/linux/kernel/git/tiwai/hda-emu.git/tree/codecs/alc880-asus-w6a?id=HEAD

Quoted 18 lines
Quoted 18 lines

!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:2668 (rev 04)
Subsystem: 1043:10c2

Quoted 2 lines
Quoted 2 lines

Most asus computers using alc880 were using asus model in previous

version

Quoted 3 lines
Quoted 3 lines

Do the front or surround playback volume affect the speaker and

headphone

Quoted 4 lines
Quoted 1 line

in your asus m6s00v ?

front affects both internal speaker and Headphone.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Do the mic jack works ?

Yes

Quoted 1 line

Do mic boost and front mic boost affect the mic and internal mic ?

I don't see a mic boost option anywhere. The recording part of

alsamixer

Quoted 1 line
Quoted 1 line

that is related to recording on my laptop is 'digital' 'capture'

'capture

Quoted 3 lines
Quoted 3 lines

1' and 'capture 2' seems to be ignored

How about mic playback volume which allow you hear what is recording

from

Quoted 21 lines
Quoted 21 lines

your mic

Simple mixer control 'Mic',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65
Mono:
Front Left: Playback 62 [95%] [27.00dB] [off]
Front Right: Playback 62 [95%] [27.00dB] [off]

Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="CD Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="CD Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
Quoted 8 lines
Quoted 8 lines

Control: name="Mic Playback Switch", index=0, device=0

    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=5, ofs=0

Amp-In caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=1 Amp-In vals: [0xbe 0xbe] [0x80 0x80] [0x3b 0x3b] [0x80 0x80] [0xbc

0xbc]

Quoted 5 lines
Quoted 5 lines

[0x38 0x38] [0x80 0x80] [0x80 0x80]
Connection: 8

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15

If node 0x18 is the mic jack , can you hear the internal mic 's

recording

Quoted 7 lines
Quoted 7 lines

when you turn on line playback switch ?

Quoted 4 lines
Quoted 4 lines

Try hdajacksensetest to test the jack detection of hp and mic jack

http://git.alsa-project.org/?p=alsa-tools.git;a=tree;f=hdajacksensetest;hb=HEAD

Quoted 31 lines
Quoted 31 lines
Quoted 30 lines

With 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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

With Headphones plugged in:
./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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

Quoted 1 line
Quoted 1 line

It is possible that node 0x15 is the headphone jack since pinctl is OUT

,

Quoted 1 line
Quoted 1 line

but this node is connected to surround playback volume at node 0x0d and

HP

Quoted 32 lines
Quoted 32 lines

amp is not enabled in pin ctls

Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1

     0x0d
Quoted 16 lines

With Mic plugged in
./hdajacksensetest -a
Pin 0x14 (Green Headphone, Rear side): present = Yes Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = Yes Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No

Quoted 1 line
Quoted 1 line

1) Nothing plugged in: ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0

nid

Quoted 3 lines
Quoted 3 lines

= 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb =

0xf09,

Quoted 6 lines
Quoted 6 lines

param = 0x0 value = 0x7fffffff

2) Headphones plugged in in S/PDIF ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb =

0xf09,

Quoted 6 lines
Quoted 6 lines

param = 0x0 value = 0x7fffffff

3) microphone plugged in 'Mic' ./hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0 nid = 0x14, verb = 0x709, param = 0x0 value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0 nid = 0x14, verb =

0xf09,

Quoted 7 lines
Quoted 7 lines

param = 0x0 value = 0x7fffffff

A returned value of 0x7FFF,FFFF (all 1‟s) indicates that a valid sense reading is not available, or the sense measurement is busy

Most Significant Bit indicating the state of the Presence Detect capability. A 1 indicates that there is “something” plugged into the

jack

Quoted 10 lines
Quoted 7 lines

associated with the Pin Complex 0x80000000

Try node 0x15 and node 0x18
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#10 lore raw
In reply to Christian Gleerup
Quoted 88 lines · Christian Gleerup

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
]

[
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

Quoted 9 lines

./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

#11 lore raw
Quoted 4 lines
Quoted 4 lines

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.

Quoted 9 lines
Quoted 9 lines

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

Quoted 33 lines
Quoted 33 lines

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

Quoted 7 lines
Quoted 7 lines

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

Quoted 45 lines
Quoted 36 lines

[
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

Quoted 9 lines

./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
]

Quoted 7 lines

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
- */

#12 lore raw

http://www.alsa-project.org/db/?f=df46a9ee01e04dde11b194e0278c9f22594540d0

Quoted 2 lines

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

Sorry, I missed that, here is the output again

Nothing plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done 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 = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
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
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff

Headphones plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done 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 = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
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
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff

mic plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done 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 = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
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
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff

Quoted 8 lines
Quoted 7 lines

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

Quoted 8 lines

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

In my current (4.0.0-rc5), the option asus, asus-dig and asus-dig2 did not help with the sound, I have not applied above patch, I am not sure if or how I should do this.

Quoted 10 lines

- * 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
- */
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#13 lore raw
In reply to Raymond Yau

Trying again with my previous kernel since the new kernel seems broken regarding loading the sound module

nothin plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done 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 (Pink Mic, Rear side): present = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff

Headphone plugged in
 ../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done 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 (Pink Mic, Rear side): present = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff

Mic plugged in
 ../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do ./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done Pin 0x14 (Green Headphone, Rear side): present = Yes
Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0xffffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

A message that is not in the archive (sent off-list or not yet received): CAN8cciY8tCvcLe+HeeXcFmC6jiJPDQkiK4cLuZaSL0-UBUC5Jw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAN8cciagPcP3vVCK7Q7Yh5ANy862MDL18T8467vCbJEn4-WTrA@mail.gmail.com

#16 lore raw

2015-3-28 下午5:52 於 "Christian Gleerup" <[email protected]> 寫道:

Quoted 2 lines

Trying again with my previous kernel since the new kernel seems broken

regarding loading the sound module

Quoted 3 lines

nothin plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do

./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done

Quoted 25 lines

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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff

Quoted 2 lines

Headphone plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do

./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done

Quoted 16 lines

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 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff

Quoted 8 lines

nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0xffffffff

0xffffffff = 0x80000000 + 0x7ffffff

Try the modified version of hda_jack_sense_test.py which need hda_analyzer 's codec parser and alsa python

https://bugzilla.kernel.org/show_bug.cgi?id=66621#c39

it need time for the impedance measurement to complete and become stable, You may need to increase time.sleep(0.02) if you still get 0xffffffff

https://bugzilla.kernel.org/show_bug.cgi?id=66621#c41

# the hda_codec.py file comes from Jaroslav Kysela's hda_analyzer program.
from hda_codec import *
import time

def parseoptions():
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-c", "--card", dest="cardindex", default=0,
metavar="CARD",
help="card index (as can be seen in /proc/asound/cards)")
parser.add_option("-i", "--codec", dest="codecindex", default=0,
metavar="CODEC",
help="codec index (as can be seen in /proc/asound/cardX/codecY)")
(options, args) = parser.parse_args()
return int(options.cardindex), int(options.codecindex)

cardindex, codecindex = parseoptions()
codec = HDACodec(cardindex, codecindex)
codec.analyze()
for nid in codec.nodes:
node = codec.get_node(nid)
if WIDGET_TYPE_IDS[node.wtype] == 'PIN':
pd = " "
impedance = " "
if ((node.pincaps & 4) == 4):

    if (node.pincaps & 2):
                codec.rw(nid, VERBS['SET_PIN_SENSE'], 0)
                time.sleep(0.02)
            sense = codec.rw(nid, VERBS['GET_PIN_SENSE'], 0)
            if (node.pincaps & 1):
impedance = "Imp=%d" % (sense & 0x7fffffff)
            if (sense & 0x80000000):
pd = "PD=1"
    else:
pd = "PD=0"
        print "Pin 0x%.2x [%s] %s %s at %s (%s) %s : %s %s" % (nid,

node.jack_conn_name, node.jack_type_name, node.jack_location_name, node.jack_location2_name, node.jack_color_name, node.defcfg_misc , pd, impedance)

Quoted 3 lines

Mic plugged in
../hdajacksensetest/hdajacksensetest -a; for i in 0x14 0x15 0x15; do

./hda-verb /dev/snd/hwC0D0 $i SET_PIN_SENSE 0 nid ;./hda-verb /dev/snd/hwC0D0 $i GET_PIN_SENSE 0 nid; done

Quoted 16 lines

Pin 0x14 (Green Headphone, Rear side): present = Yes Pin 0x15 (Not connected): present = No
Pin 0x16 (Not connected): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Pink Mic, Rear side): present = No Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = Yes
Pin 0x1b (Not connected): present = No
Pin 0x1c (Internal CD, Mobile-In): present = No Pin 0x1d (Not connected): present = No
Pin 0x1e (Green SPDIF Out, Rear side): present = No Pin 0x1f (Not connected): present = No
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0xffffffff

Quoted 14 lines

nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff
nid = 0x15, verb = 0x709, param = 0x0
value = 0x0
nid = 0x15, verb = 0xf09, param = 0x0
value = 0x7fffffff

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#17 lore raw
In reply to Hui Wang
Quoted 8 lines

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

noob question:
how do I use this knowledge to get sound outout

A message that is not in the archive (sent off-list or not yet received): CAN8cciYo-SSeoBg69qaj+aYBx+ZRbVuhbgkURutuBWGwCxauWA@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAN8cciam2=TE3zhWNB_GQEr1Q1z_X7S+k34fAgajE_XNYJzo0Q@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAN8cciZhtL_C-DAErzhM4E3t3nn7KdAbjQXQEPk3iVcBvm4aUw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAN8cciZqdwONrrpWc0EKNfGz9Xwibh9Xj+=JnZ=ieK+m1rbF8w@mail.gmail.com

#22 lore raw
Quoted 4 lines

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.

Quoted 85 lines

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
]

[
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

Quoted 7 lines

./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

Seem impedance measurement is not correct, mic should have higher impedance than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Control: name="Master Playback Switch", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Mic Phantom Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense
  Pin Default 0x0121411f: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c

To get back headphone phantom jack if HP is really shared with speaker

Disable hp mic by hint hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a single built-in mic case; default true

#23 lore raw
Quoted 27 lines

Seem impedance measurement is not correct, mic should have higher impedance than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
 Control: name="Master Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=Out, idx=0, ofs=0
 Control: name="Headphone Mic Phantom Jack", index=0, device=0 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x00 0x00]
 Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green
   DefAssociation = 0x1, Sequence = 0xf
   Misc = NO_PRESENCE
 Pin-ctls: 0xc0: OUT HP
 Unsolicited: tag=00, enabled=0
 Connection: 1
    0x0c

Quoted 6 lines

To get back headphone phantom jack if HP is really shared with speaker

Disable hp mic by hint  hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a single built-in mic case; default true

not sure if this is correct, but it doesnt turn on sound sudo modprobe snd-hda-intel options=trigger_sense=0

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#24 lore raw

There might actually be a more serious problem with my 4.0.0 kernel since I don't get any error messages no matter what i try to throw at modprobe...

Quoted 39 lines
Quoted 26 lines

Seem impedance measurement is not correct, mic should have higher impedance than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Mic Phantom Jack", index=0, device=0 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c

Quoted 6 lines

To get back headphone phantom jack if HP is really shared with speaker

Disable hp mic by hint  hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a single built-in mic case; default true

not sure if this is correct, but it doesnt turn on sound sudo modprobe snd-hda-intel options=trigger_sense=0

Quoted 4 lines

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#25 lore raw
In reply to Christian Gleerup

At Sat, 28 Mar 2015 10:33:54 +0100,

Quoted 30 lines · Christian Gleerup
Quoted 30 lines

Seem impedance measurement is not correct, mic should have higher impedance than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
 Control: name="Master Playback Switch", index=0, device=0
   ControlAmp: chs=3, dir=Out, idx=0, ofs=0
 Control: name="Headphone Mic Phantom Jack", index=0, device=0 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x00 0x00]
 Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green
   DefAssociation = 0x1, Sequence = 0xf
   Misc = NO_PRESENCE
 Pin-ctls: 0xc0: OUT HP
 Unsolicited: tag=00, enabled=0
 Connection: 1
    0x0c

To get back headphone phantom jack if HP is really shared with speaker

Quoted 7 lines
Quoted 4 lines

Disable hp mic by hint  hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a single built-in mic case; default true

not sure if this is correct, but it doesnt turn on sound sudo modprobe snd-hda-intel options=trigger_sense=0

The hint strings aren't passed in that way. It's passed in a firmware "patch" file that is specified via patch option snd-hda-intel module. See Documentation/sound/alsa/HD-Audio.txt for details.

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#26 lore raw
Quoted 4 lines
Quoted 4 lines

It looks like the pin connection map as below:

Quoted 10 lines
Quoted 5 lines

0x14: external mic in jack
0x15: external headphone jack
0x18: internal mic
0x1a: internal speaker
0x1e: internal SPDIF Out

noob question:
how do I use this knowledge to get sound outout

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/README;hb=HEAD

No need to use hint hp_mic_detect=0 if you find the node of internal mic and mic jack

7.3.3.15 Pin Sense
The Pin Sense control returns the Presence Detect status, EDID-Like Data (ELD) Valid, and the impedance measurement of the device attached to the pin.

Some codecs may require that the impedance measurement be triggered by software; in that case, sending the Execute command will cause the impedance measurement to begin.

The “Presence Detect” bit will always be accurate if that functionality is supported by the widget.

Note that the Pin Complex Widget may support the generation of an Unsolicited Response to indicate that the Sense Measurement (either the Presence Detect or the Impedance) value has changed, the generation of which implies that the measurement is complete.

Right Chnl: Normally impedance sensing is done on the left channel or “tip” of the connector. However, Pin Widgets may optionally support sensing on the right channel or “ring” of the connector. When this bit is 1, the impedance value is taken on the right channel if the Pin Widget supports this; if not supported, this bit is ignored. When this bit is 0, the left channel is sensed.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Seem impedance measurement is not correct, mic should have higher

impedance

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Control: name="Master Playback Switch", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Mic Phantom Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense
  Pin Default 0x0121411f: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

To get back headphone phantom jack if HP is really shared with speaker

Disable hp mic by hint hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a

single

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

built-in mic case; default true

not sure if this is correct, but it doesnt turn on sound sudo modprobe snd-hda-intel options=trigger_sense=0

The hint strings aren't passed in that way. It's passed in a firmware "patch" file that is specified via patch option snd-hda-intel module. See Documentation/sound/alsa/HD-Audio.txt for details.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#27 lore raw

I manged to get sound working again while playing arround with hdaretask. but initially i tried setting up the outputs as suggest,
which didn't giveanything, then a then I tried setting 0.15 as internal speaker also.

For the first few seconds there where no sound, and then the sound slowly started to increase, but not the sound i was playing just some noise, not continously but.. erhm like this:
.|.|.|.|.|.|.|.|.|.|.|.|.|.|

I was not able to kill the sound even when muting all channels in alsa mixer.
then I removed all overrides (expect ch0x18), after clicking apply the repeating periodic sound dis-apered, and I was able to play sound.

So now I am able to play sound through the internal speaker I have toggled ho_mic_detect=false, set model=auto.

-----Original Message-----

Quoted 91 lines

From: "Raymond Yau" <[email protected]>
To: [email protected], [email protected]
Cc: "Hui Wang" <[email protected]>, "ALSA Development Mailing List" <[email protected]>, nb <[email protected]>, [email protected]
Date: 29/03/2015 18:07
Subject: Re: [alsa-devel] getting the sound to work on my asus m6s00v

Quoted 4 lines
Quoted 4 lines

It looks like the pin connection map as below:

Quoted 10 lines
Quoted 5 lines

0x14: external mic in jack
0x15: external headphone jack
0x18: internal mic
0x1a: internal speaker
0x1e: internal SPDIF Out

noob question:
how do I use this knowledge to get sound outout

http://git.alsa-project.org/?p=alsa-tools.git;a=blob;f=hdajackretask/README;hb=HEAD

No need to use hint hp_mic_detect=0 if you find the node of internal mic and mic jack

7.3.3.15 Pin Sense
The Pin Sense control returns the Presence Detect status, EDID-Like Data (ELD) Valid, and the impedance measurement of the device attached to the pin.

Some codecs may require that the impedance measurement be triggered by software; in that case, sending the Execute command will cause the impedance measurement to begin.

The “Presence Detect” bit will always be accurate if that functionality is supported by the widget.

Note that the Pin Complex Widget may support the generation of an Unsolicited Response to indicate that the Sense Measurement (either the Presence Detect or the Impedance) value has changed, the generation of which implies that the measurement is complete.

Right Chnl:  Normally impedance sensing is done on the left channel or “tip” of the connector.  However, Pin Widgets may optionally support sensing on the right channel or “ring” of the connector.  When this bit is 1, the impedance value is taken on the right channel if the Pin Widget supports this; if not supported, this bit is ignored.  When this bit is 0, the left channel is sensed.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Seem impedance measurement is not correct, mic should have higher

impedance

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

than headphone

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines

You can disable it by hint trigger_sense=0

- trigger_sense (bool): indicates that the jack detection needs the explicit call of AC_VERB_SET_PIN_SENSE verb

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Master Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Mic Phantom Jack", index=0, device=0 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0c

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

To get back headphone phantom jack if HP is really shared with speaker

Disable hp mic by hint  hp_mic_detect=0

- hp_mic_detect (bool): enable/disable the hp/mic shared input for a

single

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

built-in mic case; default true

not sure if this is correct, but it doesnt turn on sound sudo modprobe snd-hda-intel options=trigger_sense=0

Quoted 8 lines
Quoted 4 lines

The hint strings aren't passed in that way.  It's passed in a firmware "patch" file that is specified via patch option snd-hda-intel module. See Documentation/sound/alsa/HD-Audio.txt for details.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#28 lore raw
Quoted 4 lines

I manged to get sound working again while playing arround with hdaretask. but initially i tried setting up the outputs as suggest, which didn't giveanything, then a then I tried setting 0.15 as internal

speaker also.

Quoted 2 lines

For the first few seconds there where no sound, and then the sound slowly

started to increase, but not the sound i was playing just some noise, not continously but.. erhm like this:

Quoted 3 lines

.|.|.|.|.|.|.|.|.|.|.|.|.|.|

I was not able to kill the sound even when muting all channels in alsa

mixer.

Quoted 1 line

then I removed all overrides (expect ch0x18), after clicking apply the

repeating periodic sound dis-apered, and I was able to play sound.

Quoted 3 lines

So now I am able to play sound through the internal speaker I have toggled ho_mic_detect=false, set model=auto.

You have to post output of alsa-info.sh for your patched driver if it work

Do you mean you cannot get correct impedence value for your jacks ?

#29 lore raw

Hello Raymond,

I have upgraded from Debian 7 to 8,
Now I am not able to get the sound to work properly again.

right now it seems very very strange.
I have very very low sound, but the sound is coupled to the 'PCM' part in Alsa mixer.
even if I mute all outputs, I can still hear PCM channel,
what makes me more crazy, is that the sound doesn't seem to directly from the speaker, but more towards the center of the labtob....

does the above problem sound any bells?

I am considering taking one channel of the time, and enabling sound output as internal speaker to see what happens

-----Original Message-----

Quoted 33 lines

From: "Raymond Yau" <[email protected]>
To: "Christian Gleerup" <[email protected]>
Cc: "Hui Wang" <[email protected]>, [email protected], "ALSA Development Mailing List" <[email protected]>, nb <[email protected]>, [email protected]
Date: 19/05/2015 03:08
Subject: Re: [alsa-devel] getting the sound to work on my asus m6s00v

Quoted 4 lines

I manged to get sound working again while playing arround with hdaretask. but initially i tried setting up the outputs as suggest, which didn't giveanything, then a then I tried setting 0.15 as internal

speaker also.

Quoted 2 lines

For the first few seconds there where no sound, and then the sound slowly

started to increase, but not the sound i was playing just some noise, not continously but.. erhm like this:

Quoted 3 lines

.|.|.|.|.|.|.|.|.|.|.|.|.|.|

I was not able to kill the sound even when muting all channels in alsa

mixer.

Quoted 1 line

then I removed all overrides (expect ch0x18), after clicking apply the

repeating periodic sound dis-apered, and I was able to play sound.

Quoted 3 lines

So now I am able to play sound through the internal speaker I have toggled ho_mic_detect=false, set model=auto.

You have to post output of alsa-info.sh for your patched driver if it work

Do you mean you cannot get correct impedence value for your jacks ?
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#30 lore raw
In reply to Christian Gleerup
Quoted 4 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken from

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel without

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

If it is a netbook with one jack which can be used as headphone or mic

The best way is to measure the impedance of the jack to determince HP or mic and swtich pin ctls to OUT or IN as pincap support ImpSense

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0xf
Misc = NO_PRESENCE
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=00, enabled=0
Connection: 1

     0x0c

Try

hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0

hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0

and check the returned values when you plug hp and mic are different

#31 lore raw
Quoted 8 lines
Quoted 3 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken from

some deepsleep.

Quoted 2 lines

The machine have been turned of for many (4/5) years...

Quoted 7 lines
Quoted 1 line

Anyway since the soundcard now is working with my current kernel without

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

If it is a netbook with one jack which can be used as headphone or mic

Not a neetbook, two jacks, one Mic, and one S/PDIF

Quoted 16 lines

The best way is to measure the impedance of the jack to determince  HP or mic and swtich pin ctls to OUT or IN as pincap support ImpSense

Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals:  [0x00 0x00]
 Pincap 0x0000003f: IN OUT HP Detect Trigger ImpSense Pin Default 0x0121411f: [Jack] HP Out at Ext Rear Conn = 1/8, Color = Green
   DefAssociation = 0x1, Sequence = 0xf
   Misc = NO_PRESENCE
 Pin-ctls: 0xc0: OUT HP
 Unsolicited: tag=00, enabled=0
 Connection: 1
    0x0c

Quoted 7 lines

Try

hda-verb  /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0

hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0

and check the returned values when you plug hp and mic are different

1) Nothing plugged in:
./hda-verb  /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff

2) Headphones plugged in in S/PDIF
./hda-verb  /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff

3) microphone plugged in 'Mic'
./hda-verb  /dev/snd/hwC0D0 0x14 SET_PIN_SENSE 0
nid = 0x14, verb = 0x709, param = 0x0
value = 0x0

./hda-verb /dev/snd/hwC0D0 0x14 GET_PIN_SENSE 0
nid = 0x14, verb = 0xf09, param = 0x0
value = 0x7fffffff

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#32 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken

from

Quoted 4 lines
Quoted 4 lines

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel

without

Quoted 8 lines
Quoted 6 lines

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

If it is a netbook with one jack which can be used as headphone or mic

Not a neetbook, two jacks, one Mic, and one S/PDIF

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

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */
+ { 0x1c, 0x411111f0 }, /* N/A */
+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,
+ },

Using hda emu and the latest alsa driver, headphone mic phantom jack is
created and enable shared I/O jack at node 0x14

0x18, 0x90a60160 [Fixed] Mic at Int

this seem different from your hdajacksensetest result if you can detect mic jack at node 0x18

This mean bug in create headphone mic jack if headphone mic require specifc sequence number

#33 lore raw
Quoted 34 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

The internal mic also works.

but; I am a bit puzled, because I tried to comment out 'options

snd-hda-intel model=3stack-digout' and did a powercycle (power off)...

Quoted 1 line

and now the sound still works, so it seems the soundcard was woken

from

Quoted 4 lines
Quoted 4 lines

some deepsleep.

Quoted 3 lines

The machine have been turned of for many (4/5) years...

Anyway since the soundcard now is working with my current kernel

without

Quoted 8 lines
Quoted 6 lines

the extra options, I am unsure if trying the newest vanilla kernel would make any sense?

Quoted 2 lines

Any recommendations?

If it is a netbook with one jack which can be used as headphone or mic

Not a neetbook, two jacks, one Mic, and one S/PDIF

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

+ [ALC880_FIXUP_ASUS_W5A] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ /* set up the whole pins as BIOS is utterly broken */
+ { 0x14, 0x0121411f }, /* HP */
+ { 0x15, 0x411111f0 }, /* N/A */
+ { 0x16, 0x411111f0 }, /* N/A */
+ { 0x17, 0x411111f0 }, /* N/A */
+ { 0x18, 0x90a60160 }, /* mic */
+ { 0x19, 0x411111f0 }, /* N/A */
+ { 0x1a, 0x411111f0 }, /* N/A */
+ { 0x1b, 0x411111f0 }, /* N/A */

Quoted 9 lines

+ { 0x1c, 0x411111f0 }, /* N/A */
+ { 0x1d, 0x411111f0 }, /* N/A */
+ { 0x1e, 0xb743111e }, /* SPDIF out */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC880_FIXUP_GPIO1,
+ },

I am not sure if you would like me to apply this patch, if so how do I do it?

Quoted 2 lines

Using hda emu and the latest alsa driver,   headphone mic phantom jack is created and enable shared I/O jack at node 0x14

Are these options I should specify when trying to load the driver?

Quoted 4 lines

0x18, 0x90a60160   [Fixed] Mic at Int

this seem different from your hdajacksensetest result if you can detect mic jack at node 0x18

I think this info should be in my other mail, yes?

Quoted 2 lines

This mean bug in create headphone  mic jack if headphone mic require specifc sequence number

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel