From f4ca58c0e62f7fe1a272726da45a399df401fed5 Mon Sep 17 00:00:00 2001
From: Joel Stanley <joel@jms.id.au>
Date: Wed, 27 Nov 2024 10:31:33 +1030
Subject: [PATCH] Add Microsoft Surface Laptop 7 13"

$ sudo bash qcom-firmware-extract
Mounting Windows partition nvme0n1p3...
Extracting firmware
	adsp_dtbs.elf
	adspr.jsn
	adsps.jsn
	adspua.jsn
	battmgr.jsn
	cdsp_dtbs.elf
	cdspr.jsn
	qcadsp8380.mbn
	qccdsp8380.mbn
	qcdxkmsuc8380.mbn
Building package qcom-x1e-firmware-extracted_20241127_arm64...
Installing qcom-x1e-firmware-extracted_20241127_arm64...
Done! Reboot to load the added firmware files.
umount: /tmp/fwfetch.9MHC7PrF/dislocker: not mounted

$ dpkg -L qcom-x1e-firmware-extracted
/.
/lib
/lib/firmware
/lib/firmware/qcom
/lib/firmware/qcom/x1e80100
/lib/firmware/qcom/x1e80100/microsoft
/lib/firmware/qcom/x1e80100/microsoft/Romulus
/lib/firmware/qcom/x1e80100/microsoft/Romulus/adsp_dtbs.elf
/lib/firmware/qcom/x1e80100/microsoft/Romulus/adspr.jsn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/adsps.jsn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/adspua.jsn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/battmgr.jsn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/cdsp_dtbs.elf
/lib/firmware/qcom/x1e80100/microsoft/Romulus/cdspr.jsn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcadsp8380.mbn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/qccdsp8380.mbn
/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcdxkmsuc8380.mbn
---
 qcom-firmware-extract | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qcom-firmware-extract b/qcom-firmware-extract
index 389ea10..f95af0e 100644
--- a/qcom-firmware-extract
+++ b/qcom-firmware-extract
@@ -25,6 +25,9 @@ case "$device_model" in
 	"Samsung Galaxy Book4 Edge")
 		device_path="SAMSUNG/galaxy-book4-edge"
 		;;
+	"Microsoft Surface Laptop 7 (13.8 inch)")
+		device_path="microsoft/Romulus"
+		;;
 	*)
 		printf "error: Device is currently not supported" >&2
 		;;
-- 
2.45.2

