From 1007463e60e937afbbd1eae559418ab3693feb1a Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 14 Oct 2023 11:12:17 +0900 Subject: [PATCH] Add udev rules Signed-off-by: Hector Martin --- 95-speakersafetyd.rules | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 95-speakersafetyd.rules diff --git a/95-speakersafetyd.rules b/95-speakersafetyd.rules new file mode 100644 index 0000000..728160b --- /dev/null +++ b/95-speakersafetyd.rules @@ -0,0 +1,8 @@ +SUBSYSTEM=="sound", DRIVERS=="snd-soc-macaudio", GOTO="speakersafetyd_macaudio" +GOTO="speakersafetyd_end" + +LABEL="speakersafetyd_macaudio" +KERNEL=="pcmC*D2c", ATTRS{id}=="J314", TAG+="systemd", ENV{SYSTEMD_WANTS}="speakersafetyd.service" +KERNEL=="pcmC*D2c", ATTRS{id}=="J413", TAG+="systemd", ENV{SYSTEMD_WANTS}="speakersafetyd.service" + +LABEL="speakersafetyd_end"