[HDA-Intel - HD-Audio Generic, recording] No sound at all

Bug #1509921 reported by Yung Shen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Won't Fix
Undecided
David Henningsson
alsa-driver (Ubuntu)
Confirmed
Undecided
David Henningsson

Bug Description

This is a desktop box, with following ports:
front jack: a single headset combo jack
rear jacks: mic, speaker, line-in

An "Analog Input" consistently show up even there is nothing plugged,
but I'm not able to record using headset via front combo jack or rear mic jack, they all recorded with noises.

00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:9840]
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 02)

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-66.108-generic 3.13.11-ckt27
Uname: Linux 3.13.0-66-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.14.1-0ubuntu3.16
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: u 1824 F.... pulseaudio
 /dev/snd/controlC0: u 1824 F.... pulseaudio
CurrentDesktop: Unity
Date: Mon Oct 26 11:46:46 2015
InstallationDate: Installed on 2015-10-23 (2 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaRecordingTest: ALSA recording test through plughw:Generic_1 failed
Symptom_Card: Built-in Audio - HD-Audio Generic
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: u 1824 F.... pulseaudio
 /dev/snd/controlC0: u 1824 F.... pulseaudio
Symptom_Type: No sound at all
Title: [HDA-Intel - HD-Audio Generic, recording] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/21/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.0.0
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: Not Specified
dmi.modalias: dmi:bvnDellInc.:bvr1.0.0:bd05/21/2015:svnDellInc.:pnInspiron3655:pvr1.0.0:rvnDellInc.:rn:rvr:cvnDellInc.:ct3:cvrNotSpecified:
dmi.product.name: Inspiron 3655
dmi.product.version: 1.0.0
dmi.sys.vendor: Dell Inc.

Revision history for this message
Yung Shen (kaxing) wrote :
tags: added: 201505-18315 blocks-hwcert
Changed in hwe-next:
assignee: nobody → David Henningsson (diwic)
Changed in alsa-driver (Ubuntu):
assignee: nobody → David Henningsson (diwic)
Revision history for this message
Raymond (superquad-vortex2) wrote :

080122] SKU: Nid=0x1d sku_cfg=0x4054c601
[ 10.080128] SKU: port_connectivity=0x1
[ 10.080130] SKU: enable_pcbeep=0x1
[ 10.080132] SKU: check_sum=0x00000004
[ 10.080133] SKU: customization=0x000000c6
[ 10.080134] SKU: external_amp=0x0
[ 10.080136] SKU: platform_type=0x0
[ 10.080137] SKU: swap=0x0
[ 10.080138] SKU: override=0x1
[ 10.080329] autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 10.080331] speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 10.080333] hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 10.080335] mono: mono_out=0x0
[ 10.080336] inputs:
[ 10.080338] Mic=0x18
[ 10.080339] Line=0x1a
[ 10.080341] realtek: No valid SSID, checking pincfg 0x4054c601 for NID 0x1d
[ 10.080343] realtek: Enabling init ASM_ID=0xc601 CODEC_ID=10ec0662
[ 10.090186] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:14.2/sound/card1/input13
[ 10.090327] input: HD-Audio Generic Line Out as /devices/pci0000:00/0000:00:14.2/sound/card1/input12
[ 10.090441] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:14.2/sound/card1/input11
[ 10.090528] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:14.2/sound/card1/input10

do rear mic and line in works ?

the headset mic should be one of the remaining unconnected pin complex

try hdajackretask to change one of the remaining node to mic (e.g. node 0x19,...

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

ports:
  analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
   properties:

  analog-input-microphone: Microphone (priority 8700, latency offset 0 usec, available: no)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
   properties:

 active port: <analog-input>

it is strange that analog input is the active port when rear mic and line in are not plugged

 control.26 {
  iface CARD
  name 'Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.27 {
  iface CARD
  name 'Line Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.28 {
  iface CARD
  name 'Line Out Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.29 {
  iface CARD
  name 'Front Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

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

Hi,

Raymond is probably right in comment #4, this patch will help enable the front headset mic. We can probably backport this to stable if necessary; but which kernel should we backport it too?

I e, how come you're running 3.13 when we have 14.04.3 which includes the 3.19 kernel?

Revision history for this message
David Henningsson (diwic) wrote :

Side note: the above fix is in the 4.2 kernel, so should work in Wily - that said, 14.04.4 is not to be released until February, so getting the fix to stable (3.19?) could save us a month or two.

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

as the driver create two input source controls for the desktop instead of one capture source control for notebook

do this mean that the headset mic and headphone mic in second input source control have no effect as alc_heaset_mode only use first mux_pin to change the role of the combo jack ?

Revision history for this message
David Henningsson (diwic) wrote :

So; could you please retry with both 3.19 and 4.2 kernels and let me know if there is any difference in symptoms? Please also attach alsa-info. Thanks.

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

http://cgit.freedesktop.org/pulseaudio/pulseaudio/log/src/modules/alsa/mixer/paths?qt=grep&q=front+headphone

how do pulseaudio know combo jack is retasked to mic in but front headphone jack return true and mute line out ?

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

http://lists.freedesktop.org/archives/pulseaudio-discuss/2015-November/024702.html

Line out and Headset share "Front Playback Volume Control"

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

ARECORD

**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 rev3 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 1 [Generic_1]

Card hw:1 'Generic_1'/'HD-Audio Generic at 0xfea60000 irq 16'
  Mixer name : 'Realtek ALC662 rev3'
  Components : 'HDA:10ec0662,102806f5,00100300'

Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Rear Mic' 'Heaset Mic' 'Line' 'Headphone Mic'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Rear Mic' 'Heaset Mic' 'Line' 'Headphone Mic'
  Item0: 'Headset Mic'

Revision history for this message
Yung Shen (kaxing) wrote :

to comment #6
I choose to test the system start with 14.04.1 with 3.13 kernel because it is the longest supported LTS kernel version.

Revision history for this message
Yung Shen (kaxing) wrote :

a quick verification with 14.04.3 on stock image created live usb, headset microphone recording still not working, on both front combo jack and rear mic jack.

and a clarification, I was also using headset to test with mic jack, and it got a lot noise, but today I try to use a dedicated(stand alone) microphone on rear mic jack, recording works with both kernel(3.13, 3.19).

description: updated
Revision history for this message
Yung Shen (kaxing) wrote :

with 4.2 kernel, tested on 15.10 live usb, the headset mic recording on front combo jack now works.
also-info loggoing with stand alone mic on rear mic jack and headset on front combo jack.

Changed in alsa-driver (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
David Henningsson (diwic) wrote :

Thanks. So then it's probably just a matter of backporting the patch in #4.

Given the kernel SRU cycle (if we fix now, it will reach end users approximately 15 - 31 December ), compared to waiting for 14.04.4 (February 4th) where this is already fixed, could you check whether we should attempt to backport this or not, and if so, to which kernel? (I presume 3.19 rather than 3.13?)

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

do the combo jack support headphone since it support headset and headphone mic ?

any specific reason for no headphone mic boost volume control when there are headset mic boost, rear mic boost and line boost ?

Revision history for this message
Yung Shen (kaxing) wrote :

to Raymond,
yes, the combo jack works fine with common headphone. but I didn't know the answer about 2nd question in comment #17.

to David,
I didn't know which kernel as well, but I will try to find the answer.

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

Simple mixer control 'Input Source',0 Capabilities: cenum
Items: 'Headset Mic' 'Rear Mic' 'Line' 'Headphone Mic'
Item0: 'Headset Mic'

Simple mixer control 'Input Source',1 Capabilities: cenum
Items: 'Headset Mic' 'Rear Mic' 'Line' 'Headphone Mic'
Item0: 'Headset Mic'

control.31 { iface CARD name 'Headset Mic Phantom Jack' value true comment { access read type BOOLEAN count 1 } }

Change input source to headphone mic , this change role of combo jack to front mic

control.32 { iface CARD name 'Rear Mic Jack' value true comment { access read type BOOLEAN count 1 } }

control.33 { iface CARD name 'Line Jack' value false comment { access read type BOOLEAN count 1 } }

control.34 { iface CARD name 'Headphone Mic Jack' value true comment { access read type BOOLEAN count 1 } }

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

Node 0x18, 0x19, 0x1a and 0x1b have

  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]

as node 0x1b Headphone can be retasked to Headphone Mic , there should be Headphone Mic Boost at node 0x1b

Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Control: name="Rear Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01a19020: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=03, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e
Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Headset Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x03 0x03]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e
Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x0181302f: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x2, Sequence = 0xf
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=04, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001373c: IN OUT HP EAPD Detect
    Vref caps: HIZ 50 GRD 80 100
  EAPD 0x2: EAPD
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAs...

Read more...

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

do the combo headset support CITA or OMPT headset since alc_determine_headset_type() does not return value for alc662

the role of the combo jack is determined by first mux_pin , this mean that the "Headset Mic and "Headphone Mic" in second input source control have no effect

static void alc_update_headset_mode(struct hda_codec *codec)
{
 struct alc_spec *spec = codec->spec;

 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]];
 hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0];

 int new_headset_mode;

 if (!snd_hda_jack_detect(codec, hp_pin))
  new_headset_mode = ALC_HEADSET_MODE_UNPLUGGED;
 else if (mux_pin == spec->headset_mic_pin)
  new_headset_mode = ALC_HEADSET_MODE_HEADSET;
 else if (mux_pin == spec->headphone_mic_pin)
  new_headset_mode = ALC_HEADSET_MODE_MIC;
 else
  new_headset_mode = ALC_HEADSET_MODE_HEADPHONE;

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

 spec->gen.hp_mic = 1;
 /* Mic-in is same pin as headphone */
/* Disable boost for mic-in permanently. (This code is only called
 from quirks that guarantee that the headphone is at NID 0x1b.) */
snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_AMP_GAIN_MUTE, 0x7000); snd_hda_override_wcaps(codec, 0x1b, get_wcaps(codec, 0x1b) & ~AC_WCAP_IN_AMP);

Is there any reason to enable headphone mic when boost cannot be enabled ?

spec->gen.hp_mic = 1;

This seem force the driver not creating Front Headphone Jack ?

Do

Changed in hwe-next:
status: New → Won't Fix
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.