XPS9350-macOS icon indicating copy to clipboard operation
XPS9350-macOS copied to clipboard

ALC256

Open syscl opened this issue 8 years ago • 36 comments

Dear Mirone,

Here's the result with the latest AppleALC + CodecCommander + ALCPlugFix

snip20170115_3

  • Int Speaker: work
  • Ext speaker: no auto switch, cannot gain sound
  • Int speaker: no sound
  • Headphone: no sound

Funny thing is there's "Use audio port for 'Sound Output'" or "Use audio port for 'Sound Input'". I switched Sound Output to Sound Input, but still no mic detect.

Thanks for your help, syscl

syscl avatar Jan 15 '17 22:01 syscl

Hi Mirone, the latest one AppleHDA even cannot load

Here's the screenshot snip20170115_1

syscl

syscl avatar Jan 15 '17 22:01 syscl

Dear Mirone,

The latest AppleHDA:

  • Headphone and int speaker works
  • Int and ext mic do not work snip20170115_2

Some very tiny noise/coil buzzing when headphone is plugged in, I then switched my version of CodecCommander, see here This version reduce the headphone noise but not eliminated it totally. Maybe the problem is in CodecCommander and ALCPlugFix's arguments?

Thanks in advance, syscl

syscl avatar Jan 15 '17 23:01 syscl

Hi, I just found out that I have headphone noise if :

  • My external speaker is on and jack is connected to Dell
  • I boot Mac

And there's no headphone noise if :

  • Mac is already on
  • Connect the jack
  • Turn on the speaker (this maybe is not important)

x4080 avatar Jan 24 '17 09:01 x4080

@syscl check my AppleALC.kext Headphones, mic and speakers works perfectly. But we have to remove a ghost input device from this config.

nos1609 avatar Jan 24 '17 16:01 nos1609

@nos1609 Thank you! I will try then merge it if possible.

Do you have some idea to lower down the power consume?

syscl

syscl avatar Jan 24 '17 16:01 syscl

Hi @Mirone,

here's the latest AppleHDA's screenshot, snip20170128_1

  • No input/outpupt devices.

syscl

syscl avatar Jan 28 '17 20:01 syscl

Hello @Mirone snip20170129_2

Working:

  • Internal speaker
  • Headphone

Not working:

  • Internal mic
  • External mic
  • If I change Use audio port for from Sound Input to Sound output, then there's no sound from headphone any more.

What I've always test:

  • AppleHDA with CodecCommander
  • AppleHDA without CodecCommander

If without CodecCommander, there will be very tiny noise using headphone. Anyway, this version is pretty good(no intensive noise from headphone w/o CodecCommander :).

Thank you! syscl

syscl avatar Jan 29 '17 19:01 syscl

@Mirone snip20170129_3

Working:

  • Internal speaker
  • Headphone

Not working:

  • Int mic
  • Ext mic
  • No devices in System Preferences -> Sound -> Input

syscl

syscl avatar Jan 29 '17 19:01 syscl

Hi @Mirone

Here's the ioreg+origin ACPI ioreg+ACPI.zip

Thank's for your time, syscl

syscl avatar Jan 30 '17 21:01 syscl

Hi @Mirone

Here's the result: snip20170130_5 snip20170130_4

There's no sound input from headphone and internal mic. I double check from my friend's MacBookPro who sat behind me, that once I plug-in my iPhone's headphone, then Input->External Mic, and input level change when I tap the headphone.

I am very appreciate your help, syscl

syscl avatar Jan 30 '17 21:01 syscl

Hi @Mirone

Here's the result snip20170130_2

All test with CodecCommander and without CodecCommander.kext.

syscl

syscl avatar Jan 30 '17 22:01 syscl

Hi @Mirone

You remind me, I notice there's indeed internal speaker, and funny thing is, once I plug in headphone or unplug headphone, there'll be input level change instantly: snip20170130_6

BTW, no matter I plug in or unplug headphone, there will be tiny pop in headphone. Seems a good indicate?

Thank you!! syscl

syscl avatar Jan 30 '17 22:01 syscl

Hello @Mirone

This AppleHDA is pretty cool! Internal mic works and very sensitive! :)

Working:

  • Internal mic
  • Headphone (need CodecCommander to power it up, otherwise silence)
  • External speaker

Not working:

  • External mic

I saw you've changed DSDT as well: do you inject more properties for Device (HDEF) ?

Here's the result: snip20170203_1

Pretty pretty nice.

Have a nice day, syscl

syscl avatar Feb 03 '17 17:02 syscl

Already included in the deploy?

x4080 avatar Feb 03 '17 21:02 x4080

@x4080 No, not yet, still waiting Mirone's refining. He will refine it tonight.

syscl

syscl avatar Feb 03 '17 21:02 syscl

Cool

x4080 avatar Feb 03 '17 21:02 x4080

@syscl could you please share the dylibs after so I could make a new applealc

nos1609 avatar Feb 04 '17 13:02 nos1609

Hi @nos1609

I will, but the kext is yet to complete.

Thank you, syscl

syscl avatar Feb 04 '17 16:02 syscl

Hello @Mirone

How are you?

I have a question, is the layoutID = 36 means I will see Audio ID = 36 in System Information -> Audio? I tried two of the latest AppleHDA with 0x01, 0x03, 0x24, 0x36, none of them have sound

snip20170206_2

Do I do something wrong?

Thank you, syscl

syscl avatar Feb 07 '17 03:02 syscl

CloverV2.zip

syscl

syscl avatar Feb 07 '17 04:02 syscl

Maybe this can help somehow. It is the output of audio init under linux.

  • мар 04 19:40:51 arch-xps13 kernel: input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input7
  • мар 04 19:40:51 arch-xps13 kernel: input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
  • мар 04 19:40:51 arch-xps13 kernel: input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
  • мар 04 19:40:51 arch-xps13 kernel: input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
  • мар 04 19:40:51 arch-xps13 kernel: input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3246: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: inputs:
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: Headset Mic=0x19
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: Headphone Mic=0x1a
  • мар 04 19:40:51 arch-xps13 kernel: snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12

nos1609 avatar Mar 04 '17 16:03 nos1609

@nos1609 @bozma88 @ZombieTheBest about headphone pop issue, please try this from AppleALC

<dict>
				<key>Comment</key>
				<string>AppleHDA anti-pop patch #1 (credit AppleALC)</string>
				<key>MatchOS</key>
				<string>10.11.x,10.12.x</string>
				<key>Name</key>
				<string>com.apple.driver.AppleHDA</string>
				<key>Find</key>
				<data>QcYGAEiLu2g=</data>
				<key>Replace</key>
				<data>QcYGAUiLu2g=</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA anti-pop patch #2 (credit AppleALC)</string>
				<key>MatchOS</key>
				<string>10.11.x,10.12.x</string>
				<key>Disabled</key>
				<true/>
				<key>Name</key>
				<string>com.apple.driver.AppleHDA</string>
				<key>Find</key>
				<data>QcaGQwEAAAA=</data>
				<key>Replace</key>
				<data>QcaGQwEAAAE=</data>
			</dict>

Though I haven't experienced any noise pop.

syscl

syscl avatar Mar 07 '17 21:03 syscl

@x4080 @nos1609 @bozma88 @ZombieTheBest

I just want you all know that I have fixed the Headphone internal issue, and know it works pretty pretty nice. Except the display in mic is still internal mic(not a big issue).

Sorry, I speak too soon. Need more testing.

syscl

syscl avatar Mar 07 '17 21:03 syscl

@syscl You mean the headphone microphone? That's nice! I will wait for that :D I also saw the "noise pop" fix, @bozma88 said that it's inefficient because that patch keeps the codec active. How much "inefficient" it is in terms of power consumption?

mircoianese avatar Mar 08 '17 09:03 mircoianese

Inefficient is not what we consider in the first place, bear in mind, in hackintosh world, the first thing is to make things can be used, then we consider elegant method.

syscl

syscl avatar Mar 08 '17 14:03 syscl

@syscl, I think that is a choice that every user has to make. Some of us (e.g. myself) purchased this laptop because of its huge battery life that current-gen MacBook cannot reach. So, for example, my main aim is to make it last on battery as long as possible.

bozma88 avatar Mar 08 '17 15:03 bozma88

hi @syscl do you solved the problem with ComboJack?

Mirone avatar Mar 08 '17 17:03 Mirone

@syscl Good job, I'll try it

x4080 avatar Mar 08 '17 22:03 x4080

Dear @Mirone

Long time no see. How are you?

Sadly, I cannot replicate the external microphone to work again. Though I still use my original AppleHDA, maybe that's the reason why I cannot power the ext mic again. I want to tried your version of AppleHDA with my new finding(because ext mic is almost finished), but there's too many versions. And our conversation on insanelymac has been removed such that I cannot download suitable version to have a try. :(

syscl

syscl avatar Mar 09 '17 02:03 syscl

hi, @syscl Which version do you need?

Mirone avatar Mar 09 '17 10:03 Mirone