Apple machines with multiple speakers typically have the shutdown pin of
authorkettenis <kettenis@openbsd.org>
Tue, 26 Dec 2023 09:25:15 +0000 (09:25 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 26 Dec 2023 09:25:15 +0000 (09:25 +0000)
commit27b7e82d3c68ed8d8fae9faeb047b72e0d53eb1c
tree896bb87bc34e2bb9ffc8a5ed048c05ee8416a13e
parent4ef70b62034cf214c9106bacee4aa3895e44cfc7
Apple machines with multiple speakers typically have the shutdown pin of
the digital amplifier codecs wired up to a single GPIO.  This is apparently
problematic for Linux and Asahi Linux changed their device trees to use a
regulator instead to such that reference counting makes sure that shutdown
isn't asserted until all codecs are ready for it.  Follow suit, even though
our regulator code doesn't do the proper reference counting yet.

ok patrick@
sys/dev/fdt/sncodec.c
sys/dev/fdt/tascodec.c