thomas-shirley/macbook8.1-speaker-driver ? reverse-engineered prompt
Reverse engineered prompt
Build me a one shot installer for the 12 inch MacBook Early 2015 so the built in speakers work properly on Linux after a normal reboot.
I want it to patch and install the audio driver stack, set up whatever config is needed for PipeWire and WirePlumber, and make it survive kernel upgrades with DKMS. It should also handle the headphone jack switching better so I do not end up with silence after unplugging headphones, and it should recover audio after suspend and resume if needed.
Make the install and uninstall path simple, something like run one script to set everything up and one flag to remove it cleanly. After reboot, the speakers should come up automatically with no manual restarting of audio services. If you need to check current kernel or PipeWire docs online while wiring it together, do that. Also include a clear verification step so I can tell if the driver loaded and the speaker output is actually working.
Are you gonna build this?
make sure you review the code using coderabbit