Skip to contentSkip to conversation

hda-intel channels hibernate bug

DISCUSSION Johannes Berg 3 participants 15 messages Apr 5, 2009 – Apr 15, 2009 Sound

lore
Share & tools
lore
#0 lore raw

Hi,

On my macbook 5,1 I need to use model=mbp3, as you may still remember. I also need to set channels to 6 to hear anything at all, probably due to the codec mismatch -- it's not really an mbp3 so that only works 80%, but I haven't gotten around to writing a better codec description.

However, when I hibernate with channels set to 6, I always need to reset the channels to 6 again after resume to hear anything -- it seems the channels control isn't reset to the hardware at resume time. I suppose this bugs affects any users of this codec, regardless of whether it is actually right or wrong.

johannes

PS: I wanted to file a bug on the alsa bugtracker but mantisbt decided I had not entered all fields correctly and didn't give me an option to edit, so I had to reenter, which frustrated me enough to give up on mantis.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

At Sun, 05 Apr 2009 10:55:30 +0200,

Quoted 8 lines · Johannes Berg

Hi,

On my macbook 5,1 I need to use model=mbp3, as you may still remember. I also need to set channels to 6 to hear anything at all, probably due to the codec mismatch -- it's not really an mbp3 so that only works 80%, but I haven't gotten around to writing a better codec description.

Quoted 5 lines

However, when I hibernate with channels set to 6, I always need to reset the channels to 6 again after resume to hear anything -- it seems the channels control isn't reset to the hardware at resume time. I suppose this bugs affects any users of this codec, regardless of whether it is actually right or wrong.

Could you run alsa-info.sh (with --no-upload option) before and after hibernate and attach the generated files to compare?

Quoted 7 lines

johannes

PS: I wanted to file a bug on the alsa bugtracker but mantisbt decided I had not entered all fields correctly and didn't give me an option to edit, so I had to reenter, which frustrated me enough to give up on mantis.

I rarely have time to check alsa BTS nowadays, so it'd be helpful to send bug reports rather to ML anyway :)

thanks,

Takashi

#2 lore raw

Hi,

Quoted 2 lines

Could you run alsa-info.sh (with --no-upload option) before and after hibernate and attach the generated files to compare?

Sure, here's the diff:

alsa-info.txt renamed from before.txt +2 -2
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.56
 !!################################
 
-!!Script ran on: Tue Apr 14 13:20:28 UTC 2009
+!!Script ran on: Tue Apr 14 13:24:41 UTC 2009
 
 
 !!Linux Distribution
@@ -207,7 +207,7 @@
      0x02 0x0b
 Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw

At Tue, 14 Apr 2009 15:27:19 +0200,

Quoted 7 lines · Johannes Berg

Hi,

Quoted 2 lines

Could you run alsa-info.sh (with --no-upload option) before and after hibernate and attach the generated files to compare?

Sure, here's the diff:

Thanks.

Quoted 12 lines
alsa-info.txt renamed from before.txt +1 -1
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.56
 !!################################
 
-!!Script ran on: Tue Apr 14 13:20:28 UTC 2009
+!!Script ran on: Tue Apr 14 13:24:41 UTC 2009
 
 
 !!Linux Distribution

alsa-info.txt line 213

Quoted 8 lines
alsa-info.txt renamed from before.txt +1 -1
@@ -207,7 +207,7 @@
      0x02 0x0b
 Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

Could you give the raw alsa-info.sh output?

Takashi

#4 lore raw
Quoted 10 lines · Takashi Iwai

alsa-info.txt line 213

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

alsa-info.txt renamed from before.txt +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Mind you -- mbp3 isn't really the correct thing for my machine, the microphone also seems to be bad when using it -- but I haven't gotten around to writing a proper description or trying to find it even.

johannes

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

!!Script ran on: Tue Apr 14 13:20:28 UTC 2009

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

Debian GNU/Linux squeeze/sid \n \l

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

Kernel release:    2.6.30-rc1-wl-dirty
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

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

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

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

snd_hda_intel

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes

ESound Daemon:
Installed - Yes (/usr/bin/esd)
Running - No

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

0 [NVidia ]: HDA-Intel - HDA NVidia

                      HDA NVidia at 0x93380000 irq 16

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

00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1)

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

00:08.0 0403: 10de:0ac0 (rev b1)

	Subsystem: 10de:cb79

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

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd_hda_intel: model=mbp3

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

!!Module: snd_hda_intel
bdl_pos_adj : 32,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1
model : mbp3,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0
power_save : 0
power_save_controller : Y
probe_mask : -1,-1,-1,-1,-1,-1,-1,-1
probe_only : N,N,N,N,N,N,N,N
single_cmd : N

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

Codec: Realtek ALC889A
Address: 0
Function Id: 0x1
Vendor Id: 0x10ec0885
Subsystem Id: 0x106b3f00
Revision Id: 0x100103
No Modem Function Group found
Default PCM:

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

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:

    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:

    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM

Node 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x2e 0x2e]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x24

Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x2e 0x2e]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23

Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x2e 0x2e]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x22

Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:

    rates [0x560]: 44100 48000 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x1f

Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x97 0x97] [0x00 0x00] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 10

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17

Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x2a 0x2a]
Connection: 2

     0x02 0x0b

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x25 0x25]
Connection: 2

     0x03 0x0b

Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2

     0x04 0x0b

Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2

     0x05 0x0b

Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x012b4050: [Jack] HP Out at Ext Rear
    Conn = Comb, Color = Green
    DefAssociation = 0x5, Sequence = 0x0
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x018b3020: [Jack] Line In at Ext Rear
    Conn = Comb, Color = Blue
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc4: OUT HP VREF_80
  Unsolicited: tag=04, enabled=1
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000003c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 5

     0x0c 0x0d 0x0e* 0x0f 0x26

Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000003c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 5

     0x0c 0x0d 0x0e 0x0f* 0x26

Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x90100140: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x90a00110: [Fixed] Mic at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x90100141: [Fixed] Speaker at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x1
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c 0x0d* 0x0e 0x0f 0x26

Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x014be060: [Jack] SPDIF Out at Ext Rear
Conn = Comb, Color = White
DefAssociation = 0x6, Sequence = 0x0
Pin-ctls: 0x40: OUT
Connection: 1

     0x06

Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x00000020: IN
Pin Default 0x01cbe030: [Jack] SPDIF In at Ext Rear
Conn = Comb, Color = White
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x20: IN
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=17
Processing Coefficient: 0x12
Coefficient Index: 0x01
Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
Volume-Knob: delta=0, steps=32, direct=0, val=63
Unsolicited: tag=00, enabled=0
Connection: 0
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b

Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b

Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11

     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x25 [Audio Output] wcaps 0x11: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2

     0x25 0x0b

--endcollapse--

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

crw-rw----+ 1 root audio 116, 0 Apr 14 09:45 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 4 Apr 14 09:45 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 24 Apr 14 12:45 /dev/snd/pcmC0D0c crw-rw----+ 1 root audio 116, 16 Apr 14 15:01 /dev/snd/pcmC0D0p crw-rw----+ 1 root audio 116, 25 Apr 14 09:46 /dev/snd/pcmC0D1c crw-rw----+ 1 root audio 116, 17 Apr 14 09:46 /dev/snd/pcmC0D1p crw-rw----+ 1 root audio 116, 26 Apr 14 09:45 /dev/snd/pcmC0D2c crw-rw----+ 1 root audio 116, 1 Apr 14 09:45 /dev/snd/seq crw-rw----+ 1 root audio 116, 33 Apr 14 09:45 /dev/snd/timer

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

APLAY

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

ARECORD

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

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

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

Card hw:0 'NVidia'/'HDA NVidia at 0x93380000 irq 16'
Mixer name : 'Realtek ALC889A'
Components : 'HDA:10ec0885,106b3f00,00100103'
Controls : 33
Simple ctrls : 20
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 42 [66%] [-22.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 - 64
Mono:
Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on]
Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Line Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'Line-Out',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 59 [92%] [-5.00dB]
Front Right: Playback 59 [92%] [-5.00dB]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono
Capture channels: Mono
Mono: Playback [off] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 46 [100%] [30.00dB] [on] Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 46 [100%] [30.00dB] [on] Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 46 [100%] [30.00dB] [on] Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 23 [74%] [0.00dB] [off] Front Right: Playback 23 [74%] [0.00dB] [off]
Simple mixer control 'Channel Mode',0
Capabilities: enum
Items: '2ch' '6ch'
Item0: '6ch'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 120 [100%] [30.00dB]
Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Front Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Mic'
Simple mixer control 'Speaker',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]

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

--startcollapse--

state.NVidia {
	control.1 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 64'
		comment.dbmin -6400
		comment.dbmax 0
		iface MIXER
		name 'Front Playback Volume'
		value.0 64
		value.1 64
	}
	control.2 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.3 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 64'
		comment.dbmin -6400
		comment.dbmax 0
		iface MIXER
		name 'Line-Out Playback Volume'
		value.0 59
		value.1 59
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Line Playback Volume'
		value.0 0
		value.1 0
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Line Playback Switch'
		value.0 true
		value.1 true
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 3'
		comment.dbmin 0
		comment.dbmax 3000
		iface MIXER
		name 'Line Boost'
		value.0 0
		value.1 0
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 3'
		comment.dbmin 0
		comment.dbmax 3000
		iface MIXER
		name 'Mic Boost'
		value.0 0
		value.1 0
	}
	control.11 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 '2ch'
		comment.item.1 '6ch'
		iface MIXER
		name 'Channel Mode'
		value '6ch'
	}
	control.12 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 true
		value.1 true
	}
	control.14 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 2
		value.0 true
		value.1 true
	}
	control.15 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 46'
		comment.dbmin -1600
		comment.dbmax 3000
		iface MIXER
		name 'Capture Volume'
		value.0 46
		value.1 46
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 46'
		comment.dbmin -1600
		comment.dbmax 3000
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 46
		value.1 46
	}
	control.17 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 46'
		comment.dbmin -1600
		comment.dbmax 3000
		iface MIXER
		name 'Capture Volume'
		index 2
		value.0 46
		value.1 46
	}
	control.18 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 'Front Mic'
		comment.item.2 Line
		comment.item.3 CD
		iface MIXER
		name 'Input Source'
		value 'Front Mic'
	}
	control.19 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 'Front Mic'
		comment.item.2 Line
		comment.item.3 CD
		iface MIXER
		name 'Input Source'
		index 1
		value Mic
	}
	control.20 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 'Front Mic'
		comment.item.2 Line
		comment.item.3 CD
		iface MIXER
		name 'Input Source'
		index 2
		value Mic
	}
	control.21 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.22 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.23 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.24 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Default PCM Playback Switch'
		value false
	}
	control.26 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Switch'
		value false
	}
	control.27 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.28 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Beep Playback Volume'
		value.0 23
		value.1 23
	}
	control.29 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Beep Playback Switch'
		value.0 false
		value.1 false
	}
	control.30 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 64'
		comment.dbmin -6400
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 42
	}
	control.31 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.32 {
		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.33 {
		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 120
		value.1 120
	}
}

--endcollapse--

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

Module
sha256_generic
binfmt_misc
af_packet
rfcomm
l2cap
kvm_intel
kvm
acpi_cpufreq
cpufreq_userspace
cpufreq_powersave
fuse
loop
snd_hda_codec_realtek
arc4
hid_apple
b43
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_pcm_oss
snd_mixer_oss
rfkill
snd_pcm
zd1211rw
mac80211
joydev
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_timer
snd_seq_device
applesmc
hwmon
snd
input_polldev
cfg80211
uvcvideo
soundcore
ssb
snd_page_alloc
videodev
v4l1_compat
v4l2_compat_ioctl32
bcm5974
usbhid
evdev
btusb
bluetooth
ohci_hcd
sg
sd_mod
sr_mod
cdrom
mbp_nvidia_bl
backlight
ehci_hcd
usbcore
unix

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

/sys/class/sound/hwC0D0/init_pin_configs:
0x14 0x012b4050
0x15 0x018b3020
0x16 0x400000f0
0x17 0x400000f0
0x18 0x90100140
0x19 0x90a00110
0x1a 0x90100141
0x1b 0x400000f0
0x1c 0x400000f0
0x1d 0x400000f0
0x1e 0x014be060
0x1f 0x01cbe030

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw
Quoted 15 lines · Johannes Berg
Quoted 10 lines · Takashi Iwai

alsa-info.txt line 213

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

alsa-info.txt renamed from before.txt +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

No idea :)

Quoted 7 lines
Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Mind you -- mbp3 isn't really the correct thing for my machine, the microphone also seems to be bad when using it -- but I haven't gotten around to writing a proper description or trying to find it even.

Maybe being the wrong quirk means its being initialized wrong. I think you said originally that a proper quirk for it hadn't been written yet though, yeah?

Signature · 3 lines
Mackenzie Morgan
http://ubuntulinuxtipstricks.blogspot.com
apt-get moo

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#6 lore raw
In reply to Johannes Berg

At Tue, 14 Apr 2009 15:43:33 +0200,

Quoted 11 lines · Johannes Berg
Quoted 8 lines · Takashi Iwai
Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

(quoted diff) +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2
Quoted 8 lines
Quoted 2 lines

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Thanks. Could you try the patch below?

Quoted 3 lines

Mind you -- mbp3 isn't really the correct thing for my machine, the microphone also seems to be bad when using it -- but I haven't gotten around to writing a proper description or trying to find it even.

Hm, could you be a bit more specific? "seems to be bad" is relatively subjective expression :)

Takashi

---

sound/pci/hda/hda_codec.c +5 -1
index a4e5e59..fd6e6f3 100644
@@ -2250,7 +2250,11 @@ int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid,
 	err = bus->ops.command(bus, res);
 	if (!err) {
 		struct hda_cache_head *c;
-		u32 key = build_cmd_cache_key(nid, verb);
+		u32 key;
+		/* parm may contain the verb stuff for get/set amp */
+		verb = verb | (parm >> 8);
+		parm &= 0xff;
+		key = build_cmd_cache_key(nid, verb);
 		c = get_alloc_hash(&codec->cmd_cache, key);
 		if (c)
 			c->val = parm;
#7 lore raw
Quoted 16 lines · Takashi Iwai

At Tue, 14 Apr 2009 15:43:33 +0200,

Quoted 14 lines · Johannes Berg
Quoted 10 lines · Takashi Iwai

Review

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

(quoted diff) +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

Quoted 7 lines
Quoted 5 lines

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Thanks. Could you try the patch below?

Will do, give me a bit.

Quoted 6 lines
Quoted 3 lines

Mind you -- mbp3 isn't really the correct thing for my machine, the microphone also seems to be bad when using it -- but I haven't gotten around to writing a proper description or trying to find it even.

Hm, could you be a bit more specific? "seems to be bad" is relatively subjective expression :)

Sorry... Well, I can't seem to record at all right now for some reason, but here are a few things that are wrong:
1) master mute has no effect (I think that actually worked before?)
2) the "Speaker" control has no effect (mute/unmute)
3) need to set channel control to 6 to get sound at all
4) speaker volume is line-out * pcm * master
5) cannot automatically detect codec, need to load with model=mbp3

And the last time I could record sound it was all choppy and sounded clipped.

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#8 lore raw

At Wed, 15 Apr 2009 17:30:27 +0200,

Quoted 32 lines · Johannes Berg
Quoted 16 lines · Takashi Iwai

At Tue, 14 Apr 2009 15:43:33 +0200,

Quoted 14 lines · Johannes Berg
Quoted 10 lines · Takashi Iwai

Review

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

(quoted diff) +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

Quoted 7 lines
Quoted 5 lines

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Thanks. Could you try the patch below?

Will do, give me a bit.

Quoted 4 lines
Quoted 3 lines

Mind you -- mbp3 isn't really the correct thing for my machine, the microphone also seems to be bad when using it -- but I haven't gotten around to writing a proper description or trying to find it even.

Quoted 6 lines
Quoted 2 lines

Hm, could you be a bit more specific? "seems to be bad" is relatively subjective expression :)

Sorry... Well, I can't seem to record at all right now for some reason, but here are a few things that are wrong:
1) master mute has no effect (I think that actually worked before?)

Do you mean that it has no effect on the playback volumes, or on the recording level? The former is a bug, the latter not.

Quoted 1 line

2) the "Speaker" control has no effect (mute/unmute)

Ditto.

Quoted 1 line

3) need to set channel control to 6 to get sound at all

So the pin setup used there don't match with the actual environment, apparently...

Quoted 2 lines

4) speaker volume is line-out * pcm * master
5) cannot automatically detect codec, need to load with model=mbp3

What happens exactly, if you load the module without model option? Note that "Unknown xxx" message is no error but an informational one.

Quoted 2 lines

And the last time I could record sound it was all choppy and sounded clipped.

This might have been improved in the recent version.

thanks,

Takashi

#9 lore raw
Quoted 10 lines · Takashi Iwai
Quoted 3 lines

Sorry... Well, I can't seem to record at all right now for some reason, but here are a few things that are wrong:
1) master mute has no effect (I think that actually worked before?)

Do you mean that it has no effect on the playback volumes, or on the recording level? The former is a bug, the latter not.

Quoted 1 line

2) the "Speaker" control has no effect (mute/unmute)

Ditto.

Sorry -- playback on both points.

Quoted 4 lines
Quoted 1 line

3) need to set channel control to 6 to get sound at all

So the pin setup used there don't match with the actual environment, apparently...

Yeah.

Quoted 5 lines
Quoted 2 lines

4) speaker volume is line-out * pcm * master
5) cannot automatically detect codec, need to load with model=mbp3

What happens exactly, if you load the module without model option? Note that "Unknown xxx" message is no error but an informational one.

It says

[ 1319.570055] hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...

but then with the controls I get I cannot make it play any sound.

Quoted 4 lines
Quoted 2 lines

And the last time I could record sound it was all choppy and sounded clipped.

This might have been improved in the recent version.

Ok, I'll try harder to record something.

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#10 lore raw
In reply to Takashi Iwai
Quoted 7 lines · Takashi Iwai

Do you mean that it has no effect on the playback volumes, or on the recording level? The former is a bug, the latter not.

Quoted 2 lines

And the last time I could record sound it was all choppy and sounded clipped.

This might have been improved in the recent version.

Actually, nothing seems to have an impact on the recording level, which is my problem -- audio is clipped.

Look at the waveforms in http://johannes.sipsolutions.net/files/123.wav

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#11 lore raw
Quoted 5 lines · Johannes Berg
Quoted 2 lines · Takashi Iwai

Do you mean that it has no effect on the playback volumes, or on the recording level? The former is a bug, the latter not.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

And the last time I could record sound it was all choppy and sounded clipped.

This might have been improved in the recent version.

Actually, nothing seems to have an impact on the recording level, which is my problem -- audio is clipped.

No, that was wrong, there are just too many controls, I need to use "Capture" rather than "Capture 1" or "Capture 2" and for some reason it defaulted to max. Sorry!

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#12 lore raw
In reply to Takashi Iwai
Quoted 16 lines · Takashi Iwai

At Tue, 14 Apr 2009 15:43:33 +0200,

Quoted 14 lines · Johannes Berg
Quoted 10 lines · Takashi Iwai

Review

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

(quoted diff) +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

Quoted 7 lines
Quoted 5 lines

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Thanks. Could you try the patch below?

Yes, this helps, thanks. Mind you, if I play music with mplayer _while_ hibernating, I get a horrible buzzing when waking up and mplayer says:

[AO_ALSA] alsa-lib: pcm_hw.c:727:(snd_pcm_hw_resume) SNDRV_PCM_IOCTL_RESUME failed: Function not implemented

Needed to kill mplayer but the channels control is remembered properly.

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#13 lore raw

At Wed, 15 Apr 2009 17:40:02 +0200,

Quoted 24 lines · Johannes Berg
Quoted 22 lines · Takashi Iwai

At Tue, 14 Apr 2009 15:43:33 +0200,

Quoted 19 lines · Johannes Berg
Quoted 10 lines · Takashi Iwai

Review

Quoted 7 lines

Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1

(quoted diff) +1 -1
-  Amp-In vals:  [0x00 0x00] [0x00 0x00]
+  Amp-In vals:  [0x80 0x80] [0x00 0x00]
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
   Amp-Out vals:  [0x25 0x25]
   Connection: 2

So the widget 0x0d is muted. Maybe the channel mode control doesn't do caching the value properly...

No idea :)

Quoted 1 line

Could you give the raw alsa-info.sh output?

Sure, below (before hibernating).

Quoted 7 lines
Quoted 1 line

Thanks. Could you try the patch below?

Yes, this helps, thanks. Mind you, if I play music with mplayer _while_ hibernating, I get a horrible buzzing when waking up and mplayer says:

[AO_ALSA] alsa-lib: pcm_hw.c:727:(snd_pcm_hw_resume) SNDRV_PCM_IOCTL_RESUME failed: Function not implemented

This is actually no fatal error. It appears because libao sets its own error logger. But...

Quoted 1 line

Needed to kill mplayer but the channels control is remembered properly.

... Necessity of kill sounds like a bug in either libao or else.

Anyway, I'll add the patch to the next pull request.

thanks,

Takashi

#14 lore raw
Quoted 6 lines · Takashi Iwai
Quoted 5 lines

Yes, this helps, thanks. Mind you, if I play music with mplayer _while_ hibernating, I get a horrible buzzing when waking up and mplayer says:

[AO_ALSA] alsa-lib: pcm_hw.c:727:(snd_pcm_hw_resume) SNDRV_PCM_IOCTL_RESUME failed: Function not implemented

Quoted 6 lines

This is actually no fatal error. It appears because libao sets its own error logger. But...

Quoted 1 line

Needed to kill mplayer but the channels control is remembered properly.

... Necessity of kill sounds like a bug in either libao or else.

mplayer just hung there, while hda-intel was buzzing away... not very nice, but I agree it's quite probably not a kernel bug.

Quoted 1 line

Anyway, I'll add the patch to the next pull request.

Alright, thanks.

johannes

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel