Repository navigation
Conversation
In-tree snd_hda_codec_cs8409 leaves the MAX98706/SSM3515/TAS5764L amps unprogrammed. Pin davidjo's driver at the commit verified on MacBookPro14,3 / linux 7.1.8, and ship the full tree so PRE_BUILD can fetch kernel sources (wget + patch).
Arch's alpm hook parses /usr/src/<name>-<ver> and runs `dkms install <name>/<ver>`. A hyphen dest made that snd-hda-macbookpro/0.1, which exits 7 because dkms.conf PACKAGE_NAME is snd_hda_macbookpro. Pair hook omarchy-pkg-add relies on the hook succeeding.
Same CS8409 Apple path as the MacBook Pros; pairs with the omarchy install hook that now also matches iMac18,x / iMac19,x. Co-authored-by: Cursor <[email protected]>
|
Heads-up on
That script is what For linux-7.1.9 that's 158,435,316 bytes, of which it uses 2,490,543 — only This is avoidable, and omarchy-pkgs is the ideal place to avoid itEverything Since omarchy-pkgs builds packages centrally, doing it in DKMS rebuilds run Rough shape — add the kernel tarball to prepare() {
cd "$srcdir/snd_hda_macbookpro"
install -d build
tar --strip-components=2 -xf "$srcdir/linux-${_ksrcver}.tar.xz" \
-C build "linux-${_ksrcver}/sound/hda"
# upstream's cut-down Makefiles + patch_cirrus headers, then:
cd build/hda
patch -b -p1 <"$srcdir/snd_hda_macbookpro/patch_cs8409.c.diff"
patch -b -p1 <"$srcdir/snd_hda_macbookpro/patch_cs8409.h.diff"
}A working version is at Verified under There's a second benefit for a distro package: patching at build time means a Two smaller things
Coverage data pointConfirmed working on MacBookPro14,1 (codec subsystem |
omacom/omarchy#12689 (draft) plus omacom/omarchy-pkgs#249 would install davidjo's snd-hda-macbookpro-dkms on iMac18,x/19,x. It registers as snd_hda_macbookpro/0.1 -- our DKMS name, another version -- and audio_rival_dkms skipped every entry with our name, so the clash went unnoticed until a kernel update let the wrong build win updates/dkms (no headset capture, no remote buttons). - audio_rival_dkms reports our name with any other version, plus any other package building snd-hda-codec-cs8409, as before - a rival whose source tree a pacman package owns is removed with pacman -R; deleting its files left the package registered, and its next upgrade restored them - mod_audio_detect reports partial while a rival exists, so the status banner flags it right after the Omarchy update, before a kernel update - the 0.2 version lives in one constant, AUDIO_DKMS_VER; AUDIO_SRCROOT makes the source root overridable for testing Tested against a fake source root (ours only; plus davidjo 0.1; plus an other-named cs8409 driver; plus unrelated APFS DKMS) and on the live machine (no rival, audio still "applied"). The pacman -R branch is not exercised live: that needs the rival package installed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
snd-hda-macbookpro-dkmsfor the Cirrus CS8409 Apple speaker path (davidjo/snd_hda_macbookpro).wget/patchdeps, correctPACKAGE_NAMEinstall path) and widenspkgdesc/ comments for 2017–2019 iMacs as well as 2016–2017 MacBook Pros.MacBookPro13,x/14,xandiMac18,x/iMac19,x.Pins commit
6c324f6(verified on MacBookPro14,3 / linux 7.1.8). Same Apple CS8409 path applies to iMacs such as iMac18,3 (subsystem0x106b1000).source: localso an AUR sync does not replace it. Provides/conflicts withsnd-hda-macbookpro-dkms-git.Test plan
omarchy-pkg-add linux-headers snd-hda-macbookpro-dkms→ DKMS install succeeds → reboot → speakers workCan close #155 in favor of this once reviewed.
Made with Cursor