# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2026 3xHelix # The AE-9 driver as one DKMS package for RPM distributions without akmods: # openSUSE (Tumbleweed, Slowroll), RHEL/AlmaLinux/Rocky 10 with EPEL's dkms. # Fedora uses the COPR akmod packages (creative-ae9, akmod-creative-ae9) # instead; this conflicts with them. Plain paths, no distro-specific macros, # so the same .noarch.rpm installs everywhere. %global srcname SbAe9-Drv %global modname snd-hda-codec-creative-ae9 Name: creative-ae9-dkms Version: 0.12.0 Release: 1 Summary: Creative Sound Blaster AE-9 driver (DKMS) License: GPL-2.0-or-later URL: https://github.com/3xHelix/%{srcname} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch Requires: dkms Requires: python3 Requires: make Requires: gcc Recommends: innoextract Conflicts: creative-ae9 Conflicts: akmod-creative-ae9 %description Out-of-tree Linux driver for the Creative Sound Blaster AE-9: playback up to 384 kHz, 5.1, SBX/DSP effects and EQ, speaker setup, headphone profiles, recording, optical in and out, What U Hear and the ACM head unit. Both card versions (IDT and ASMedia bridge). DKMS builds the module for every installed kernel that has its headers (openSUSE: kernel-default-devel; RHEL family: kernel-devel). Also installs the boot setup that hands the card to this driver, the PipeWire profile set, ae9-get-firmware, ae9-full-dump, ae9-dsp-snapshot and ae9-read-stress. The DSP firmware is Creative's and not included: run ae9-get-firmware with Creative's AE-9 installer afterwards. %prep %setup -q -n %{srcname}-%{version} %build %install d=%{buildroot}/usr/src/%{modname}-%{version} install -d $d install -m 644 Makefile *.c *.h $d/ sed 's/^PACKAGE_VERSION=.*/PACKAGE_VERSION="%{version}"/' dkms.conf > $d/dkms.conf install -D -m 644 config/00-ae9-override.rules %{buildroot}/usr/lib/udev/rules.d/00-ae9-override.rules install -D -m 644 config/89-ae9-pipewire.rules %{buildroot}/usr/lib/udev/rules.d/89-ae9-pipewire.rules install -D -m 644 config/ae9-override.conf %{buildroot}/usr/lib/modprobe.d/ae9-override.conf install -D -m 644 config/ae9-omit.conf %{buildroot}/usr/lib/dracut/dracut.conf.d/ae9-omit.conf install -D -m 644 config/ae9-modules-load.conf %{buildroot}/usr/lib/modules-load.d/creative-ae9.conf install -D -m 644 config/creative-ae9.conf %{buildroot}/usr/share/alsa-card-profile/mixer/profile-sets/creative-ae9.conf install -D -m 644 config/50-ae9-safe-volume.conf %{buildroot}/usr/share/wireplumber/wireplumber.conf.d/50-ae9-safe-volume.conf install -D -m 755 scripts/ae9-get-firmware.sh %{buildroot}/usr/bin/ae9-get-firmware install -D -m 755 scripts/ae9-full-dump.sh %{buildroot}/usr/bin/ae9-full-dump install -D -m 755 scripts/ae9-dsp-snapshot.sh %{buildroot}/usr/bin/ae9-dsp-snapshot install -D -m 755 scripts/ae9-read-stress.sh %{buildroot}/usr/bin/ae9-read-stress install -D -m 755 scripts/ae9-optical-passthrough %{buildroot}/usr/bin/ae9-optical-passthrough install -d %{buildroot}/usr/share/creative-ae9/examples install -m 644 extract_firmware.py extract_overlay.py extract_hpeq.py %{buildroot}/usr/share/creative-ae9/ for f in ae9-options.conf 60-ae9-headroom.conf 61-ae9-names.conf ae9-optical-in.conf ae9-what-u-hear.conf ae9-rear-rca-in.conf; do install -m 644 config/$f %{buildroot}/usr/share/creative-ae9/examples/ done %post dkms add -m %{modname} -v %{version} >/dev/null 2>&1 || : for k in /lib/modules/*; do k=${k##*/} [ -e /lib/modules/$k/build ] || continue dkms install -m %{modname} -v %{version} -k "$k" || echo "creative-ae9-dkms: DKMS build for $k failed (see above)" >&2 done udevadm control --reload >/dev/null 2>&1 || : if ! ae9-get-firmware --check >/dev/null 2>&1; then echo "creative-ae9: the DSP firmware isn't included (it's Creative's). Install it, and" echo "the headphone profiles, from Creative's AE-9 installer (needs innoextract):" echo " sudo ae9-get-firmware AECMDMasterInstaller_3.4.92.00.exe" echo "(or point it at CtxHda.sys), then power the PC fully off (PSU off) and on." fi %preun # this version leaves DKMS on removal and on upgrade (the new one adds itself) dkms remove -m %{modname} -v %{version} --all >/dev/null 2>&1 || : %postun udevadm control --reload >/dev/null 2>&1 || : %files %license COPYING %doc README.md CHANGELOG.md /usr/src/%{modname}-%{version}/ /usr/lib/udev/rules.d/00-ae9-override.rules /usr/lib/udev/rules.d/89-ae9-pipewire.rules /usr/lib/modprobe.d/ae9-override.conf %dir /usr/lib/dracut %dir /usr/lib/dracut/dracut.conf.d /usr/lib/dracut/dracut.conf.d/ae9-omit.conf /usr/lib/modules-load.d/creative-ae9.conf %dir /usr/share/alsa-card-profile %dir /usr/share/alsa-card-profile/mixer %dir /usr/share/alsa-card-profile/mixer/profile-sets /usr/share/alsa-card-profile/mixer/profile-sets/creative-ae9.conf %dir /usr/share/wireplumber %dir /usr/share/wireplumber/wireplumber.conf.d /usr/share/wireplumber/wireplumber.conf.d/50-ae9-safe-volume.conf /usr/bin/ae9-get-firmware /usr/bin/ae9-full-dump /usr/bin/ae9-dsp-snapshot /usr/bin/ae9-read-stress /usr/bin/ae9-optical-passthrough /usr/share/creative-ae9/ %changelog * Sun Nov 08 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.12.0-1 - Driver 0.12.0: separate optical output with passthrough (DarkNikGr), headphone-profile uploads no longer cut short, quieter login, DKMS for every installed kernel * Sun Nov 08 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.11.3-1 - Driver 0.11.3: no DSP control write from a bad read; snapshot marks bad reads * Sun Nov 08 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.11.2-1 - Driver 0.11.2: ae9-dsp-snapshot and ae9-read-stress commands for reports * Sun Nov 08 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.11.1-1 - Driver 0.11.1: builds on kernels before 6.13 again (Ubuntu 24.04, EPEL 10) * Sun Nov 08 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.11.0-1 - Driver 0.11.0: safe headphone-profile uploads, EQ headroom, output switch fix in DSP mode, 7 DAC filters, optical in without a signal, What U Hear / Rear RCA In / Optical In as card-profile sources, -36 dB start volume * Sat Nov 07 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.10.1-1 - Driver 0.10.1: early module load (modules-load.d), Rear RCA In, reliable headphone profiles, firmware in creative-ae9/, Sub Boost switch * Sat Nov 07 2026 3xHelix <86426476+3xHelix@users.noreply.github.com> - 0.10.0-1 - First DKMS package: openSUSE and RHEL-family (EPEL dkms)