davidjo / snd_hda_macbookpro

Kernel audio driver for Macs with 8409 HDA chip + MAX98706/SSM3515 amps
GNU General Public License v2.0
278 stars 60 forks source link

initialize apple hardware correct #15

Open joelkraehemann opened 4 years ago

joelkraehemann commented 4 years ago

Ever thought about why the verbs of Microsoft Windows drivers INF file didn't work? Might be we have a hardware initialization problem.

davidjo commented 4 years ago

I cant say they dont work - maybe I seemed to impliy it - I never tried them out - it was going to be a lot of work to try and figure out the semantic parsing of the .inf file (even tho I did write a quick python .inf file syntax parser as configparser failed because of duplicate keys plus string handling - so it just converts the hex bytes into HDA code words) - plus it does a lot of recursive definitions ie some base key defines a load of data which then a specific chip conf selects items from plus edits the items. Also when I looked at it the setup was very different from Apples - although eg the n02StreamStartI2C/n02StreamStopI2C is consistent with the MAX amp chip data for HDAudio.Cirrus_CONF_0902 - but Apple does a lot more work. The init setup was just very different - some bits are the same but I was surprised how different the setup was. tdmp1.txt is my re-parsing of cs4208_38.inf for the HDAudio.Cirrus_CONF_0902 key which seems to match the MacBookPro 14,3.