Crash in Firefox P5L-MX, Analog Devices AD1986A, Green Line Out, Rear No sound at all

Bug #1168736 reported by Radoslav Petrov on 2013-04-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ALSA driver
Unknown
Unknown
alsa-driver (Ubuntu)
Undecided
Unassigned

Bug Description

I've tried to play the following file: http://www.via.com.tw/en/downloads/videos/vt8237_raid_sm.wmv
The totem plugin crashes when I press the play button in the browser tab.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: alsa-base 1.0.25+dfsg-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.5.0-27.46~precise1-generic 3.5.7.7
Uname: Linux 3.5.0-27-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.25.
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: zloster 2010 F.... pulseaudio
 /dev/snd/controlC0: zloster 2010 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xdddf8000 irq 42'
   Mixer name : 'Analog Devices AD1986A'
   Components : 'HDA:11d41986,1043818f,00100500'
   Controls : 37
   Simple ctrls : 21
Card1.Amixer.info:
 Card hw:1 'U0x46d0x825'/'USB Device 0x46d:0x825 at usb-0000:00:1d.7-1, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0825'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 6144
   Mono: Capture 5847 [95%] [28.83dB] [off]
CheckboxSubmission: 5546ae9aee3415e882df4b7aa5100bc7
CheckboxSystem: 37fd1f9c26813dd583cb0ae5002a8cd5
Date: Sat Apr 13 22:08:41 2013
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel successful
Symptom_Card: Built-in Audio - HDA Intel
Symptom_DevicesInUse:
 2010 2010 zloster F.... pulseaudio
 /dev/snd/controlC0: zloster F.... pulseaudio
Symptom_Jack: Green Line Out, Rear
Symptom_PulsePlaybackTest: PulseAudio playback test successful
Symptom_Type: No sound at all
Title: [P5L-MX, Analog Devices AD1986A, Green Line Out, Rear] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/24/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0501
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5L-MX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev x.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: ASUSTek Computer INC.
dmi.chassis.version: Rev 1.xx
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0501:bd01/24/2007:svnUSTekComputerINC.:pnP5L-MX:pvrRev1.xx:rvnASUSTeKComputerINC.:rnP5L-MX:rvrRevx.xx:cvnASUSTekComputerINC.:ct3:cvrRev1.xx:
dmi.product.name: P5L-MX
dmi.product.version: Rev 1.xx
dmi.sys.vendor: USTek Computer INC.

Radoslav Petrov (zloster12) wrote :
Radoslav Petrov (zloster12) wrote :

I've installed the oem-audio-hda-daily-lts-quantal-dkms DEB package. Restarted the system and the problem was still reproducible (The totem plugin crashes when I press the play button in the browser tab with the cited video). Then I noticed that the NoScript Firefox blocker was active and blocking the content in the tab. When I allowed the site everything was working fine. Next I deinstalled the new package (sudo aptitude purge oem-audio-hda-daily-lts-quantal-dkms) and restarted the system. I navigated to the video URL, allowed the scripts in NoScript and the video started to play without problem. So there is some problem when totem-pluging is blocked by NoScript Firefox extention.

Raymond (superquad-vortex2) wrote :

[45722.684940] hda_codec: invalid CONNECT_LIST verb 12[2]:2100
[45812.811552] hda_codec: invalid CONNECT_LIST verb 12[2]:2100

Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Capture Source", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals: [0x81 0x81]
  Connection: 0

post the output of alsa-info.sh

you need two patches

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=5fdaecdb0d8fd8131d2adb9ca0ae2b77707b36ca

ALSA: hda - Allow one chance for zero NID in connection list
The commit [2e9bf24: ALSA: hda_codec: Check for invalid zero connections] trims the whole connection list when an invalid value is reported by the hardware. But some codecs (at least AD1986A) may give a zero NID in the middle of the connection list, so dropping the whole list isn't good for such cases.

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=d94ddd85b1e044c030d62c62f95ae700776888f8

ALSA: hda - Increase the max depth of widget connections
Old codecs like AD1986A tend to have long paths as they were just made to be the way like AC97. The current max depth 5 can be too short for such devices.

Radoslav Petrov (zloster12) wrote :

http://www.alsa-project.org/db/?f=0707cdbabc4ce50c15e385b98081cb1b021b9cbc - this is output of the alsa-info.sh

I'll check how I can upgrade the ALSA installation on my PC.

Radoslav Petrov (zloster12) wrote :

I'm still on 12.04 but now I'm running the Raring kernel - the latest 3.8.0. I've also update the ALSA drivers with the latest build from the information above. I'm attaching the output of dmesg. I can still see totem failing with:
totem-plugin-vi[2702]: segfault at 8 ip 00007ff5ba764417 sp 00007fff73435c60 error 4 in totem-plugin-viewer[7ff5ba74d000+40000]

But I don't see the error from the audio codec.
I'll try to remove the latest ALSA drivers and check again to see if there is an error without them.

Raymond (superquad-vortex2) wrote :

but the driver still not get the connnection list

Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Capture Source", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals: [0x8b 0x8b]
  Connection: 0

http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/log/sound/pci/hda?qt=grep&q=ad1986a

seem that you are still using static quirk since there are no Jack detection controls

post the output of

pactl list

pactl stat

Radoslav Petrov (zloster12) wrote :
Radoslav Petrov (zloster12) wrote :
Radoslav Petrov (zloster12) wrote :

About the comment:
"http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/log/sound/pci/hda?qt=grep&q=ad1986a

seem that you are still using static quirk since there are no Jack detection controls"

I've checked the tag date/time for 3.8 kernel here: http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tag/?id=v3.8
And it seems that I need to try newer kernel than the 3.8.0. Am I right?

Raymond (superquad-vortex2) wrote :

the connection list should be similar to this

Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals: [0x80 0x80]
  Connection: 8
     0x11* 0x22 0x00 0x21 0x10 0x07 0x08 0x23

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/alsa-driver/precise-updates/files/head:/alsa-kernel/pci/hda/

seem still not using hda_auto_parser.c in precise update

Raymond (superquad-vortex2) wrote :

your last alsa-info output still contagion the error message in system log

[ 5377.147319] hda_codec: invalid CONNECT_LIST verb 12[2]:2100

Raymond (superquad-vortex2) wrote :

Are your computer a desktop or laptop ?

- SND_PCI_QUIRK(0x1043, 0x817f, "ASUS P5", AD1986A_3STACK),
- SND_PCI_QUIRK(0x1043, 0x818f, "ASUS P5", AD1986A_LAPTOP),

+ SND_PCI_QUIRK_MASK(0x1043, 0xff00, 0x8100, "ASUS P5", AD1986A_FIXUP_3STACK),

00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
 Subsystem: ASUSTeK Computer Inc. P5LD2-VM Mainboard (Realtek ALC 882 codec) [1043:817f]

Codec: Analog Devices AD1986A
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x11d41986
Subsystem Id: 0x1043818f
Revision Id: 0x100500

how many audio jacks ?

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

/sys/class/sound/hwC0D0/init_pin_configs:
0x1a 0x02214021
0x1b 0x01014011
0x1c 0x01013012
0x1d 0x01019015
0x1e 0x501700f0
0x1f 0x02a190f0
0x20 0x018130f0
0x21 0x509700f0
0x22 0x993310f0
0x23 0x50b700f0
0x24 0x50f700f0
0x25 0x0145f0f0

autoconfig: line_outs=3 (0x1b/0x1d/0x1c/0x0/0x0) type:line
   speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
   hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
   mono: mono_out=0x0
   dig-out=0x25/0x0
   inputs:
     Mic=0x1f
     Line=0x20
     CD=0x22

did it work on early version (Live CD) before 12.04 ?

Radoslav Petrov (zloster12) wrote :

My computer is a desktop. I think that the problem lies somewhere in the following lines:
----
  00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
    Subsystem: ASUSTeK Computer Inc. P5LD2-VM Mainboard (Realtek ALC 882 codec) [1043:817f]

  Codec: Analog Devices AD1986A
  Address: 0
  AFG Function Id: 0x1 (unsol 0)
  Vendor Id: 0x11d41986
  Subsystem Id: 0x1043818f
  Revision Id: 0x100500
----
My desktop system uses the Asus P5L-MX mainboard (http://www.asus.com/Motherboards/P5LMX/#specifications). The audio is described as:
Azalia ADI1986A, 6 -Channel High-Definition Audio CODEC
Support Jack-Sensing, Enumeration, Multi-streaming
S/PDIF out on back I/O port
Jack-Sensing & Enumeration

The P5LD2-VM Mainboard (http://www.asus.com/Motherboards/P5LD2VM_DH#specifications) is similar product but it uses the following audio:
Realtek ALC 882, 8-ch High Definition Audio CODEC
S/PDIF out interface
Jack-Sensing & Enumeration
Multi-Streaming

Maybe the mainboard and codec mismatch is creating the problem?

I don't know if it worked on Ubuntu prior the 12.04. I've started to use linux since 12.04 came out. I'm able to check with older version of Ubuntu Live CD.

Raymond (superquad-vortex2) wrote :

you have to ask the ubutu audio dev team since the source code still not contain the two fixes

ALSA: hda - Allow one chance for zero NID in connection list

ALSA: hda - Increase the max depth of widget connections

https://code.launchpad.net/ubuntu/+source/alsa-driver

On 10/08/2013 11:54 AM, Radoslav Petrov wrote:
> Hi all,
> I was advised to contact your team
> (https://bugs.launchpad.net/ubuntu/+source/alsa-
> driver/+bug/1168736/comments/15) about the following bug:
> https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1168736
>
> I'm not sure if this is the right way to contact the team. If it is not
> please excuse me.
> So I'm asking someone from the developers to take a look at the issue if
> there are possibility for some further assistance.
>
> Thanks a lot,
> Radoslav Petrov
>

Hi,

It's unclear what you need help with. Is the problem that the totem
plugin crashes (indicated in bug description), or is the problem that
you only have output from front and not rear (indicated in bug title)?

--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

Raymond (superquad-vortex2) wrote :

does DKMS use the latest alsa-driver ?

http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=632408adfe70be6706cb89522b0d5b3dce188d84

Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals: [0x80 0x80]
  Connection: 8
     0x11* 0x22 0x00 0x21 0x10 0x07 0x08 0x23

Node 0x12 is Record Selector

it is better to test the driver with ENABLE_AD_STATIC_QUIRKS first in order to compare the result of using the auto generic driver

1) ad1986a does not support independent headphone
2) ad1986a seem ac97 compatible

0x27 MIC / C/LFE Mixe
0x28 MIC / Line In Mixer
0x29 C/LFE / Line In Mixer
0x2A MIC/Line In/C/LFE Mixe
0x2B MIC_1/2 Mixer

the channel mode seem different from other hda codec

-
-static const struct hda_verb ad1986a_ch2_init[] = {
- /* Surround out -> Line In */
- { 0x1c, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN },
- /* Line-in selectors */
- { 0x10, AC_VERB_SET_CONNECT_SEL, 0x1 },
- /* CLFE -> Mic in */
- { 0x1d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 },
- /* Mic selector, mix C/LFE (backmic) and Mic (frontmic) */
- { 0x0f, AC_VERB_SET_CONNECT_SEL, 0x4 },
- { } /* end */
-};
-
-static const struct hda_verb ad1986a_ch4_init[] = {
- /* Surround out -> Surround */
- { 0x1c, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
- { 0x10, AC_VERB_SET_CONNECT_SEL, 0x0 },
- /* CLFE -> Mic in */
- { 0x1d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 },
- { 0x0f, AC_VERB_SET_CONNECT_SEL, 0x4 },
- { } /* end */
-};
-
-static const struct hda_verb ad1986a_ch6_init[] = {
- /* Surround out -> Surround out */
- { 0x1c, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
- { 0x10, AC_VERB_SET_CONNECT_SEL, 0x0 },
- /* CLFE -> CLFE */
- { 0x1d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
- { 0x0f, AC_VERB_SET_CONNECT_SEL, 0x0 },
- { } /* end */
-};
-

Raymond (superquad-vortex2) wrote :

try hda-jack-sense-test to verify the node of the rear panel jacks ( green, blue and pink) by plug in the speaker or mic

and headphone and mic the front audio panel by plug in headphone and mic

hda-jack-senes-test -a

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

Other bug subscribers

Remote bug watches

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