Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rene Rebe <rene@exactcode.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: Nicolas Boichat <nicolas@boichat.ch>,
	Matt Porter <mporter@embeddedalley.com>,
	alsa-devel@lists.sourceforge.net
Subject: Re: ALSA Intel HDA MacBook
Date: Mon, 10 Jul 2006 13:44:13 +0200	[thread overview]
Message-ID: <200607101344.13837.rene@exactcode.de> (raw)
In-Reply-To: <s5hk66lda2l.wl%tiwai@suse.de>

Hi,

On Monday 10 July 2006 12:32, Takashi Iwai wrote:
> At Sat, 8 Jul 2006 21:20:02 +0200,
> Rene Rebe wrote:
> > 
> > +static unsigned int apple_pin_configs[10] = {
> > +	0x0121E230, 0x90A70120, 0x9017E110, 0x400000FE,
> > +	0x400000FD, 0x0181E021, 0x1145E040, 0x400000FA,
> > +	0x400000FC, 0x400000FB,
> > +};
> > +
> 
> Interesting.  How did yo figure this out?

No idea, as I wrote the best patch "I found" on the internet. I think
it was Nicolas who came up with it.

> > The patch might work on the MacBook Pro, I have none - how-
> > ever the MacBook has three speakers, a left and right one and
> > one under the keyboard for the bass and mids. However this
> > third speaker is only driver when the headphone right channel
> > is unmuted and consequently continous to play the sound
> > when the headphone is plugged in and the speakers are suppost
> > to be muted. Only the left and right channel is muted in that
> > case - this "below the keyboard" bass speaker still emmits
> > the audio and it's volume is controlled by the right headphone
> > channel (???).
> 
> Is the headphone itself controlled via "Headphone" volume mixer?
> Or is it unaffected?

Yes, the headphone is controlled with Headphone volume control
just that it's right channel also controlls this center speaker below
the keyboard.

> Anyway, show /proc/asound/card0/codec#*, and the kernel message
> regarding pin detections (after compiling with debug option).

Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x100
Revision Id: 0x103401
Default PCM: rates 0x7e0, bits 0x0e, types 0x1
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0xff 0xff]
  Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0xff 0xff]
  Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0xff 0xff]
  Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0xff 0xff]
  Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
  Power: 0x0
  Connection: 1
     0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
  Power: 0x0
  Connection: 1
     0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
  PCM: rates 0x7e0, bits 0x0e, types 0x5
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
  PCM: rates 0x160, bits 0x0e, types 0x5
  Connection: 1
     0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x08173f: IN OUT HP
  Pin Default 0x0121e230: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = White
  Pin-ctls: 0x80: HP
  Connection: 1
     0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x081737: IN OUT
  Pin Default 0x90a70120: [Fixed] Mic at Int N/A
    Conn = Analog, Color = Unknown
  Pin-ctls: 0x24: IN
  Connection: 1
     0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x081737: IN OUT
  Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = White
  Pin-ctls: 0x60: IN OUT
  Connection: 1
     0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x08173f: IN OUT HP
  Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x0824: IN
  Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
  Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0837: IN OUT
  Pin Default 0x0181e021: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = White
  Pin-ctls: 0x20: IN
  Connection: 1
     0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x0810: OUT
  Pin Default 0x1145e040: [Jack] SPDIF Out at Int Rear
    Conn = Optical, Color = White
  Pin-ctls: 0x40: OUT
  Connection: 3
     0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
  Pincap 0x0810024: IN
  Pin Default 0x400000fa: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
  Pin-ctls: 0x00:
  Power: 0x0
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 0x0820: IN
  Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
  Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x80 0x80]
  Connection: 1
     0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x80 0x80]
  Connection: 1
     0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x0810: OUT
  Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
  Pin-ctls: 0x00:
  Connection: 1
     0x1a

I think there is no printout of the snd-intel-hda driver about pin
config, should there?

> > Since I have no spec for the Intel HDA or Sigmatel chip
> > (the SigmaTel STAC9221 A1) I feel a bit lost.
> 
> Heh, nor do I ;)

Ouhm.

-- 
René Rebe - ExactCODE - Berlin (Europe / Germany)
            http://exactcode.de | http://t2-project.org | http://rene.rebe.name
            +49 (0)30 / 255 897 45


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-07-10 11:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200607081323.17265.rene@exactcode.de>
     [not found] ` <200607081354.33539.rene@exactcode.de>
2006-07-08 19:20   ` ALSA Intel HDA MacBook Rene Rebe
2006-07-08 20:36     ` Maya Falmagne
2006-07-08 20:38       ` Lee Revell
2006-07-10 10:32     ` Takashi Iwai
2006-07-10 11:44       ` Rene Rebe [this message]
2006-07-10 12:00         ` Nicolas Boichat
2006-07-11 10:52           ` Takashi Iwai
2006-07-16 15:37             ` Rene Rebe
2006-07-23 14:31             ` Nicolas Boichat
2006-07-28 13:19               ` Matt Porter
2006-07-28 13:21                 ` Takashi Iwai
2006-07-28 19:00                   ` Nicolas Boichat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200607101344.13837.rene@exactcode.de \
    --to=rene@exactcode.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=mporter@embeddedalley.com \
    --cc=nicolas@boichat.ch \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox