From 36a5dff0ea4dc41cb9af101c3a23390935399536 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Thu, 24 Apr 2025 15:11:55 -0400 Subject: [PATCH] Better error message. --- src/cm108.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cm108.c b/src/cm108.c index 787e7bb..9ba8d96 100644 --- a/src/cm108.c +++ b/src/cm108.c @@ -1061,8 +1061,12 @@ static int cm108_write (char *name, int iomask, int iodata) dw_printf (" crw-rw---- 1 root audio 247, 0 Oct 6 19:24 %s\n", name); dw_printf ("rather than root-only access like this:\n"); dw_printf (" crw------- 1 root root 247, 0 Sep 24 09:40 %s\n", name); + dw_printf ("This permission should be set by one of:\n"); + dw_printf ("/etc/udev/rules.d/99-direwolf-cmedia.rules\n"); + dw_printf ("/usr/lib/udev/rules.d/99-direwolf-cmedia.rules\n"); + dw_printf ("which should be created by the installation process.\n"); + dw_printf ("Your account must be in the 'audio' group.\n"); } - close (fd); return (-1); }