[ ASUS N550LF , Realtek ALC668, Speaker, Internal] To much sound

Bug #1451170 reported by dubis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi

My laptop speaker doesn't want to switch off when my headphones is plugged.
Description: Ubuntu 15.04
Release: 15.04

alsa-base:
  Installé : 1.0.25+dfsg-0ubuntu4
  Candidat : 1.0.25+dfsg-0ubuntu4
 Table de version :
 *** 1.0.25+dfsg-0ubuntu4 0
        500 http://fr.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Thanks for your support

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0p: dubis 1793 F...m pulseaudio
 /dev/snd/controlC1: dubis 1793 F.... pulseaudio
 /dev/snd/controlC0: dubis 1793 F.... pulseaudio
CurrentDesktop: KDE
Date: Sun May 3 13:25:39 2015
InstallationDate: Installed on 2014-10-16 (198 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH successful
Symptom_Card: Audio interne - HDA Intel PCH
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0p: dubis 1793 F...m pulseaudio
 /dev/snd/controlC1: dubis 1793 F.... pulseaudio
 /dev/snd/controlC0: dubis 1793 F.... pulseaudio
Symptom_Jack: Speaker, Internal
Symptom_PulsePlaybackTest: PulseAudio playback test successful
Symptom_Type: No sound at all
Title: [hostname, Realtek ALC668, Speaker, Internal] No sound at all
UpgradeStatus: Upgraded to vivid on 2015-04-26 (6 days ago)
dmi.bios.date: 01/13/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N550LF.212
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N550LF
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrN550LF.212:bd01/13/2014:svnASUSTeKCOMPUTERINC.:pnN550LF:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN550LF:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: N550LF
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.
mtime.conffile..etc.modprobe.d.alsa.base.conf: 2015-05-01T15:39:09.184568

Revision history for this message
dubis (dubois-michel) wrote :
Revision history for this message
dubis (dubois-michel) wrote :

Any news about this bug???

description: updated
Revision history for this message
Raymond (superquad-vortex2) wrote :
Download full text (3.3 KiB)

any reason for you to specify asus-mode8 for your two hda controllers

your hdmi don't need any model pararmeter

Module: snd_hda_intel
 align_buffer_size : -1
 bdl_pos_adj : 32,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 beep_mode : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
 enable_msi : -1
 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 model : asus-mode8,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 patch : hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 position_fix : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 power_save : 0
 power_save_controller : Y
 probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 single_cmd : N
 snoop : -1

!!Module: snd_hda_intel
 align_buffer_size : -1
 bdl_pos_adj : 32,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 beep_mode : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
 enable_msi : -1
 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 model : asus-mode8,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 patch : hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 position_fix : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 power_save : 0
 power_save_controller : Y
 probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1...

Read more...

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Raymond (superquad-vortex2) wrote :

12.911053] snd_hda_intel 0000:00:03.0: Applying patch firmware 'hda-jack-retask.fw'
[ 12.911196] snd_hda_intel 0000:00:1b.0: Applying patch firmware 'hda-jack-retask.fw'
[ 13.423956] Bluetooth: Core ver 2.20
--
[ 13.732598] cfg80211: Calling CRDA to update world regulatory domain
[ 13.806592] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input15
[ 13.806679] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input16
[ 13.807099] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input17
[ 13.815247] sound hdaudioC1D0: autoconfig: line_outs=4 (0x1a/0x15/0x19/0x14/0x0) type:line
[ 13.815251] sound hdaudioC1D0: speaker_outs=2 (0x18/0x16/0x0/0x0/0x0)
[ 13.815253] sound hdaudioC1D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 13.815254] sound hdaudioC1D0: mono: mono_out=0x0
[ 13.815255] sound hdaudioC1D0: dig-out=0x1e/0x0
[ 13.815256] sound hdaudioC1D0: inputs:
[ 13.815258] sound hdaudioC1D0: Mic=0x1b
[ 13.815260] sound hdaudioC1D0: Internal Mic=0x12

seem you enabled all unconnected pins for output by hdajackretask

Revision history for this message
Raymond (superquad-vortex2) wrote :

it is unlikely that your asus laptop have four line out jacks

Revision history for this message
dubis (dubois-michel) wrote :

Thanks for arwer

Sorry I've not good skill enough for a good analyse of these log.

On this picture you can see 2 jack plug:

http://snag.gy/BOlSt.jpg

The first one on the right is the normal mirco/headphone jack plug.

The yellow marked is the plug for a mini sub woofer device. I configurated it with this post helping :
http://askubuntu.com/questions/189304/no-sound-from-external-subwoofer-sonic-master-on-an-asus-n76vm

The mean target is when I plug the headphone that 's switching off the sub woofer plug and the laptop speaker.

What could I provide more?

Thanks for your support.

Revision history for this message
dubis (dubois-michel) wrote :

Can I get help to configure my laptop?

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://bugzilla.kernel.org/show_bug.cgi?id=66271

find out whether node 0x1a is your subwoofer

Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond,

I don't understand my sub woofer is working. That's not the problem. My problem is I want to switch off my laptop speaker and subwoofer included with I plug a headphone.

Thanks.

Revision history for this message
dubis (dubois-michel) wrote :

Notes the headphone and laptop speaker are working together.

Should I launch special command?
Thanks

Revision history for this message
Raymond (superquad-vortex2) wrote :

/sys/class/sound/hwC1D0/init_pin_configs:
0x12 0x90a60130
0x14 0x90170110
0x15 0x03211020
0x16 0x40000000
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x03a11040
0x1d 0x40c5822d
0x1e 0x411111f0
0x1f 0x411111f0

this are your BIOS's pin dedault

0x12 internal mic
0x14 internal speaker
0x15 headphone
0x1b external mic

you should remove any model parameter and patch=*.fw

you get sound from subwoofer because you retask the other pin and your HP pin to line out

13.815247] sound hdaudioC1D0: autoconfig: line_outs=4 (0x1a/0x15/0x19/0x14/0x0) type:line
 [ 13.815251] sound hdaudioC1D0: speaker_outs=2 (0x18/0x16/0x0/0x0/0x0)
 [ 13.815253] sound hdaudioC1D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
 [ 13.815254] sound hdaudioC1D0: mono: mono_out=0x0
 [ 13.815255] sound hdaudioC1D0: dig-out=0x1e/0x0
 [ 13.815256] sound hdaudioC1D0: inputs:
 [ 13.815258] sound hdaudioC1D0: Mic=0x1b
 [ 13.815260] sound hdaudioC1D0: Internal Mic=0x12

Revision history for this message
Raymond (superquad-vortex2) wrote :

alc668 is only 6 channels HDA codec, you cannot put 4 nodes in cfg-> line_out

Revision history for this message
Raymond (superquad-vortex2) wrote :

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

you have to open bug report for your headset mic

https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers

alsa sound

do your user manual mention that the combo jack support headset, headphone and ext mic

or

just headset only

Revision history for this message
Raymond (superquad-vortex2) wrote :

the node of the subwoofer is different since your n550lf is using alc668 but n76v is using alc663

Revision history for this message
Raymond (superquad-vortex2) wrote :

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

try

hdajacksensetest -c1 -a

when you plug and unplug subwoofer

and headset

to find out which node is subwoofer and combo jack

summary: - [hostname, Realtek ALC668, Speaker, Internal] To much sound
+ [ ASUS N550LF , Realtek ALC668, Speaker, Internal] To much sound
Revision history for this message
dubis (dubois-michel) wrote :

How to compile hdajacksensetest?

 I fetched the alsa-tools branch but I don't get any compile file or other.

Thanks.

Revision history for this message
Raymond (superquad-vortex2) wrote :

it need parser of hdajackretask

./gitcompile

Revision history for this message
Raymond (superquad-vortex2) wrote :

if subwoofer is node 0x1a

you can try headset-multi-sonicmaster

http://mailman.alsa-project.org/pipermail/alsa-devel/2015-September/097818.html

if you only use headset, you need three patches

Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond

One more times thanks for your interrest.

dubis@N550LF:~/hdajacksensetest/alsa-tools$ ./gitcompile
./as10k1
cp: cannot stat '/usr/share//install-sh': No such file or directory
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1
dubis@N550LF:~/hdajacksensetest/alsa-tools$

Revision history for this message
dubis (dubois-michel) wrote :

That's worked after installing automake, libperl-dev libgtk2.0-dev packages

This is the result of the command with nothing connected

@N550LF:~/hdajacksensetest/alsa-tools/hdajacksensetest$ sudo ./hdajacksensetest --card=1 -a
Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Green Line Out, Rear side): present = No
Pin 0x15 (Green Line Out, Rear side): present = No
Pin 0x16 (Internal Speaker): present = No
Pin 0x18 (Internal Speaker): present = No
Pin 0x19 (Green Line Out, Rear side): present = No
Pin 0x1a (Green Line Out, Rear side): present = No
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Black SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No
dubis@N550LF:~/hdajacksensetest/alsa-tools/hdajacksensetest$

Next post I will enter the result with the devices connected

Revision history for this message
dubis (dubois-michel) wrote :

Result with Subwofer connected

@N550LF:~/hdajacksensetest/alsa-tools/hdajacksensetest$ sudo ./hdajacksensetest --card=1 -a
Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Green Line Out, Rear side): present = No
Pin 0x15 (Green Line Out, Rear side): present = No
Pin 0x16 (Internal Speaker): present = No
Pin 0x18 (Internal Speaker): present = No
Pin 0x19 (Green Line Out, Rear side): present = No
Pin 0x1a (Green Line Out, Rear side): present = Yes
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Black SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No

Revision history for this message
dubis (dubois-michel) wrote :

Result with headset connected

@N550LF:~/hdajacksensetest/alsa-tools/hdajacksensetest$ sudo ./hdajacksensetest --card=1 -a
Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Green Line Out, Rear side): present = No
Pin 0x15 (Green Line Out, Rear side): present = Yes
Pin 0x16 (Internal Speaker): present = No
Pin 0x18 (Internal Speaker): present = No
Pin 0x19 (Green Line Out, Rear side): present = No
Pin 0x1a (Green Line Out, Rear side): present = No
Pin 0x1b (Black Mic, Left side): present = Yes
Pin 0x1d (Not connected): present = No
Pin 0x1e (Black SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No

Result with the 2 devices connected

@N550LF:~/hdajacksensetest/alsa-tools/hdajacksensetest$ sudo ./hdajacksensetest --card=1 -a
Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Green Line Out, Rear side): present = No
Pin 0x15 (Green Line Out, Rear side): present = Yes
Pin 0x16 (Internal Speaker): present = No
Pin 0x18 (Internal Speaker): present = No
Pin 0x19 (Green Line Out, Rear side): present = No
Pin 0x1a (Green Line Out, Rear side): present = Yes
Pin 0x1b (Black Mic, Left side): present = Yes
Pin 0x1d (Not connected): present = No
Pin 0x1e (Black SPDIF Out, Rear side): present = No
Pin 0x1f (Not connected): present = No

In hoping that's help.

Revision history for this message
Raymond (superquad-vortex2) wrote :

remove model=asus-mode8

only need patch=hda-jack-retask.fw

and fixup subwoofer pin

      0x1a 0x04110011

do your notebook have optical SPDIF ?

0x1e is the digital out pin

your BIOS pin default

0x12 0x90a60130
 0x14 0x90170110
 0x15 0x03211020

Revision history for this message
Raymond (superquad-vortex2) wrote :

does user manual mention that the combo jack support headset, headphone or mic ?

if yes, you may try

model=dell-headset-multi

to test the headset mic

i

Revision history for this message
Raymond (superquad-vortex2) wrote :

Pin 0x15 (Green Line Out, Rear side): present = Yes
 Pin 0x16 (Internal Speaker): present = No
 Pin 0x18 (Internal Speaker): present = No
 Pin 0x19 (Green Line Out, Rear side): present = No
 Pin 0x1a (Green Line Out, Rear side): present = No
 Pin 0x1b (Black Mic, Left side): present = Yes

if node 0x1b is headset mic and detectable you should not use dell-headset-multi

just add pin fixup

 { 0x19, 0x01a1903c } /* headset mic with own detect */

and specify parser flag

Revision history for this message
Raymond (superquad-vortex2) wrote :

the easy way is to fixup

node 0x1b as mic jack
node 0x1a as subwoofer

check whether you get signal from both channel from the headset mic

Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond,

My laptop doesn't have any optical SPDIF.
I don't have any idea which file I 've to modify and how to do that if I need lauch any script.
Is it ?
/etc/pulse/daemon.conf
 or which file?

Thanks

Revision history for this message
Raymond (superquad-vortex2) wrote :

remove all pins

only fixup pin of external subwooofer

/lib/firmware/hda-jack-retask.fw

0x1a 0x04110011 /* [JACK] Speaker at Ext Right */

since your BIOS pin already contain

0x12 0x90a60130 /* internal mic */
  0x14 0x90170110 /* internal speaker */
  0x15 0x03211020 /* HP at Ext Left */
0x1b 0x03a11040 /* mic at ext left */

/etc/modprobe.d/

remove model=asus-mode8 from one of the conf files

Revision history for this message
Raymond (superquad-vortex2) wrote : Re: [alsa-devel] [PATCH v2- ALSA 1/3] HDA - Allow hda_jack_tbl to use another nid for pin sense

>
> Do you need any testing from my side to be able to finish the developing?
>

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1451170/comments/22

It seem that asus n550lf which also use alc668 codec but headset mic pin
node 0x1b is detectable

Can you confirm that your headset mic node is not detectable by
hdajacksensetest ?

This mean that the model "headset-sonicmaster" will be quite confusing when
asus notebooks have different ways of headset implementation

Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond,
Sorry for the delay, that's work for me I modified the
/lib/firmware/hda-jack-retask.fw file like this :
[codec]
0x10ec0668 0x104312dd 0

[pincfg]
0x12 0x90a60130
0x14 0x90170110
0x15 0x03211020
0x1b 0x03a11040

I carry out the comments because I was't sure

And I did not find any model=asus-mode8 lines in any files in the /etc/modprobe.d/

So, PB solved And I'm very glad to receive this woderfull support.
Thanks lot again.

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :
Download full text (3.4 KiB)

Asus N751JK - ALC668 - hdajacksenseresults:

-----

Nothing plugged in:

Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x15 (Black Headphone, Left side): present = No
Pin 0x16 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Pink Mic, Left side): present = No
Pin 0x1a (Internal Speaker): present = No
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No

---

Only headset plugged in:

Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x15 (Black Headphone, Left side): present = Yes
Pin 0x16 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Pink Mic, Left side): present = No
Pin 0x1a (Internal Speaker): present = No
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No

---

Only headphones plugged in:

Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x15 (Black Headphone, Left side): present = Yes
Pin 0x16 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Pink Mic, Left side): present = No
Pin 0x1a (Internal Speaker): present = No
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No

---

Only microphone plugged in:

Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x15 (Black Headphone, Left side): present = Yes
Pin 0x16 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Pink Mic, Left side): present = No
Pin 0x1a (Internal Speaker): present = No
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No

---

Only subwoofer plugged in:

Pin 0x12 (Internal Mic): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x15 (Black Headphone, Left side): present = No
Pin 0x16 (Not connected): present = No
Pin 0x18 (Not connected): present = No
Pin 0x19 (Pink Mic, Left side): present = No
Pin 0x1a (Internal Speaker): present = Yes
Pin 0x1b (Black Mic, Left side): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x1f (Not connected): present = No

Note that I have used hdajackretask to assing pin 0x1a -> LFE, apparently
resulting in jack detection for the subwoofer.

On 5 October 2015 at 06:51, Raymond Yau <email address hidden> wrote:

>
> >
> > Do you need any testing from my side to be able to finish the developing?
> >
>
>
> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1451170/comments/22
>
> It seem that asus n550lf which also use alc668 codec but headset mic pin
> node 0x1b is detectable
>
> Can you confirm that your headset mic node is not detectable by
> hdajacksensetest ?
>
> This mean that the model "headset-sonicmaster" will be quite confusing
> when asus notebooks have different ways of h...

Read more...

Revision history for this message
Raymond (superquad-vortex2) wrote :

Sorry for the delay, that's work for me I modified the
 /lib/firmware/hda-jack-retask.fw file like this :
 [codec]
 0x10ec0668 0x104312dd 0

[pincfg]
 0x12 0x90a60130
 0x14 0x90170110
 0x15 0x03211020
 0x1b 0x03a11040

> I carry out the comments because I was't sure

Can you post the output of alsa-info.sh ?

which kind of headset(CITA,OMTP) are you using ?

Revision history for this message
dubis (dubois-michel) wrote :

Raymond,

I will provide what you need.

Concerning my headset, I didn't test the micro yet. How to know if my headset is CITA or OMTP without open it for testing the ground.

http://3.bp.blogspot.com/-RHZngAlLkYY/UlBPiWoc-0I/AAAAAAAAAm0/zLP1s746z4o/s1600/sony+headpone+pin+OMTP+CTIA.png

Thanks

Revision history for this message
dubis (dubois-michel) wrote :

My headset should be OMTP as it was sold with my WIKO WAX smartphone and I went to check only new phone like OZZY, IGGY, CINK PEAX2, STAIRWAY, DARKSIDE will get CTIA.

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/

unlike your laptop, the headset mic of those dell note book and arthur 's asus n751jk are not detectable,

although the driver can differentitate CITA and OMTP headset, it cannot differentitate headphone , headset or mic

the popup dialog was designed to change the role of the combo jack by changing the capture source control

Revision history for this message
dubis (dubois-michel) wrote :

Here the new alsa info.txt
The microphone of the headset is working so the plug of the sound card should be OMTP.
The microphone of the laptop is working when I unplug the headset.

Revision history for this message
Raymond (superquad-vortex2) wrote :

   sudo echo 1 > /sys/module/snd_hda_codec/parameters/coef_dump

can you provide output of alsa-info.sh with coef_dump enabled which dump proc coefs of node 0x20

what is the value of proc coef 0x15 of node 0x20

Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=197

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=73bdd597823e2231dc882577dbbaf8df92fe1775

+ case 0x10ec0668:
+ alc_write_coef_idx(codec, 0x15, 0x0d60);
+ alc_write_coef_idx(codec, 0xc3, 0x0000);
+ break;
+ }
+ snd_printdd("Headset jack set to iPhone-style headset mode.\n");
+}

case 0x10ec0668:
+ alc_write_coef_idx(codec, 0x15, 0x0d50);
+ alc_write_coef_idx(codec, 0xc3, 0x0000);
+ break;
+ }
+ snd_printdd("Headset jack set to Nokia-style headset mode.\n");

case 0x10ec0668:
+ alc_write_coef_idx(codec, 0x11, 0x0001);
+ alc_write_coef_idx(codec, 0xb7, 0x802b);
+ alc_write_coef_idx(codec, 0x15, 0x0d60);
+ alc_write_coef_idx(codec, 0xc3, 0x0c00);
+ msleep(300);
+ val = alc_read_coef_idx(codec, 0xbe);
+ is_ctia = (val & 0x1c02) == 0x1c02;
+ break;
+ }
+
+ snd_printdd("Headset jack detected iPhone-style headset: %s\n",
+ is_ctia ? "yes" : "no");
+ spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP;
+}
+

Revision history for this message
Raymond (superquad-vortex2) wrote :

Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 19 [61%] [-6.00dB] [off]
  Front Right: Playback 19 [61%] [-6.00dB] [off]

can you hear what you say to headset mic from your headphone when you trun on "Mic playback switch" and "mic playback volume" ?

do the user manual mention the support of TRS headphone with this combo jack ?

Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond

Just to be sure is it coef_dump or dump_coef?

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://bugzilla.kernel.org/show_bug.cgi?id=87771

as your headset mic already workin without calling alc_fixup_headset_mode_alc668, the may mean the default proc coef may only support one kind of headset

just need to dump proc coef to check those values

Revision history for this message
Raymond (superquad-vortex2) wrote :

[ 23.503841] sound hdaudioC1D0: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 23.503844] sound hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 23.503846] sound hdaudioC1D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 23.503847] sound hdaudioC1D0: mono: mono_out=0x0
[ 23.503849] sound hdaudioC1D0: inputs:
[ 23.503850] sound hdaudioC1D0: Mic=0x1b
[ 23.503852] sound hdaudioC1D0: Internal Mic=0x12

this mean that you just need the pin fixup of the external subwoofer node 0x1a and asus 2.1 channel map if it only use right channel instead of both channels

--
00:1b.0 0403: 8086:9c20 (rev 04)
 Subsystem: 1043:12dd

with your pci ssid and no need to chain to call alc_fixup_headset_mode_alc668 as your headset mic already working

Revision history for this message
Raymond (superquad-vortex2) wrote :

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

you may need to ask the author and the report whether N550 subwoofer can be detected by hdajacksensetest

+ SND_PCI_QUIRK(0x1043, 0x11cd, "Asus N550", ALC662_FIXUP_BASS_1A),

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://bugzilla.kernel.org/show_bug.cgi?id=65091

follow up the above reportand ask the reporter whether headset work

Revision history for this message
dubis (dubois-michel) wrote :

@Raymond

   sudo echo 1 > /sys/module/snd_hda_codec/parameters/coef_dump

The coef_dump doesn't exist and the command above will create it. There is a file named "dump_coef" in this directory which is contining "-1" inside.

Do I apply the command that you gave me before provide alsa-info.sh result?

Revision history for this message
Raymond (superquad-vortex2) wrote :
Revision history for this message
dubis (dubois-michel) wrote :

Hi Raymond,

The good command is :

echo "1" |sudo tee --append /sys/module/snd_hda_codec/parameters/dump_coef

You can find the alsa-info result attached to this post

Revision history for this message
dubis (dubois-michel) wrote :

For answer to this question:
can you hear what you say to headset mic from your headphone when you trun on "Mic playback switch" and "mic playback volume" ?
do the user manual mention the support of TRS headphone with this combo jack ?

I tried the automatic tack with skype and the micro of the headset seems to work well I heard my voice.

Revision history for this message
Raymond (superquad-vortex2) wrote :

/sys/class/sound/hwC1D0/init_pin_configs:
0x12 0x90a60140
0x14 0x90170110
0x15 0x04211020
0x16 0x40000000
0x18 0x04a11050
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40c6852d
0x1e 0x04451130
0x1f 0x411111f0

seem n750jk also have detectable mic jack by bios setup

do n750jk user manual or specification mention the combo jack support which kind of headset (cita/ omtp)?

May be just those CITA headset need those specific coef and omtp headset work by default

the proc coefs of n550lf seem different from those used in dell-headset-multi

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://www.asus.com/Notebooks/N550LF/

what is quad speaker array ?

do all speakers of your laptop work as expected ?

only pulseaudio 7.0 provide LFE filtering

https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1500498

but only ppa and not offically supported in 15.10

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :
Download full text (3.9 KiB)

Hi Raymond,

Do you need more testing on the Asus N751JK by me?
Do you need help from other developers?

On 6 October 2015 at 10:22, Arthur Borsboom <email address hidden>
wrote:

> Asus N751JK - ALC668 - hdajacksenseresults:
>
> -----
>
> Nothing plugged in:
>
> Pin 0x12 (Internal Mic): present = No
> Pin 0x14 (Internal Speaker): present = No
> Pin 0x15 (Black Headphone, Left side): present = No
> Pin 0x16 (Not connected): present = No
> Pin 0x18 (Not connected): present = No
> Pin 0x19 (Pink Mic, Left side): present = No
> Pin 0x1a (Internal Speaker): present = No
> Pin 0x1b (Black Mic, Left side): present = No
> Pin 0x1d (Not connected): present = No
> Pin 0x1e (Not connected): present = No
> Pin 0x1f (Not connected): present = No
>
> ---
>
> Only headset plugged in:
>
> Pin 0x12 (Internal Mic): present = No
> Pin 0x14 (Internal Speaker): present = No
> Pin 0x15 (Black Headphone, Left side): present = Yes
> Pin 0x16 (Not connected): present = No
> Pin 0x18 (Not connected): present = No
> Pin 0x19 (Pink Mic, Left side): present = No
> Pin 0x1a (Internal Speaker): present = No
> Pin 0x1b (Black Mic, Left side): present = No
> Pin 0x1d (Not connected): present = No
> Pin 0x1e (Not connected): present = No
> Pin 0x1f (Not connected): present = No
>
> ---
>
> Only headphones plugged in:
>
> Pin 0x12 (Internal Mic): present = No
> Pin 0x14 (Internal Speaker): present = No
> Pin 0x15 (Black Headphone, Left side): present = Yes
> Pin 0x16 (Not connected): present = No
> Pin 0x18 (Not connected): present = No
> Pin 0x19 (Pink Mic, Left side): present = No
> Pin 0x1a (Internal Speaker): present = No
> Pin 0x1b (Black Mic, Left side): present = No
> Pin 0x1d (Not connected): present = No
> Pin 0x1e (Not connected): present = No
> Pin 0x1f (Not connected): present = No
>
> ---
>
> Only microphone plugged in:
>
> Pin 0x12 (Internal Mic): present = No
> Pin 0x14 (Internal Speaker): present = No
> Pin 0x15 (Black Headphone, Left side): present = Yes
> Pin 0x16 (Not connected): present = No
> Pin 0x18 (Not connected): present = No
> Pin 0x19 (Pink Mic, Left side): present = No
> Pin 0x1a (Internal Speaker): present = No
> Pin 0x1b (Black Mic, Left side): present = No
> Pin 0x1d (Not connected): present = No
> Pin 0x1e (Not connected): present = No
> Pin 0x1f (Not connected): present = No
>
> ---
>
> Only subwoofer plugged in:
>
> Pin 0x12 (Internal Mic): present = No
> Pin 0x14 (Internal Speaker): present = No
> Pin 0x15 (Black Headphone, Left side): present = No
> Pin 0x16 (Not connected): present = No
> Pin 0x18 (Not connected): present = No
> Pin 0x19 (Pink Mic, Left side): present = No
> Pin 0x1a (Internal Speaker): present = Yes
> Pin 0x1b (Black Mic, Left side): present = No
> Pin 0x1d (Not connected): present = No
> Pin 0x1e (Not connected): present = No
> Pin 0x1f (Not connected): present = No
>
> Note that I have used hdajackretask to assing pin 0x1a -> LFE, apparently
> resulting in jack detection for the subwoofer.
>
> On 5 October 2015 at 06:51, Raymond Yau <email address hidden>
> wrote:
>
>>
>> >
>> > Do you need any testing from my side to be able to finish the
>> developing?
>> >
>>
>>
>> https://bugs.launchpad.net/ubuntu/+sourc...

Read more...

Revision history for this message
Raymond (superquad-vortex2) wrote :

were you test CITA headset only ?

I suspect your asus N750JK may support OTMP headset by default without call alc_fixup_headset_mode_alc668 since your BIOS pincfg are similar to N550LF

but require call alc_fixup_headset_mode_alc668 to support CITA headset and OMTP headset

you may need to ask Kailang

Revision history for this message
Raymond (superquad-vortex2) wrote :

do your asus n750jk have the same proc coef as n550lf when you specify

model=nofixup

Revision history for this message
Raymond (superquad-vortex2) wrote :

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

only realtek engineer know the difference of those proc coefs between asus n550lf and those dell laptop which use model=dell-headset-multi

Revision history for this message
Raymond (superquad-vortex2) wrote :

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

are there any difference between alc3661 and alc668

as dell alc668 codec was renamed to alc3661 ?

Revision history for this message
dubis (dubois-michel) wrote :

after upgrade my subwoofer dosen't work but the headset switch the sound from the laptop speaker to headset
That's suck
pin of the subwoofer is : Pin 0x1a (Not connected): present = Yes

Revision history for this message
dubis (dubois-michel) wrote :

you can close my laptop is fall on the floor I changed It

Revision history for this message
Paul White (paulw2u) wrote :

Further to comment #56, closing.

Changed in alsa-driver (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.