Skip to contentSkip to conversation

2.6.29 regression: left audio channel broken after resume from suspend with Intel HDA

DISCUSSION Tino Keitel 6 participants 28 messages Apr 20, 2009 – May 8, 2009 Sound

lore
Share & tools
lore
#0 lore raw

Hi,

since 2.6.29 and also with 2.6.29.1 the left audio channel of the digital output of my Mac mini Core 2 Duo is noisy. This didn't happen with 2.6.28. Unloading snd-hda-intel and reloading it does fix the noisy sound.

This happened with some older versions of the Linux kernel (with an older Mac mini Core Duo, I don't remeber which kernel version), but got fixed at some point. Now it happens again with 2.6.29.

Here is the dmesg output for the sound hardware:

HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64
hda_codec: STAC922x, Apple subsys_id=100
input: HDA Intel Line In at Ext Left Jack as /class/input/input18
input: HDA Intel Mic at Ext Left Jack as /class/input/input19
input: HDA Intel HP Out at Ext Left Jack as /class/input/input20

Any hints what I could try to fix this, maybe some commit that I should try to revert?

Regards,
Tino

#1 lore raw
Quoted 20 lines · Tino Keitel

Hi,

since 2.6.29 and also with 2.6.29.1 the left audio channel of the digital output of my Mac mini Core 2 Duo is noisy. This didn't happen with 2.6.28. Unloading snd-hda-intel and reloading it does fix the noisy sound.

This happened with some older versions of the Linux kernel (with an older Mac mini Core Duo, I don't remeber which kernel version), but got fixed at some point. Now it happens again with 2.6.29.

Here is the dmesg output for the sound hardware:

HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64
hda_codec: STAC922x, Apple subsys_id=100
input: HDA Intel Line In at Ext Left Jack as /class/input/input18
input: HDA Intel Mic at Ext Left Jack as /class/input/input19
input: HDA Intel HP Out at Ext Left Jack as /class/input/input20

Quoted 2 lines

Any hints what I could try to fix this, maybe some commit that I should try to revert?

Well, no.

Still, you might try the current Linus' tree.

Best,
Rafael

#2 lore raw
In reply to Tino Keitel

At Mon, 20 Apr 2009 20:40:24 +0200,

Quoted 11 lines · Tino Keitel

Hi,

since 2.6.29 and also with 2.6.29.1 the left audio channel of the digital output of my Mac mini Core 2 Duo is noisy. This didn't happen with 2.6.28. Unloading snd-hda-intel and reloading it does fix the noisy sound.

This happened with some older versions of the Linux kernel (with an older Mac mini Core Duo, I don't remeber which kernel version), but got fixed at some point. Now it happens again with 2.6.29.

Could you try the latest Linus git tree? A fix patch was merged after 2.6.30-rc2. The patch will be merged to later stable kernel, too.

Takashi

#3 lore raw

On Mon, Apr 20, 2009 at 21:41:06 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

Could you try the latest Linus git tree? A fix patch was merged after 2.6.30-rc2. The patch will be merged to later stable kernel, too.

What commit is this? Can it be applied to 2.6.29? As it isn't perfectly reproducable, I'd like to run 2.6.29 with the patch applied and see if the problem disappears.

Regards,
Tino

#4 lore raw

At Mon, 20 Apr 2009 21:46:59 +0200,

Quoted 11 lines · Tino Keitel

On Mon, Apr 20, 2009 at 21:41:06 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

Could you try the latest Linus git tree? A fix patch was merged after 2.6.30-rc2. The patch will be merged to later stable kernel, too.

What commit is this? Can it be applied to 2.6.29? As it isn't perfectly reproducable, I'd like to run 2.6.29 with the patch applied and see if the problem disappears.

The commit is fcad94a4c71c36a05f4d5c6dcb174534b4e0b136:
ALSA: hda - Fix the cmd cache keys for amp verbs

Takashi

#5 lore raw
Quoted 2 lines · Takashi Iwai

The commit is fcad94a4c71c36a05f4d5c6dcb174534b4e0b136:
ALSA: hda - Fix the cmd cache keys for amp verbs

Thanks for the reply. However, the patch doesn't work. I just got distorted sound again.

Regards,
Tino

#6 lore raw

At Tue, 21 Apr 2009 09:32:19 +0200,

Quoted 7 lines · Tino Keitel
Quoted 2 lines · Takashi Iwai

The commit is fcad94a4c71c36a05f4d5c6dcb174534b4e0b136:
ALSA: hda - Fix the cmd cache keys for amp verbs

Thanks for the reply. However, the patch doesn't work. I just got distorted sound again.

Then please run alsa-info.sh (with --no-upload option) before and after suspend, and attach the generated files. Also, check the latest Linus tree whether the problem still appears.

thanks,

Takashi

#7 lore raw
Quoted 7 lines · Takashi Iwai

At Tue, 21 Apr 2009 09:32:19 +0200,

Quoted 5 lines · Tino Keitel
Quoted 2 lines · Takashi Iwai

The commit is fcad94a4c71c36a05f4d5c6dcb174534b4e0b136:
ALSA: hda - Fix the cmd cache keys for amp verbs

Quoted 6 lines
Quoted 2 lines

Thanks for the reply. However, the patch doesn't work. I just got distorted sound again.

Then please run alsa-info.sh (with --no-upload option) before and after suspend, and attach the generated files. Also, check the latest Linus tree whether the problem still appears.

My first impression with suspend seems to be wrong. It also sometimes happens just after a while, event without suspend.

Attached are 2 alsa-info.sh outputs. One was taken after I noticed the distorted sound, one after I reloaded snd-hda-intel to fix the distortion. The mixer seems to be quite different after module reload.

Regards,
Tino

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.52
!!################################

!!Script ran on: Tue Apr 21 20:23:11 CEST 2009

!!Linux Distribution
!!------------------

Debian GNU/Linux squeeze/sid \n \l

!!Kernel Information
!!------------------

Kernel release:    2.6.29.1
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.18a
Library version:    1.0.19
Utilities version:  1.0.19

!!Loaded ALSA modules
!!-------------------

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0x90440000 irq 22

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:27d8 (rev 02)

	Subsystem: 8384:7680

!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2

!!Loaded sound module options
!!--------------------------

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b0800
Revision Id: 0x103601
No Modem Function Group found
Default PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1 Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x64 0x64]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x17

Processing caps: benign=0, ncoeff=0
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x18

Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=5, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3

Delay: 4 samples
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
  Connection: 1
     0x11

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

     0x02

Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000ff: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xf
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x04

Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White DefAssociation = 0x1, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x03

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xd
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x02

Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00000024: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xe
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00000037: IN OUT Detect Trigger ImpSense Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x60: IN OUT
Unsolicited: tag=02, enabled=1
Connection: 1

     0x05

Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x1145e030: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x40: OUT
Connection: 3

     0x08* 0x17 0x19

Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x00010024: IN EAPD Detect
EAPD 0x0:
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Delay: 3 samples
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0 Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xc
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=127
Connection: 4

     0x02 0x03 0x04 0x05

Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1

     0x12

Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1

     0x13

Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Delay: 3 samples
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
Delay: 3 samples
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xb
Pin-ctls: 0x00:
Connection: 1

     0x1a

--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 0 Apr 21 08:45 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 24 Apr 21 09:53 /dev/snd/pcmC0D0c crw-rw---- 1 root audio 116, 16 Apr 21 20:22 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 25 Apr 21 08:45 /dev/snd/pcmC0D1c crw-rw---- 1 root audio 116, 17 Apr 21 09:51 /dev/snd/pcmC0D1p crw-rw---- 1 root audio 116, 33 Apr 21 08:45 /dev/snd/timer

!!ALSA configuration files
!!------------------------

!!User specific config file (~/.asoundrc)

    pcm.!default {
        type pulse
    }

    ctl.!default {
        type pulse
    }

!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

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

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 22'
Mixer name : 'SigmaTel STAC9221 A1'
Components : 'HDA:83847680,106b0800,00103601'
Controls : 20
Simple ctrls : 12
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 100 [79%] [-20.25dB] [on] Front Right: Playback 100 [79%] [-20.25dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 2
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',1
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off]

!!Alsactl output
!!-------------

--startcollapse--

state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.2 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		index 1
		value Line
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		value.0 0
		value.1 0
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 false
		value.1 false
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 false
		value.1 false
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 127
		value.1 127
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 false
		value.1 false
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 100
		value.1 100
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 2'
		comment.dbmin 0
		comment.dbmax 2000
		iface MIXER
		name 'Mux Capture Volume'
		value.0 0
		value.1 0
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 4'
		comment.dbmin 0
		comment.dbmax 4000
		iface MIXER
		name 'Mux Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.13 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.14 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.15 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 127
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.20 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
dvb_usb_vp7045
i915
fb
drm
i2c_algo_bit
cfbcopyarea
cfbimgblt
cfbfillrect
ipv6
loop
dvb_usb
dvb_core
firewire_sbp2
snd_hda_codec_idt
snd_hda_intel
snd_hda_codec
snd_pcm_oss
snd_mixer_oss
firewire_ohci
snd_pcm
firewire_core
snd_timer
snd_page_alloc
crc_itu_t
sky2
usblp

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.52
!!################################

!!Script ran on: Tue Apr 21 20:27:34 CEST 2009

!!Linux Distribution
!!------------------

Debian GNU/Linux squeeze/sid \n \l

!!Kernel Information
!!------------------

Kernel release:    2.6.29.1
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.18a
Library version:    1.0.19
Utilities version:  1.0.19

!!Loaded ALSA modules
!!-------------------

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0x90440000 irq 22

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:27d8 (rev 02)

	Subsystem: 8384:7680

!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2

!!Loaded sound module options
!!--------------------------

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x100
Revision Id: 0x103601
No Modem Function Group found
Default PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1 Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x17

Processing caps: benign=0, ncoeff=0
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x18

Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=5, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3

Delay: 4 samples
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
  Connection: 1
     0x11

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

     0x02

Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x03a1e02e: [Jack] Mic at Ext Left
Conn = 1/8, Color = White DefAssociation = 0x2, Sequence = 0xe
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=02, enabled=1
Connection: 1

     0x04

Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White DefAssociation = 0x1, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x03

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x9017e11f: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White DefAssociation = 0x1, Sequence = 0xf
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x02

Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00000024: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xe
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00000037: IN OUT Detect Trigger ImpSense Pin Default 0x0381e020: [Jack] Line In at Ext Left
Conn = 1/8, Color = White
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x60: IN OUT
Unsolicited: tag=03, enabled=1
Connection: 1

     0x05

Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x1345e230: [Jack] SPDIF Out at Int Left
Conn = Optical, Color = White DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x40: OUT
Connection: 3

     0x08* 0x17 0x19

Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x00010024: IN EAPD Detect
EAPD 0x0:
Pin Default 0x13c5e240: [Jack] SPDIF In at Int Left
Conn = Optical, Color = White
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Delay: 3 samples
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0 Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xc
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=127
Connection: 4

     0x02 0x03 0x04 0x05

Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1

     0x12

Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1

     0x13

Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Delay: 3 samples
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
Delay: 3 samples
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xb
Pin-ctls: 0x00:
Connection: 1

     0x1a

--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 0 Apr 21 20:25 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 24 Apr 21 20:25 /dev/snd/pcmC0D0c crw-rw---- 1 root audio 116, 16 Apr 21 20:26 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 25 Apr 21 20:25 /dev/snd/pcmC0D1c crw-rw---- 1 root audio 116, 17 Apr 21 20:25 /dev/snd/pcmC0D1p crw-rw---- 1 root audio 116, 33 Apr 21 08:45 /dev/snd/timer

!!ALSA configuration files
!!------------------------

!!User specific config file (~/.asoundrc)

    pcm.!default {
        type pulse
    }

    ctl.!default {
        type pulse
    }

!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

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

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 22'
Mixer name : 'SigmaTel STAC9221 A1'
Components : 'HDA:83847680,00000100,00103601'
Controls : 20
Simple ctrls : 12
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Line'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Line'
Item0: 'Line'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 2
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',1
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]

!!Alsactl output
!!-------------

--startcollapse--

state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 Line
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.2 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 Line
		iface MIXER
		name 'Input Source'
		index 1
		value Line
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		value.0 0
		value.1 0
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 false
		value.1 false
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 false
		value.1 false
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Front Playback Volume'
		value.0 127
		value.1 127
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 false
		value.1 false
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Surround Playback Volume'
		value.0 127
		value.1 127
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Surround Playback Switch'
		value.0 false
		value.1 false
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 2'
		comment.dbmin 0
		comment.dbmax 2000
		iface MIXER
		name 'Mux Capture Volume'
		value.0 0
		value.1 0
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 4'
		comment.dbmin 0
		comment.dbmax 4000
		iface MIXER
		name 'Mux Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.13 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.14 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.15 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 127
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.20 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
snd_hda_intel
dvb_usb_vp7045
i915
fb
drm
i2c_algo_bit
cfbcopyarea
cfbimgblt
cfbfillrect
ipv6
loop
dvb_usb
dvb_core
firewire_sbp2
snd_hda_codec_idt
snd_hda_codec
snd_pcm_oss
snd_mixer_oss
firewire_ohci
snd_pcm
firewire_core
snd_timer
snd_page_alloc
crc_itu_t
sky2
usblp

#8 lore raw

At Tue, 21 Apr 2009 20:39:36 +0200,

Quoted 16 lines · Tino Keitel
Quoted 7 lines · Takashi Iwai

At Tue, 21 Apr 2009 09:32:19 +0200,

Quoted 5 lines · Tino Keitel
Quoted 2 lines · Takashi Iwai

The commit is fcad94a4c71c36a05f4d5c6dcb174534b4e0b136:
ALSA: hda - Fix the cmd cache keys for amp verbs

Quoted 6 lines
Quoted 2 lines

Thanks for the reply. However, the patch doesn't work. I just got distorted sound again.

Then please run alsa-info.sh (with --no-upload option) before and after suspend, and attach the generated files. Also, check the latest Linus tree whether the problem still appears.

Quoted 6 lines

My first impression with suspend seems to be wrong. It also sometimes happens just after a while, event without suspend.

Attached are 2 alsa-info.sh outputs. One was taken after I noticed the distorted sound, one after I reloaded snd-hda-intel to fix the distortion. The mixer seems to be quite different after module reload.

The codec communication looks a bit unstable on this device... Does this still happen on the latest 2.6.30 version?

Takashi

#9 lore raw

On Fri, Apr 24, 2009 at 16:01:40 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

The codec communication looks a bit unstable on this device... Does this still happen on the latest 2.6.30 version?

Yes, at least with 2.6.30-rc3. I reloaded snd-hda-intel a few times, and at some point /etc/init.d/alsa-utils start complained, I guess because some index numbers in the mixer changed. Attached is an example diff.

Regards,
Tino

tmp/alsa-info.txt2 renamed from tmp/alsa-info.txt1 +12 -12
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.52
 !!################################
 
-!!Script ran on: Fri Apr 24 16:18:00 CEST 2009
+!!Script ran on: Fri Apr 24 16:18:22 CEST 2009
 
 
 !!Linux Distribution
@@ -93,13 +93,13 @@
 Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
   Amp-Out caps: N/A
   Amp-Out vals:  [0xff 0xff]
-  Converter: stream=0, channel=0
+  Converter: stream=5, channel=0
   Power: setting=D0, actual=D0
   Delay: 13 samples
 Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
   Amp-Out caps: N/A
   Amp-Out vals:  [0xff 0xff]
-  Converter: stream=0, channel=0
+  Converter: stream=5, channel=0
   Power: setting=D0, actual=D0
   Delay: 13 samples
 Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
@@ -115,7 +115,7 @@
   Power: setting=D0, actual=D0
   Delay: 13 samples
 Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
-  Converter: stream=0, channel=0
+  Converter: stream=1, channel=0
   SDI-Select: 0
   Power: setting=D0, actual=D0
   Delay: 13 samples
@@ -131,7 +131,7 @@
      0x18
   Processing caps: benign=0, ncoeff=0
 Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
-  Converter: stream=0, channel=0
+  Converter: stream=5, channel=0
   Digital: Enabled
   Digital category: 0x0
   PCM:
@@ -281,11 +281,11 @@
 !!ALSA Device nodes
 !!-----------------
 
-crw-rw---- 1 root audio 116,  0 Apr 24 16:16 /dev/snd/controlC0
-crw-rw---- 1 root audio 116, 24 Apr 24 16:16 /dev/snd/pcmC0D0c
-crw-rw---- 1 root audio 116, 16 Apr 24 16:16 /dev/snd/pcmC0D0p
-crw-rw---- 1 root audio 116, 25 Apr 24 16:16 /dev/snd/pcmC0D1c
-crw-rw---- 1 root audio 116, 17 Apr 24 16:16 /dev/snd/pcmC0D1p
+crw-rw---- 1 root audio 116,  0 Apr 24 16:18 /dev/snd/controlC0
+crw-rw---- 1 root audio 116, 24 Apr 24 16:18 /dev/snd/pcmC0D0c
+crw-rw---- 1 root audio 116, 16 Apr 24 16:18 /dev/snd/pcmC0D0p
+crw-rw---- 1 root audio 116, 25 Apr 24 16:18 /dev/snd/pcmC0D1c
+crw-rw---- 1 root audio 116, 17 Apr 24 16:18 /dev/snd/pcmC0D1p
 crw-rw---- 1 root audio 116, 33 Apr 22 12:36 /dev/snd/timer
 
 
@@ -296,7 +296,7 @@
 
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
-  Subdevices: 1/1
+  Subdevices: 0/1
   Subdevice #0: subdevice #0
 card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
   Subdevices: 1/1
@@ -306,7 +306,7 @@
 
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
-  Subdevices: 2/2
+  Subdevices: 1/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
 card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
#10 lore raw

At Fri, 24 Apr 2009 16:21:13 +0200,

Quoted 11 lines · Tino Keitel

On Fri, Apr 24, 2009 at 16:01:40 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

The codec communication looks a bit unstable on this device... Does this still happen on the latest 2.6.30 version?

Yes, at least with 2.6.30-rc3. I reloaded snd-hda-intel a few times, and at some point /etc/init.d/alsa-utils start complained, I guess because some index numbers in the mixer changed.

And this happens because the codec doesn't respond properly any more. So, something triggers to screw up the communication with the codec. I have no idea right now. Possibly you can bisect the changes against sound/pci/hda/patch_sigmatel.c...

Quoted 1 line

Attached is an example diff.

This diff looks OK. The difference is just the current PCM stream you are playing. Others are identical.

thanks,

Takashi

#11 lore raw
Quoted 10 lines · Takashi Iwai

At Fri, 24 Apr 2009 16:21:13 +0200,

Quoted 8 lines · Tino Keitel

On Fri, Apr 24, 2009 at 16:01:40 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

The codec communication looks a bit unstable on this device... Does this still happen on the latest 2.6.30 version?

Quoted 8 lines
Quoted 3 lines

Yes, at least with 2.6.30-rc3. I reloaded snd-hda-intel a few times, and at some point /etc/init.d/alsa-utils start complained, I guess because some index numbers in the mixer changed.

And this happens because the codec doesn't respond properly any more. So, something triggers to screw up the communication with the codec. I have no idea right now. Possibly you can bisect the changes against sound/pci/hda/patch_sigmatel.c...

The problem is that I don't have a reliable way to trigger this bug. It just happens sometimes.

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

So it seems that all newer kernels are pretty broken on this hardware regarding sound.

Regards,
Tino

#12 lore raw

At Tue, 28 Apr 2009 02:23:09 +0200,

Quoted 16 lines · Tino Keitel
Quoted 14 lines · Takashi Iwai

At Fri, 24 Apr 2009 16:21:13 +0200,

Quoted 11 lines · Tino Keitel

On Fri, Apr 24, 2009 at 16:01:40 +0200, Takashi Iwai wrote:

[...]

Quoted 2 lines

The codec communication looks a bit unstable on this device... Does this still happen on the latest 2.6.30 version?

Yes, at least with 2.6.30-rc3. I reloaded snd-hda-intel a few times, and at some point /etc/init.d/alsa-utils start complained, I guess because some index numbers in the mixer changed.

Quoted 7 lines
Quoted 4 lines

And this happens because the codec doesn't respond properly any more. So, something triggers to screw up the communication with the codec. I have no idea right now. Possibly you can bisect the changes against sound/pci/hda/patch_sigmatel.c...

The problem is that I don't have a reliable way to trigger this bug. It just happens sometimes.

That's what I'm afraid of.

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

This could be rather a mixer setup issue.
Please give alsa-info for the same setting on both kernels.

Takashi

#13 lore raw

On Tue, Apr 28, 2009 at 07:24:33 +0200, Takashi Iwai wrote:

[...]

Quoted 1 line

This could be rather a mixer setup issue.

Of cause I already spent quite some time trying to get a usable line in signal level. With 2.6.27, I just set "Capture" as the record source and adjust its gain, where the gain level is already sufficent at 10-20. With 2.6.29, I raised it to 100 but didn't get a usable line in level.

Quoted 1 line

Please give alsa-info for the same setting on both kernels.

Attached.

Regards,
Tino

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.52
!!################################

!!Script ran on: Tue Apr 28 08:16:55 CEST 2009

!!Linux Distribution
!!------------------

Debian GNU/Linux squeeze/sid \n \l

!!Kernel Information
!!------------------

Kernel release:    2.6.27.20
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.17
Library version:    1.0.19
Utilities version:  1.0.19

!!Loaded ALSA modules
!!-------------------

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0x90440000 irq 22

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:27d8 (rev 02)

	Subsystem: 8384:7680

!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2

!!Loaded sound module options
!!--------------------------

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b0800
Revision Id: 0x103601
No Modem Function Group found
Default PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1 Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1 IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x64 0x64]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x64 0x64]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=1, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x17

Processing caps: benign=0, ncoeff=0
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x18

Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3

Delay: 4 samples
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
  Connection: 1
     0x11

Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x0121e21f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = White
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=30, enabled=1
Connection: 1

     0x02

Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000ff: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xf
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x04

Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White DefAssociation = 0x1, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x03

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xd
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x02

Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00000024: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xe
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00000037: IN OUT Detect Trigger ImpSense Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1

     0x05

Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x1145e030: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x40: OUT
Connection: 3

     0x08* 0x17 0x19

Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x00010024: IN EAPD Detect
EAPD 0x0:
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Delay: 3 samples
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0 Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xc
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=127
Connection: 4

     0x02* 0x03 0x04 0x05

Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x03 0x03]
Connection: 1

     0x12

Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1

     0x13

Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Delay: 3 samples
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
Delay: 3 samples
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xb
Pin-ctls: 0x00:
Connection: 1

     0x1a

--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 0 Apr 28 02:14 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 24 Apr 28 08:08 /dev/snd/pcmC0D0c crw-rw---- 1 root audio 116, 16 Apr 28 02:15 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 25 Apr 28 02:14 /dev/snd/pcmC0D1c crw-rw---- 1 root audio 116, 17 Apr 28 02:14 /dev/snd/pcmC0D1p crw-rw---- 1 root audio 116, 33 Apr 28 02:14 /dev/snd/timer

!!ALSA configuration files
!!------------------------

!!User specific config file (~/.asoundrc)

    pcm.!default {
        type pulse
    }

    ctl.!default {
        type pulse
    }

!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

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

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 22'
Mixer name : 'SigmaTel STAC9221 A1'
Components : 'HDA:83847680'
Controls : 25
Simple ctrls : 14
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 100 [79%] [-20.25dB] [on] Front Right: Playback 100 [79%] [-20.25dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 100 [79%] [-20.25dB] [on] Front Right: Playback 100 [79%] [-20.25dB] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'Line In as Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 3 [21%] [4.50dB] [on]
Front Right: Capture 3 [21%] [4.50dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 2
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',1
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 0 [0%] [0.00dB]
Front Right: Capture 0 [0%] [0.00dB]

!!Alsactl output
!!-------------

--startcollapse--

state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.2 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		index 1
		value Line
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		value.0 3
		value.1 3
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 2'
		comment.dbmin 0
		comment.dbmax 2000
		iface MIXER
		name 'Mux Capture Volume'
		value.0 0
		value.1 0
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.7 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 false
		value.1 false
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 4'
		comment.dbmin 0
		comment.dbmax 4000
		iface MIXER
		name 'Mux Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Front Playback Volume'
		value.0 100
		value.1 100
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Surround Playback Volume'
		value.0 127
		value.1 127
	}
	control.12 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Surround Playback Switch'
		value.0 false
		value.1 false
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Line In as Output Switch'
		value false
	}
	control.14 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 100
		value.1 100
	}
	control.15 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
	}
	control.16 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.17 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.18 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
	}
	control.20 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
	}
	control.21 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Switch'
		value false
	}
	control.22 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.23 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 127
	}
	control.24 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.25 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
i915
drm
ipv6
loop
firewire_sbp2
snd_hda_intel
firewire_ohci
snd_pcm_oss
snd_mixer_oss
firewire_core
snd_pcm
snd_timer
snd_page_alloc
usblp
crc_itu_t
sky2

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.52
!!################################

!!Script ran on: Tue Apr 28 08:27:24 CEST 2009

!!Linux Distribution
!!------------------

Debian GNU/Linux squeeze/sid \n \l

!!Kernel Information
!!------------------

Kernel release:    2.6.29.1
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.18a
Library version:    1.0.19
Utilities version:  1.0.19

!!Loaded ALSA modules
!!-------------------

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0x90440000 irq 22

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:27d8 (rev 02)

	Subsystem: 8384:7680

!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2

!!Loaded sound module options
!!--------------------------

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b0800
Revision Id: 0x103601
No Modem Function Group found
Default PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1 Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x64 0x64]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x17

Processing caps: benign=0, ncoeff=0
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1

     0x18

Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3

Delay: 4 samples
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
  Connection: 1
     0x11

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

     0x02

Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000ff: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xf
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x04

Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00001737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White DefAssociation = 0x1, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x03

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xd
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1

     0x02

Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00000024: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0xe
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x00000037: IN OUT Detect Trigger ImpSense Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x60: IN OUT
Unsolicited: tag=02, enabled=1
Connection: 1

     0x05

Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x1145e030: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x40: OUT
Connection: 3

     0x08* 0x17 0x19

Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x00010024: IN EAPD Detect
EAPD 0x0:
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Delay: 3 samples
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x02 0x02]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0 Amp-Out vals: [0x04 0x04]
Connection: 7

     0x0e 0x15 0x0f* 0x0b 0x0c 0x0d 0x0a

Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0 Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xc
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=127
Connection: 4

     0x02 0x03 0x04 0x05

Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x0e 0x0e]
Connection: 1

     0x12

Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
Amp-In caps: N/A
Amp-In vals: [0x8e 0x8e]
Connection: 1

     0x13

Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Delay: 3 samples
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
Delay: 3 samples
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0xb
Pin-ctls: 0x00:
Connection: 1

     0x1a

--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 0 Apr 28 08:18 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 24 Apr 28 08:26 /dev/snd/pcmC0D0c crw-rw---- 1 root audio 116, 16 Apr 28 08:26 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 25 Apr 28 08:18 /dev/snd/pcmC0D1c crw-rw---- 1 root audio 116, 17 Apr 28 08:18 /dev/snd/pcmC0D1p crw-rw---- 1 root audio 116, 33 Apr 28 08:18 /dev/snd/timer

!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

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

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 22'
Mixer name : 'SigmaTel STAC9221 A1'
Components : 'HDA:83847680,106b0800,00103601'
Controls : 21
Simple ctrls : 13
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 100 [79%] [-20.25dB] [on] Front Right: Playback 100 [79%] [-20.25dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 14 [100%] [21.00dB] [on] Front Right: Capture 14 [100%] [21.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 14 [100%] [21.00dB] [off] Front Right: Capture 14 [100%] [21.00dB] [off]
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 0 [0%] [-30.00dB]
Front Right: Capture 0 [0%] [-30.00dB]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Line'
Item0: 'Line'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 2
Front Left: Capture 2 [100%] [20.00dB]
Front Right: Capture 2 [100%] [20.00dB]
Simple mixer control 'Mux',1
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 4 [100%] [40.00dB]
Front Right: Capture 4 [100%] [40.00dB]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [off] Front Right: Playback 127 [100%] [0.00dB] [off]

!!Alsactl output
!!-------------

--startcollapse--

state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.2 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		iface MIXER
		name 'Input Source'
		index 1
		value Line
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		value.0 14
		value.1 14
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 14'
		comment.dbmin 0
		comment.dbmax 2100
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 14
		value.1 14
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 false
		value.1 false
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 127
		value.1 127
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 false
		value.1 false
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 100
		value.1 100
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 2'
		comment.dbmin 0
		comment.dbmax 2000
		iface MIXER
		name 'Mux Capture Volume'
		value.0 2
		value.1 2
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 4'
		comment.dbmin 0
		comment.dbmax 4000
		iface MIXER
		name 'Mux Capture Volume'
		index 1
		value.0 4
		value.1 4
	}
	control.13 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.14 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.15 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		comment.dbmin -9525
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 127
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.20 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
	}
	control.21 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 120'
		comment.tlv '0000000100000008fffff44800000032'
		comment.dbmin -3000
		comment.dbmax 3000
		iface MIXER
		name 'Digital Capture Volume'
		value.0 0
		value.1 0
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
i915
fb
drm
i2c_algo_bit
cfbcopyarea
cfbimgblt
cfbfillrect
ipv6
loop
dvb_usb_vp7045
dvb_usb
dvb_core
firewire_sbp2
snd_hda_codec_idt
snd_hda_intel
snd_hda_codec
snd_pcm_oss
snd_mixer_oss
firewire_ohci
snd_pcm
firewire_core
usblp
snd_timer
snd_page_alloc
crc_itu_t
sky2

#14 lore raw
In reply to Tino Keitel

On Tue, Apr 28, 2009 at 02:23:09 +0200, Tino Keitel wrote:

[...]

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

FYI: I just tried 2.6.28 and line-in was still broken. So the last working kernel is 2.6.27.

Regards,
Tino

#15 lore raw
Quoted 10 lines · Tino Keitel

On Tue, Apr 28, 2009 at 02:23:09 +0200, Tino Keitel wrote:

[...]

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

FYI: I just tried 2.6.28 and line-in was still broken. So the last working kernel is 2.6.27.

I tried this:

git bisect start v2.6.28 v2.6.27 sound/pci/hda/patch_sigmatel.c

The result is commit 4f1e6bc3646ab50b8181555ab7e6eeab68b8632a.

I can't use git revert because of conflicts, so I crafted the attached patch against 2.6.30-rc4-00288-g413f81e, and now line-in works.

Regards,
Tino

sound/pci/hda/patch_sigmatel.c +13 -15
index 917bc5d..8846a3b 100644
@@ -4070,21 +4070,19 @@ static int stac92xx_init(struct hda_codec *codec)
 		hda_nid_t nid = cfg->input_pins[i];
 		if (nid) {
 			unsigned int pinctl, conf;
-			if (i == AUTO_PIN_MIC || i == AUTO_PIN_FRONT_MIC) {
-				/* for mic pins, force to initialize */
-				pinctl = stac92xx_get_vref(codec, nid);
-				pinctl |= AC_PINCTL_IN_EN;
-				stac92xx_auto_set_pinctl(codec, nid, pinctl);
-			} else {
-				pinctl = snd_hda_codec_read(codec, nid, 0,
-					AC_VERB_GET_PIN_WIDGET_CONTROL, 0);
-				/* if PINCTL already set then skip */
-				if (!(pinctl & AC_PINCTL_IN_EN)) {
-					pinctl |= AC_PINCTL_IN_EN;
-					stac92xx_auto_set_pinctl(codec, nid,
-								 pinctl);
-				}
-			}
+			pinctl = snd_hda_codec_read(codec, nid,
+						    0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0);
+			/* if PINCTL already set then skip */
+			if (pinctl & AC_PINCAP_IN)
+				continue;
+			pinctl = AC_PINCTL_IN_EN;
+			if (i == AUTO_PIN_MIC || i == AUTO_PIN_FRONT_MIC)
+				pinctl |= stac92xx_get_vref(codec, nid);
+			stac92xx_auto_set_pinctl(codec, nid, pinctl);
+
+
+
+
 			conf = snd_hda_codec_get_pincfg(codec, nid);
 			if (get_defcfg_connect(conf) != AC_JACK_PORT_FIXED) {
 				enable_pin_detect(codec, nid,
#16 lore raw
Quoted 16 lines · Tino Keitel
Quoted 10 lines · Tino Keitel

On Tue, Apr 28, 2009 at 02:23:09 +0200, Tino Keitel wrote:

[...]

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

FYI: I just tried 2.6.28 and line-in was still broken. So the last working kernel is 2.6.27.

I tried this:

git bisect start v2.6.28 v2.6.27 sound/pci/hda/patch_sigmatel.c

Quoted 7 lines

The result is commit 4f1e6bc3646ab50b8181555ab7e6eeab68b8632a.

I can't use git revert because of conflicts, so I crafted the attached patch against 2.6.30-rc4-00288-g413f81e, and now line-in works.

Regards,
Tino

It's funny you mention left audio broken with hda(testing out the imac91.patch, works good, but as soon as I boot into osx the left audio speaker sounds blown out) nice... ehhh...

(probably nothing of the sort, but you never know)

Justin P. Mattock

#17 lore raw
In reply to Tino Keitel

At Thu, 7 May 2009 09:23:53 +0200,

Quoted 13 lines · Tino Keitel
Quoted 10 lines · Tino Keitel

On Tue, Apr 28, 2009 at 02:23:09 +0200, Tino Keitel wrote:

[...]

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

FYI: I just tried 2.6.28 and line-in was still broken. So the last working kernel is 2.6.27.

Quoted 8 lines

I tried this:

git bisect start v2.6.28 v2.6.27 sound/pci/hda/patch_sigmatel.c

The result is commit 4f1e6bc3646ab50b8181555ab7e6eeab68b8632a.

I can't use git revert because of conflicts, so I crafted the attached patch against 2.6.30-rc4-00288-g413f81e, and now line-in works.

Great, thanks for finding it out!

I'll take a deeper look later.

Takashi

#18 lore raw
In reply to Tino Keitel

At Thu, 7 May 2009 09:23:53 +0200,

Quoted 10 lines · Tino Keitel
Quoted 8 lines · Tino Keitel

On Tue, Apr 28, 2009 at 02:23:09 +0200, Tino Keitel wrote:

[...]

Quoted 3 lines

I just saw another, major problem: line in doesn't work anymore with 2.6.29 and also 2.6.30-rc3 (no usable input level). It works with 2.6.27.20.

Quoted 8 lines
Quoted 2 lines

FYI: I just tried 2.6.28 and line-in was still broken. So the last working kernel is 2.6.27.

I tried this:

git bisect start v2.6.28 v2.6.27 sound/pci/hda/patch_sigmatel.c

The result is commit 4f1e6bc3646ab50b8181555ab7e6eeab68b8632a.

Could you try the patch below instead?

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects the BIOS setup and skips to override.

So, it's a BIOS problem, as usual :)

thanks,

Takashi

---

sound/pci/hda/patch_sigmatel.c +3 -1
index 76487de..e58e008 100644
@@ -4084,7 +4084,9 @@ static int stac92xx_init(struct hda_codec *codec)
 				pinctl = snd_hda_codec_read(codec, nid, 0,
 					AC_VERB_GET_PIN_WIDGET_CONTROL, 0);
 				/* if PINCTL already set then skip */
-				if (!(pinctl & AC_PINCTL_IN_EN)) {
+				if (!(pinctl & AC_PINCTL_IN_EN) ||
+				    (pinctl & AC_PINCTL_OUT_EN)) {
+					pinctl &= ~AC_PINCTL_OUT_EN;
 					pinctl |= AC_PINCTL_IN_EN;
 					stac92xx_auto_set_pinctl(codec, nid,
 								 pinctl);
#19 lore raw

Hi.

Quoted 3 lines · Takashi Iwai

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects the BIOS setup and skips to override.

'scuse the ignorance, but this makes me ask: Are pins logically unrelated to jacks? I have a Dell M1530, and it has some jacks that can work as either inputs or outputs. Under M$, when I plug something in, a dialog box pops up asking me whether I connected a mic, line in or an output jack (I forget the details). Sounds like Tino's problem is what I'd expect from my BIOS. But I'm probably completely ignorant :)

Regards,

Nigel

#20 lore raw

At Thu, 07 May 2009 21:54:40 +1000,

Quoted 10 lines · Nigel Cunningham

Hi.

Quoted 3 lines · Takashi Iwai

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects the BIOS setup and skips to override.

'scuse the ignorance, but this makes me ask: Are pins logically unrelated to jacks?

Yes, they are.

Quoted 5 lines

I have a Dell M1530, and it has some jacks that can
work as either inputs or outputs. Under M$, when I plug something in, a dialog box pops up asking me whether I connected a mic, line in or an output jack (I forget the details). Sounds like Tino's problem is what I'd expect from my BIOS. But I'm probably completely ignorant :)

The problem there is that the BIOS sets the current pin direction for both input and output, but you can't play and record at the same time on a jack. It's not about the capability.

BIOS is supposed to set all the pins properly ready for use, but it's not so on Mac.

Takashi

#21 lore raw

Hi.

Quoted 21 lines · Takashi Iwai

At Thu, 07 May 2009 21:54:40 +1000,

Quoted 10 lines · Nigel Cunningham

Hi.

Quoted 3 lines · Takashi Iwai

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects the BIOS setup and skips to override.

'scuse the ignorance, but this makes me ask: Are pins logically unrelated to jacks?

Yes, they are.

Quoted 5 lines

I have a Dell M1530, and it has some jacks that can
work as either inputs or outputs. Under M$, when I plug something in, a dialog box pops up asking me whether I connected a mic, line in or an output jack (I forget the details). Sounds like Tino's problem is what I'd expect from my BIOS. But I'm probably completely ignorant :)

Quoted 6 lines

The problem there is that the BIOS sets the current pin direction for both input and output, but you can't play and record at the same time on a jack. It's not about the capability.

BIOS is supposed to set all the pins properly ready for use, but it's not so on Mac.

Thanks! :)

Nigel

#22 lore raw
Quoted 33 lines · Nigel Cunningham

Hi.

Quoted 21 lines · Takashi Iwai

At Thu, 07 May 2009 21:54:40 +1000,

Quoted 10 lines · Nigel Cunningham

Hi.

Quoted 3 lines · Takashi Iwai

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects the BIOS setup and skips to override.

'scuse the ignorance, but this makes me ask: Are pins logically unrelated to jacks?

Yes, they are.

Quoted 5 lines

I have a Dell M1530, and it has some jacks that can
work as either inputs or outputs. Under M$, when I plug something in, a dialog box pops up asking me whether I connected a mic, line in or an output jack (I forget the details). Sounds like Tino's problem is what I'd expect from my BIOS. But I'm probably completely ignorant :)

Quoted 6 lines

The problem there is that the BIOS sets the current pin direction for both input and output, but you can't play and record at the same time on a jack. It's not about the capability.

BIOS is supposed to set all the pins properly ready for use, but it's not so on Mac.

Thanks! :)

Quoted 7 lines

Nigel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

One thing that they did(which is nice) is finally, if you mute or turn down the master volume, once rebooting you don't have that BONG or introduction noise.

Justin P. Mattock

#23 lore raw
In reply to Takashi Iwai

On Thu, May 07, 2009 at 12:45:08 +0200, Takashi Iwai wrote:

[...]

Quoted 1 line

Could you try the patch below instead?

Thanks, I'll try the patch ASAP.

Quoted 2 lines

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects

In theory, the hardware jack can be used for input _and_ output. I don't know if this is connected to the issue, though.

Regards,
Tino

#24 lore raw

At Thu, 7 May 2009 14:59:33 +0200,

Quoted 7 lines · Tino Keitel
Quoted 2 lines · Takashi Iwai

The problem is that BIOS on your machine sets this pin both for input and output. Since it's set as input, the driver respects

In theory, the hardware jack can be used for input _and_ output.

But not at the very same moment. So you have to choose either the input or the output to specify the current direction.

Takashi

#26 lore raw
Quoted 7 lines · Tino Keitel

On Thu, May 07, 2009 at 12:45:08 +0200, Takashi Iwai wrote:

[...]

Quoted 1 line

Could you try the patch below instead?

It doesn't work.

Sorry, my mixer setup was wrong. The patch works.

Regards,
Tino

#27 lore raw

At Thu, 7 May 2009 22:53:49 +0200,

Quoted 11 lines · Tino Keitel
Quoted 7 lines · Tino Keitel

On Thu, May 07, 2009 at 12:45:08 +0200, Takashi Iwai wrote:

[...]

Quoted 1 line

Could you try the patch below instead?

It doesn't work.

Sorry, my mixer setup was wrong. The patch works.

Thanks for testing. I merged the patch now to sound git tree.

Takashi