leifliddy / macbook12-audio-driver

WIP audio driver for the cs4208 codec found in the 12" MacBook (MacBook9,1, MacBook10,1).
84 stars 9 forks source link

Macbook9,1 12 Retina Early 2016 #27

Open gc070653 opened 6 months ago

gc070653 commented 6 months ago

So far I've not been able to make the internal speakers working on any distro I tried, Manjaro Ubuntu Linux Mint, even after installing your patch. After your patch the system is showing correctly the Analog Output-Built-in Audio and if I play some song I see the sound bar moving but no sound is coming out. Earphones are not working any longer as expected. I also tried to add 'options snd_hda_intel model=mbp11' into the alsa-base.conf but nothing changed.

Checking your patch_cirrus.c, I did not found any reference to macbook9,1, can be this the reason why the driver is not working? I reference to this:

/*

static const struct hda_model_fixup cs4208_models[] = { { .id = CS4208_GPIO0, .name = "gpio0" }, { .id = CS4208_MBA6, .name = "mba6" }, { .id = CS4208_MBP11, .name = "mbp11" }, { .id = CS4208_MACMINI, .name = "macmini" }, {} };

static const struct snd_pci_quirk cs4208_fixup_tbl[] = { SND_PCI_QUIRK_VENDOR(0x106b, "Apple", CS4208_MAC_AUTO), {} / terminator / };

/ codec SSID matching / static const struct snd_pci_quirk cs4208_mac_fixup_tbl[] = { SND_PCI_QUIRK(0x106b, 0x5e00, "MacBookPro 11,2", CS4208_MBP11), SND_PCI_QUIRK(0x106b, 0x6c00, "MacMini 7,1", CS4208_MACMINI), SND_PCI_QUIRK(0x106b, 0x7100, "MacBookAir 6,1", CS4208_MBA6), SND_PCI_QUIRK(0x106b, 0x7200, "MacBookAir 6,2", CS4208_MBA6), SND_PCI_QUIRK(0x106b, 0x7b00, "MacBookPro 12,1", CS4208_MBP11), {} / terminator / };

Alsactl init is showing :

Found hardware: "HDA-Intel" "Cirrus Logic CS4208" "HDA:10134208,106b6500,00100401 HDA:80862809,80860101,001000000" "0x8086" "0x7270" Hardware is initialized using a generic method

Also the reference to 0x106b 0x6500 is missing

Sorry if I've not been very clear and thank you in advance Ciao Luca

gc070653 commented 6 months ago

Using HDA-Analizer I discover that in Codec 0 the node ox02 AUD_OUT is set with Mute=true and using hdajackretask the internal speaker entry is empty. Can this help to fix the missing audio?

patx commented 3 months ago

bump