local builtinMicName = "MacBook Pro Microphone"
hs.audiodevice.watcher.setCallback(function(e)
defaultMic = hs.audiodevice.defaultInputDevice():name()
if (e == "dIn " and defaultMic ~= builtinMic) then
local builtinMic = hs.audiodevice.findInputByName(builtinMicName)
builtinMic:setDefaultInputDevice()
end
end)
hs.audiodevice.watcher.start()
It doesn't seem fair to pay $20 per year for this. I'd be fine with one time payment.
Correction - HPD signal is translated into vendor message and carried over CC lines - same ones that are used for PD and AltMode negotiation.
In DP-Alt mode SBU1/2 basically becomes AUX+/-.