git: 8a6a769ddb38 - stable/15 - sound: Use GID_WHEEL/0666 instead of GID_AUDIO/0660 to create the mixer cdev

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Wed, 21 Oct 2026 20:23:48 UTC
The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a6a769ddb38ad7b4ec0c8fe6848d123e4e57c2d

commit 8a6a769ddb38ad7b4ec0c8fe6848d123e4e57c2d
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-10-21 20:17:04 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-10-21 20:21:58 +0000

    sound: Use GID_WHEEL/0666 instead of GID_AUDIO/0660 to create the mixer cdev
    
    This change got accidentally carried over after an MFC, because in all
    audio devices are now created with GID_AUDIO/0660 in -CURRENT.
    
    Fixes:          2b61245f5a16 ("sound: Simplify how snd_mixer is fetched and how the cdev is created")
    PR:             299683
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/sound/pcm/mixer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index e3782e7ace04..d8db02ab5950 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -682,8 +682,8 @@ mixer_make_dev(device_t dev)
 	make_dev_args_init(&devargs);
 	devargs.mda_devsw = &mixer_cdevsw;
 	devargs.mda_uid = UID_ROOT;
-	devargs.mda_gid = GID_AUDIO;
-	devargs.mda_mode = 0660;
+	devargs.mda_gid = GID_WHEEL;
+	devargs.mda_mode = 0666;
 	devargs.mda_si_drv1 = sc->mixer;
 	err = make_dev_s(&devargs, &sc->mixer->cdev, "mixer%d", unit);
 	if (err != 0) {