Created attachment 115851 [details]
dmesg log file
The last linux kernel version still not compatible with my macbook air 2,1 sound card ALC889A from Realtek.
Please give alsa-info.sh output for more h/w details. Run it with --no-upload option, and attach the output to here (don't paste).
Created attachment 116071 [details]
alsa-info.sh log result
Thanks. And what did you test? Doesn't the sound come from both speaker and headphone?
Looking at the alsa-info.sh output, I found that the current code has a problem in the headphone pin setup. The two patches below should fix it, at least. Give them a try.
Created attachment 116121 [details]
hp pin fix patch #1
Created attachment 116131 [details]
hp pin fix patch #2
Newbie question :-):
to test this patchs, I have to compile all the kernel or could I just compile the module?
You can build only modules if you know how to do it :)
If you are not sure, you need to build the whole kernel.
I think I find an answer to my newbie question:
I will patch the 3.11 kernel source with the 2 patchs you posted:
patch -p1 > 0001-ALSA-hda-Create-Headhpone-Mic-Jack-Mode-when-really-.patch
patch -p1 > 0002-ALSA-hda-Fix-hp-mic-mode-without-VREF-bits.patch
then I will try to just compile the module, like this:
make modules SUBDIRS=directory_to_the_hda_module
This would work if the kernel tree really matches with the running kernel (including symbol versions, etc). But it's easy to test it out.
(In reply to Takashi Iwai from comment #9)
> This would work if the kernel tree really matches with the running kernel
> (including symbol versions, etc). But it's easy to test it out.
I applied your patches to my 3.11.9 tree, then recompiled related modules (snd_hda_intel, soundcore, snd, actually all snd_*) and installed them in /lib/modules, rebooted...
But my macbookair1,1 is still mute :(
Did these patches worked for someone with a MBA1,1 or MBA2,1?
The sound device implementation is fairly different between MBA 1,1 and 2,1.
But yes, MBA 1,1 is reported to work, at least, for the playbacks. The mic input is broken, though.
Hi, thanks for your answer and your patches!
Do you mean the out speakers are supposed to work with vanilla linux, or with the two patches?
If the latter are needed, can you point to where the MBA 1,1 is reported to work? So I can find out what I've done wrong :)
If it works, there should be no bug report on bugzilla :)
MBA 1,1 is a different hardware, so please don't pollute here but create another bug report, if the problem still persists with the latest 3.13-rc2 tree and after double-checking the mixer status.
The output of MBA 2,1 is fixed now by the patch below. It'll be included likely in 3.13-rc3, and then backported to stable kernels.
Created attachment 117411 [details]
More fix patch
I'm ashamed I did not finally managed to compile the 3.13 kernel with your patchs. However I regularly installed kernels of this page:
http://kernel.ubuntu.com/ ~ kernel-ppa/mainline/daily/current /
and the version of 11 December must include your patch because for the first time I could hear the sound on my macbook 2.1 with a Linux kernel.
Thank you very much, you are my hero!