[N550JV, Realtek ALC668, Black Mic, Left] No autoswitch

Bug #1315911 reported by Adrian
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

When I plug in the smartphone headset microphone and sound stop working. If I go to Pulseaudio Volume Control and I select Internal Microphone for input and Speakers for output the hedset works fine. If I remove the headset, the speakers and the microphone stop working again. I have to manually reset them again to make them working. This is really anoying, especially in Skype or Viber.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: adrian 11017 F.... pulseaudio
 /dev/snd/controlC0: adrian 11017 F.... pulseaudio
CurrentDesktop: Unity
Date: Sun May 4 19:55:50 2014
InstallationDate: Installed on 2014-04-12 (22 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Black Mic, Left
Symptom_Type: No auto-switch between inputs
Title: [N550JV, Realtek ALC668, Black Mic, Left] No autoswitch
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/17/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N550JV.207
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N550JV
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.:bvrN550JV.207:bd09/17/2013:svnASUSTeKCOMPUTERINC.:pnN550JV:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN550JV:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: N550JV
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

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

17.883521] autoconfig: line_outs=2 (0x14/0x1a/0x0/0x0/0x0) type:speaker
[ 17.883522] speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 17.883523] hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 17.883524] mono: mono_out=0x0
[ 17.883524] inputs:
[ 17.883525] Mic=0x1b
[ 17.883526] Internal Mic=0x12

how many Jacks do your notebook have ?

the pin default of this node support Jack detection which is usually used by for Mic only

those headset Mic and headphone usually only need to use one of the Jack detection of the headphone or Mic but not both

Node 0x1b [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x03 0x03]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x03a11040: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0

control.15 {
  iface CARD
  name 'Mic Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.16 {
  iface CARD
  name 'Internal Mic Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.17 {
  iface CARD
  name 'Speaker Front Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.18 {
  iface CARD
  name 'Speaker Surround Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.19 {
  iface CARD
  name 'Headphone Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }

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

do you mean dynamic adc switching does not work with auto Mic switching
since your internal digital mic is connected to audio input node 0x07 while the external analog mic jack is connected to another audio input ?

you may need to file an upstream bug report

ode 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Device: name="ALC668 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals: [0x3c 0x3c]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x12
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals: [0x3c 0x3c]
  Converter: stream=4, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals: [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x22
Node 0x0a [Audio Input] wcaps 0x100791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x570]: 32000 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x1f

Node 0x12 [Pin Complex] wcaps 0x400401: Stereo
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Pincap 0x00000020: IN
  Pin Default 0x90a60130: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0

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

does the capture volume and switch at node 0x08 affect amp in values of both node 0x07 and 0x08 ?

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

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

does the quad array speaker works as 4.0 speakers or just two pairs of stereo speakers ?

Revision history for this message
Adrian (adrian-rosian) wrote :

hello,

Sorry, I don't know where/how to get that information. I attached a system testing report with the sound tests. In the meantime I also upgraded the kernel to the mainline 3.14.5 in the hopes that it will solve the issue.

Revision history for this message
Adrian (adrian-rosian) wrote :

The laptop has 2 jacks, one thinner, for external beats audio speaker, and one smaller, for headset. I have normal smartphone headsets (from a HTC Desire 300) that have microphones incorporated.

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

I don't see that dialog in Ubuntu, like the author claims there, is there any software that I need to install?

Revision history for this message
Adrian (adrian-rosian) wrote :

I also tried the fix for Dell, it doesn't appear to work

Revision history for this message
Adrian (adrian-rosian) wrote :

Any news on this?

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

seem need to change pin default from 0x03a11040 to 0x03a114c

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

+ [ALC668_FIXUP_DELL_MIC_NO_PRESENCE] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
+ { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
+ { }
+ },
+ .chained = true,
+ .chain_id = ALC668_FIXUP_HEADSET_MODE
+ },

Node 0x1b [Pin Complex] wcaps 0x40048b: Stereo Amp-In
   Control: name="Mic Boost Volume", index=0, device=0
     ControlAmp: chs=3, dir=In, idx=0, ofs=0
   Control: name="Mic Jack", index=0, device=0
   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
   Amp-In vals: [0x03 0x03]
   Pincap 0x00003724: IN Detect
     Vref caps: HIZ 50 GRD 80 100
   Pin Default 0x03a11040: [Jack] Mic at Ext Left
     Conn = 1/8, Color = Black
     DefAssociation = 0x4, Sequence = 0x0
   Pin-ctls: 0x24: IN VREF_80
   Unsolicited: tag=02, enabled=1
   Power states: D0 D1 D2 D3 EPSS
   Power: setting=D0, actual=D0

Revision history for this message
Adrian (adrian-rosian) wrote :

Is there any patch I can apply? How do I use this?

Revision history for this message
Adrian (adrian-rosian) wrote :

Alsa info attached

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

can you please be a little more specific about the file I need to modify?

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

hda-jack-retask.fw

you can find the location of the firmware file in /etc/modprobe.d/alsa-base.conf

Revision history for this message
Adrian (adrian-rosian) wrote :

I have the following in the file:

[codec]
0x10ec0668 0x104311cd 0

[pincfg]
0x12 0x90a60130
0x14 0x90170110
0x15 0x03211020
0x16 0x40000000
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x80106111
0x1b 0x03a11040
0x1d 0x40c00001
0x1e 0x411111f0
0x1f 0x411111f0

[hint]
parser_flags = 4

Doesn't seem to work properly. Should I leave the [pincfg] section empty?

Revision history for this message
Adrian (adrian-rosian) wrote :
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=a385d97b826df72cce06939dda4a4d41bc97c8a8

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_auto_parser.c?id=1c70a583417e8db1e1d5069d7651ba294e9499de

did you find headset Mic playback volume control ?

you have to set bit 8 of headset Mic node since it use headphone Jack detection

+ { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack

Misc = NO_PRESENCE

Revision history for this message
Adrian (adrian-rosian) wrote :

This seems to do the job, although the microphone from the headset only works is it's unamplified. I saw that the setting you recommended corresponds to channel group 3 and channel (in group) 24&25. Any particular reason for that?

Thank you for your help so far, btw. Here is the content of the file:

[codec]
0x10ec0668 0x104311cd 0

[pincfg]
0x12 0x90a60130
0x14 0x90160040
0x15 0x03211020
0x16 0x40000000
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x80106111
0x1b 0x03a1113c
0x1d 0x40c00001
0x1e 0x411111f0
0x1f 0x411111f0

[hint]
parser_flags=4

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

you can use

Pin Default 0x03a1114c instead of Pin Default 0x03a11040

when you submit your patch to alsa devel mailing list

Revision history for this message
Adrian (adrian-rosian) wrote :

Hello.

Now it seems to work ok, workflow-wise (it asks me what I did plug in), but the microphone has an echo (reverb) when speaking on Skype, so it's unusable. Tried other settings, nothing seems to do the job right. Would you advise to get the latest kernel from mainline (3.15.4)? Would that help?

Revision history for this message
Adrian (adrian-rosian) wrote :

Fixed it using this bug report: #1331915 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1331915.

Basically:
1) Make sure there are no alsa daily builds installed on that laptop, including any oem-audio daily build packages.
2) modify the alsa-base.conf file (edit /etc/modprobe.d/alsa-base.conf and add the line
“options snd-hda-intel model=,dell-headset-multi”), careful at the comma "," before dell
3) reboot
4) Plug in your headeset
5) you'll get the pop-up dialog confirming what you just plugged in.
6) Select headset

Quote about the comma: "That should get the mic going for you on that machine. David told me that the comma is needed because HDMI audio became the first sound card in the case of this laptop."

The hdajackretask software is a nice get-out-of-jail card, but couldn't figure out the correct pin assignments myself (or maybe some more settings were needed to get it working equivalently with the above alsa setting).

Thank you for your time. On to solve the acpi setting for getting the brightness keys to work :)

Revision history for this message
Adrian (adrian-rosian) wrote :

By the way, a nice list of available models for your model config can be found here: https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio-Models.txt

Revision history for this message
Adrian (adrian-rosian) wrote :

As a side note, this doesn't solve the subwoofer problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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