Ubuntu

[SigmaTel STAC9227, Green Headphone Out, Front] No sound at all

Reported by Renato Silva on 2011-08-02
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ALSA driver
New
Undecided
Unassigned
alsa-driver (Ubuntu)
Undecided
Unassigned

Bug Description

My onboard front audio (headphones) does not work in Ubuntu, but does work in Windows.

These are my sound devices:

== Onboard SigmaTel/IDT STAC9227 audio codec ==

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
 Subsystem: Intel Corporation Device a201
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

== Offboard Genius SM-Live Value 5.1 sound card ==

04:00.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
 Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device
 Kernel driver in use: C-Media PCI
 Kernel modules: snd-cmipci

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: alsa-base 1.0.24+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: renato 1485 F.... pulseaudio
 /dev/snd/pcmC0D0p: renato 1485 F...m pulseaudio
 /dev/snd/controlC1: renato 1485 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0x90200000 irq 43'
   Mixer name : 'SigmaTel STAC9227'
   Components : 'HDA:83847618,8086a201,00100201'
   Controls : 26
   Simple ctrls : 17
Card1.Amixer.info:
 Card hw:1 'CMI8738'/'C-Media CMI8738 (model 55) at 0x1100, irq 21'
   Mixer name : 'CMedia PCI'
   Components : ''
   Controls : 41
   Simple ctrls : 22
CurrentDmesg: [ 30.704011] eth0: no IPv6 routers present
Date: Tue Aug 2 19:43:07 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=pt_BR:en
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel failed
Symptom_Card: Áudio interno - HDA Intel
Symptom_DevicesInUse:
 1485 1485 1485 renato F...m pulseaudio
 /dev/snd/controlC1: renato F.... pulseaudio
Symptom_Jack: Green Headphone Out, Front
Symptom_Type: No sound at all
Title: [, SigmaTel STAC9227, Green Headphone Out, Front] No sound at all
UpgradeStatus: Upgraded to natty on 2011-06-19 (44 days ago)
dmi.bios.date: 11/07/2007
dmi.bios.vendor: Intel Corp.
dmi.bios.version: TS94610J.86A.0087.2007.1107.1049
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: D946GZIS
dmi.board.vendor: Intel Corporation
dmi.board.version: AAD66165-301
dmi.chassis.type: 2
dmi.modalias: dmi:bvnIntelCorp.:bvrTS94610J.86A.0087.2007.1107.1049:bd11/07/2007:svn:pn:pvr:rvnIntelCorporation:rnD946GZIS:rvrAAD66165-301:cvn:ct2:cvr:

Renato Silva (renatosilva) wrote :
tags: added: hw-specific
Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Daniel Letzeisen (dtl131) wrote :

Which audio device do you have connected to the front panel?

Daniel Letzeisen (dtl131) wrote :

No, I meant - which sound card is the front panel audio connector connected to?

Renato Silva (renatosilva) wrote :

Well, as I said in the very beginning, my front audio is onboard, hence the former in description.

Raymond (superquad-vortex2) wrote :

how many analog audio jacks at the rear panel ?

does it support 7.1 channels ?

post the output of alsa-info.sh

Renato Silva (renatosilva) wrote :

3 onboard, 5 in the sound card, and 2 in the front panel. No, it does not support 7.1 channels, only the sound card that supports 5.1. I don't have Ubuntu installed at the moment, so I hope the other people post it instead.

Raymond (superquad-vortex2) wrote :

http://www.idt.com/products/audio-products/high-definition-hd-audio-codecs/stac9227-eight-channel-hd-audio-codec

The STAC9227/9228/9229/9230 are a family of Theater Quality 8-channel audio CODECs that enable systems with 7.1 audio or 5.1 audio playing simultaneously with VoIP or another stereo audio stream.

http://www.intel.com/support/motherboards/desktop/sb/CS-020642.htm#6ch

http://www.intel.com/support/motherboards/desktop/sb/CS-020642.htm#multistream

please post the output of alsa-info.sh

refer to Table 5. Pin Configuration Default Settings of stac9227 datasheet

the following pin complex should be Line Out instead of Speaker,

try model=3stack

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x01114010: [Jack] Speaker at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x02
Node 0x0e [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x01119011: [Jack] Speaker at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x1, Sequence = 0x1
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x04
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x01113012: [Jack] Speaker at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x1, Sequence = 0x2
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x05

Raymond (superquad-vortex2) wrote :

http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=blob_plain;f=Documentation/sound/alsa/HD-Audio-Models.txt;hb=HEAD

STAC9227/9228/9229/927x
=======================
  ref Reference board
  ref-no-jd Reference board without HP/Mic jack detection
  3stack D965 3stack
  5stack D965 5stack + SPDIF
  5stack-no-fp D965 5stack without front panel
  dell-3stack Dell Dimension E520
  dell-bios Fixes with Dell BIOS setup
  volknob Fixes with volume-knob widget 0x24
  auto BIOS setup (default)

try model=auto or model=3stack

Raymond (superquad-vortex2) wrote :

green jack at ext rear should be Line Out
pink jack at ext rear should be Mic
blue jack at ext rear should be Line In

Renato Silva (renatosilva) wrote :

Confusing. I don't see what rear jacks have to do with this, but they are connected correctly to the motherboard, the same for the front panel (which the bug title specifies as the one with problem). I don't see how your links are relevant, since I neither want 6-channel audio nor multi-streaming playback.

As I already have said, I'm not able to post the output of that script any soon, if it's ever available in Ubuntu (and I don't feel quite excited to try out the schizophrenic innovations Ubuntu has been introducing). Also, as I said, it works just fine under Windows.

Raymond (superquad-vortex2) wrote :

http://git.kernel.org/?p=linux/kernel/git/tiwai/hda-emu.git;a=blob;f=codecs/stac9227-intel-d946gzis-mobo;hb=HEAD

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

/sys/class/sound/hwC0D2/init_pin_configs:
0x0a 0x0221401f
0x0b 0x02a19040
0x0c 0x400000fd
0x0d 0x01114010
0x0e 0x01119011
0x0f 0x01113012
0x10 0x400000fc
0x11 0x400000fb
0x12 0x400000fa
0x21 0x400000f9
0x22 0x400000ff

/sys/class/sound/hwC0D2/driver_pin_configs:

/sys/class/sound/hwC0D2/user_pin_configs:

/sys/class/sound/hwC0D2/init_verbs:

this mean that this motherboard need pin fixup of 3stack model

http://www.intel.com/support/motherboards/desktop/sb/cs-015851.htm

How to identify your front panel audio solution codec
To identify your front panel audio solution’s audio codec, refer to the specifications or documentation for your PC chassis or front panel module. Note that AC’97 and Intel® HD Audio front panel solutions are different and may
not be directly compatible or interchangeable.

You can also physically check the audio cable of the front panel audio solution. If there is a cable connected to Pin 4, you have an Intel® HD Audio module; if there is no cable to Pin 4, you have an AC97 module.

Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x02 0x03*

00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
 Subsystem: Intel Corporation Device [8086:a201]

static const struct snd_pci_quirk stac922x_cfg_tbl[] = {

 SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x0707,
        "Intel D945P", STAC_D945GTP5),
+ /* Intel D946G based system */
+ SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0xa201,
        "Intel D946GZIS", STAC_D945GTP3),
 /* other intel */
 SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x0204,
        "Intel D945", STAC_D945_REF),

Renato Silva (renatosilva) wrote :

Still confusing, but my front panel is AC97.

Raymond (superquad-vortex2) wrote :

refer to Intel Desktop Board D946GZIS Technical Product Specification

1.7 Audio Subsystem Product Description
The onboard audio subsystem consists of the following:
 • Intel 82801GB ICH7 • Analog Devices ADI1988A (or Sigmatel STAC9227) audio codec
 • Back panel audio connectors
 • Component-side audio headers
The audio subsystem supports the following features:
 • Advanced jack sense for the back panel audio jacks that enables the audio codec to recognize the device that is connected to an audio port. Within hardware constraints, the back panel audio jacks are capable of retasking according to the user’s definition, or can be automatically switched depending on the recognized device type.
  • Stereo input and output for all back panel jacks
 • Line out and Mic in functions for front panel audio jacks

if pin cap support impsense, this mean the driver may retask the rear mic jack automatically by measure the impedance since mic has higher impedance

Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense

refer to 9227 datasheet

3.2. 3.3. Impedance Sense
Impedance Sense is accomplished by on-chip circuitry that measures the impedance at the pin of the chip and compares it to internal reference impedance.
Below is a table that contains the bin information and codes returned when the pin widget impedance field in the Port Pin Sense widget is read.
Please note that even under the best conditions, there is no method to guarantee 100% impedance sensing due to variations in external circuitry and impedance overlap of devices that can be plugged into a jack.
The impedance sense table reflects both standard Line Out and Headphone output drivers.
Please reference the HD Audio Universal Jack Application Note on the SigmaTel Extranet for more information.

Table 1: Impedance Sense

Passive Speakers, Headset Speakers Impedance
Some Headset Speakers
Some Microphones
Microphones
Microphones
Amplified Speakers
Amplified Speakers,
Line In Amplified Speakers, Line In

Renato Silva (renatosilva) wrote :

Can you translate that into human communication?

Renato Silva (renatosilva) wrote :

2012/11/13 Raymond <email address hidden>

> add the following line to /etc/modprobe.d/alsa-base.conf
>
> options snd-hda-intel model=3stack
>

Cool, thanks!

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

Other bug subscribers