All of lore.kernel.org
 help / color / mirror / Atom feed
* mic on macbook air
@ 2010-09-26 22:32 Reimundo
  2010-09-27 14:39 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Reimundo @ 2010-09-26 22:32 UTC (permalink / raw)
  To: alsa-devel

Hello list, from time to time I spend some time trying to get the mic
working on a Macbook air 2,1. I tried looking at the relevant info from
the corresponding kernel extensions on mac os X. The codec has  "Vendor
Id: 0x10ec0885" so the relevant part of the info.plist on mac os X reads

<dict>
<key>MicAttributes</key>
<integer>28</integer>
<key>MicInfo</key>
<string>Sampled on rising edge</string>
<key>NodeID</key>
<integer>39</integer>
<key>PinConfigDefault</key>
<integer>2426405136</integer>
</dict>

Which tells me nothing. In particular I don't have a node 0x27=39 (at
least not that hda-analyzer sees) so it's not surprising that if I send
the corresponding verbs to set_config_default I don't get anything.
Also, I don't see how setting the pinconfigdefault could affect my not
having the mic working (anyway I tried setting those pinconfigdefaults
that put the node as a fixed mic on all nids 0x19-0x1c to no avail)

As for the sampled on rising edge, I don't know how to use this info.
any ideas?

Thanks,

R. 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-26 22:32 mic on macbook air Reimundo
@ 2010-09-27 14:39 ` Takashi Iwai
  2010-09-27 16:36   ` Justin P. Mattock
  0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2010-09-27 14:39 UTC (permalink / raw)
  To: Reimundo; +Cc: alsa-devel, Justin P. Mattock

At Mon, 27 Sep 2010 00:32:03 +0200,
Reimundo wrote:
> 
> Hello list, from time to time I spend some time trying to get the mic
> working on a Macbook air 2,1. I tried looking at the relevant info from
> the corresponding kernel extensions on mac os X. The codec has  "Vendor
> Id: 0x10ec0885" so the relevant part of the info.plist on mac os X reads
> 
> <dict>
> <key>MicAttributes</key>
> <integer>28</integer>
> <key>MicInfo</key>
> <string>Sampled on rising edge</string>
> <key>NodeID</key>
> <integer>39</integer>
> <key>PinConfigDefault</key>
> <integer>2426405136</integer>
> </dict>
> 
> Which tells me nothing. In particular I don't have a node 0x27=39 (at
> least not that hda-analyzer sees) so it's not surprising that if I send
> the corresponding verbs to set_config_default I don't get anything.
> Also, I don't see how setting the pinconfigdefault could affect my not
> having the mic working (anyway I tried setting those pinconfigdefaults
> that put the node as a fixed mic on all nids 0x19-0x1c to no avail)
> 
> As for the sampled on rising edge, I don't know how to use this info.
> any ideas?

Justin Mattock made once some patches for MacBookAir, but they are
pending because no one tested yet.

Justin, could you repost the patches (rebase if needed) for testing
again?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-27 14:39 ` Takashi Iwai
@ 2010-09-27 16:36   ` Justin P. Mattock
  2010-09-27 16:40     ` Reimundo Heluani
  0 siblings, 1 reply; 7+ messages in thread
From: Justin P. Mattock @ 2010-09-27 16:36 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Reimundo, alsa-devel

On 09/27/2010 07:39 AM, Takashi Iwai wrote:
> At Mon, 27 Sep 2010 00:32:03 +0200,
> Reimundo wrote:
>>
>> Hello list, from time to time I spend some time trying to get the mic
>> working on a Macbook air 2,1. I tried looking at the relevant info from
>> the corresponding kernel extensions on mac os X. The codec has  "Vendor
>> Id: 0x10ec0885" so the relevant part of the info.plist on mac os X reads
>>
>> <dict>
>> <key>MicAttributes</key>
>> <integer>28</integer>
>> <key>MicInfo</key>
>> <string>Sampled on rising edge</string>
>> <key>NodeID</key>
>> <integer>39</integer>
>> <key>PinConfigDefault</key>
>> <integer>2426405136</integer>
>> </dict>
>>
>> Which tells me nothing. In particular I don't have a node 0x27=39 (at
>> least not that hda-analyzer sees) so it's not surprising that if I send
>> the corresponding verbs to set_config_default I don't get anything.
>> Also, I don't see how setting the pinconfigdefault could affect my not
>> having the mic working (anyway I tried setting those pinconfigdefaults
>> that put the node as a fixed mic on all nids 0x19-0x1c to no avail)
>>
>> As for the sampled on rising edge, I don't know how to use this info.
>> any ideas?
>
> Justin Mattock made once some patches for MacBookAir, but they are
> pending because no one tested yet.
>
> Justin, could you repost the patches (rebase if needed) for testing
> again?
>
>
> thanks,
>
> Takashi
>


Sure I can rebase them... but there's no guarantee that they work...
from what I remember the mic on the macbookAir is not shown with the 
codec file so you might have to change the pins around.

Justin P. Mattock

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-27 16:36   ` Justin P. Mattock
@ 2010-09-27 16:40     ` Reimundo Heluani
  2010-09-27 17:32       ` Justin P. Mattock
  0 siblings, 1 reply; 7+ messages in thread
From: Reimundo Heluani @ 2010-09-27 16:40 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: Takashi Iwai, alsa-devel

As far as I know I wrote the only patch for macbook air 2,1 that
shipped with 2.6.34 but that was for the internal speaker only. I
could never get the mic going.

Cheers,

R.

On Mon, Sep 27, 2010 at 1:36 PM, Justin P. Mattock
<justinmattock@gmail.com> wrote:
> On 09/27/2010 07:39 AM, Takashi Iwai wrote:
>>
>> At Mon, 27 Sep 2010 00:32:03 +0200,
>> Reimundo wrote:
>>>
>>> Hello list, from time to time I spend some time trying to get the mic
>>> working on a Macbook air 2,1. I tried looking at the relevant info from
>>> the corresponding kernel extensions on mac os X. The codec has  "Vendor
>>> Id: 0x10ec0885" so the relevant part of the info.plist on mac os X reads
>>>
>>> <dict>
>>> <key>MicAttributes</key>
>>> <integer>28</integer>
>>> <key>MicInfo</key>
>>> <string>Sampled on rising edge</string>
>>> <key>NodeID</key>
>>> <integer>39</integer>
>>> <key>PinConfigDefault</key>
>>> <integer>2426405136</integer>
>>> </dict>
>>>
>>> Which tells me nothing. In particular I don't have a node 0x27=39 (at
>>> least not that hda-analyzer sees) so it's not surprising that if I send
>>> the corresponding verbs to set_config_default I don't get anything.
>>> Also, I don't see how setting the pinconfigdefault could affect my not
>>> having the mic working (anyway I tried setting those pinconfigdefaults
>>> that put the node as a fixed mic on all nids 0x19-0x1c to no avail)
>>>
>>> As for the sampled on rising edge, I don't know how to use this info.
>>> any ideas?
>>
>> Justin Mattock made once some patches for MacBookAir, but they are
>> pending because no one tested yet.
>>
>> Justin, could you repost the patches (rebase if needed) for testing
>> again?
>>
>>
>> thanks,
>>
>> Takashi
>>
>
>
> Sure I can rebase them... but there's no guarantee that they work...
> from what I remember the mic on the macbookAir is not shown with the codec
> file so you might have to change the pins around.
>
> Justin P. Mattock
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-27 16:40     ` Reimundo Heluani
@ 2010-09-27 17:32       ` Justin P. Mattock
  2010-09-27 17:47         ` Reimundo Heluani
  0 siblings, 1 reply; 7+ messages in thread
From: Justin P. Mattock @ 2010-09-27 17:32 UTC (permalink / raw)
  To: Reimundo Heluani; +Cc: Takashi Iwai, alsa-devel

On 09/27/2010 09:40 AM, Reimundo Heluani wrote:
> As far as I know I wrote the only patch for macbook air 2,1 that
> shipped with 2.6.34 but that was for the internal speaker only. I
> could never get the mic going.
>
> Cheers,
>
> R.

when doing a cat codec#0 | grep Pin on my iMac9,1
I can see:

Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
   Pincap 0x0000373c: IN OUT HP Detect
   Pin Default 0x90a00110: [Fixed] Mic at Int N/A
   Pin-ctls: 0x24: IN VREF_80

when doing the same for the mba1,1 I didn't see anything in there that 
said Mic.. I'm wondering if the Mic is there, it's just not being shown 
when doing cat codec#0 due to apple changing something with the 
hardware. did you try different pin numbers?(even though none of the 
pins say Mic)

Justin P. Mattock

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-27 17:32       ` Justin P. Mattock
@ 2010-09-27 17:47         ` Reimundo Heluani
  2010-09-27 18:15           ` Justin P. Mattock
  0 siblings, 1 reply; 7+ messages in thread
From: Reimundo Heluani @ 2010-09-27 17:47 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: Takashi Iwai, alsa-devel

On Mon, Sep 27, 2010 at 2:32 PM, Justin P. Mattock
<justinmattock@gmail.com> wrote:
> On 09/27/2010 09:40 AM, Reimundo Heluani wrote:
>>
>> As far as I know I wrote the only patch for macbook air 2,1 that
>> shipped with 2.6.34 but that was for the internal speaker only. I
>> could never get the mic going.
>>
>> Cheers,
>>
>> R.
>
> when doing a cat codec#0 | grep Pin on my iMac9,1
> I can see:
>
> Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
>  Pincap 0x0000373c: IN OUT HP Detect
>  Pin Default 0x90a00110: [Fixed] Mic at Int N/A
>  Pin-ctls: 0x24: IN VREF_80
>
> when doing the same for the mba1,1 I didn't see anything in there that said
> Mic.. I'm wondering if the Mic is there, it's just not being shown when
> doing cat codec#0 due to apple changing something with the hardware. did you
> try different pin numbers?(even though none of the pins say Mic)
>
> Justin P. Mattock
>

Well, here it could just be my ignorance, but I think last year when I
was trying, I tried all possible pins and didn't find the mic
anywhere. Then I thought that it could be some vendor parameters on
0x20, but then I saw the plist file in the kext and the only thing
they adjust is the pindefault to 0x90a00110: [Fixed] Mic at Int N/A on
what it seems to be either pin 0x1c (which I tried) or 0x27 (which is
nonexistent). There's a thread at the ubuntu forums with people
running alsa on air 2,1 but I couldn't get anyone to play with
hda-verb.

Cheers,

R.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: mic on macbook air
  2010-09-27 17:47         ` Reimundo Heluani
@ 2010-09-27 18:15           ` Justin P. Mattock
  0 siblings, 0 replies; 7+ messages in thread
From: Justin P. Mattock @ 2010-09-27 18:15 UTC (permalink / raw)
  To: Reimundo Heluani; +Cc: Takashi Iwai, alsa-devel

On 09/27/2010 10:47 AM, Reimundo Heluani wrote:
> On Mon, Sep 27, 2010 at 2:32 PM, Justin P. Mattock
> <justinmattock@gmail.com>  wrote:
>> On 09/27/2010 09:40 AM, Reimundo Heluani wrote:
>>>
>>> As far as I know I wrote the only patch for macbook air 2,1 that
>>> shipped with 2.6.34 but that was for the internal speaker only. I
>>> could never get the mic going.
>>>
>>> Cheers,
>>>
>>> R.
>>
>> when doing a cat codec#0 | grep Pin on my iMac9,1
>> I can see:
>>
>> Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
>>   Pincap 0x0000373c: IN OUT HP Detect
>>   Pin Default 0x90a00110: [Fixed] Mic at Int N/A
>>   Pin-ctls: 0x24: IN VREF_80
>>
>> when doing the same for the mba1,1 I didn't see anything in there that said
>> Mic.. I'm wondering if the Mic is there, it's just not being shown when
>> doing cat codec#0 due to apple changing something with the hardware. did you
>> try different pin numbers?(even though none of the pins say Mic)
>>
>> Justin P. Mattock
>>
>
> Well, here it could just be my ignorance, but I think last year when I
> was trying, I tried all possible pins and didn't find the mic
> anywhere. Then I thought that it could be some vendor parameters on
> 0x20, but then I saw the plist file in the kext and the only thing
> they adjust is the pindefault to 0x90a00110: [Fixed] Mic at Int N/A on
> what it seems to be either pin 0x1c (which I tried) or 0x27 (which is
> nonexistent). There's a thread at the ubuntu forums with people
> running alsa on air 2,1 but I couldn't get anyone to play with
> hda-verb.
>
> Cheers,
>
> R.
>

ahh.. clears that idea up.. was wondering if that might be the case with 
that, but it's not. last I remember I went into the apple store and 
looked at the hardware settings, which seem pretty basic..

one thing I remember with the iMac, is the mic doesn't work right away 
i.e. need to toggle the Line/Mic back and forth before anything starts 
to work(which Im pretty sure you tried already), code for that is

hda_input_mux alc889A_imac91_capture_source = {

but I'm still uncertain where to find those numbers(ended up just 
guessing, and used the one that worked the best).

Justin P. Mattock

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-27 18:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-26 22:32 mic on macbook air Reimundo
2010-09-27 14:39 ` Takashi Iwai
2010-09-27 16:36   ` Justin P. Mattock
2010-09-27 16:40     ` Reimundo Heluani
2010-09-27 17:32       ` Justin P. Mattock
2010-09-27 17:47         ` Reimundo Heluani
2010-09-27 18:15           ` Justin P. Mattock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.