git: 15d77c1fdcb1 - main - sound: Move mixer->modify_counter to more appropriate place

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Thu, 13 Nov 2025 13:33:37 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=15d77c1fdcb1c7f022a21892dcb78990986f1a3c

commit 15d77c1fdcb1c7f022a21892dcb78990986f1a3c
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-11-13 13:33:24 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-11-13 13:33:24 +0000

    sound: Move mixer->modify_counter to more appropriate place
    
    No functional change intended.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/dev/sound/pcm/mixer.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index 5fa3ff5cc83c..adbde195c34c 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -65,11 +65,6 @@ struct snd_mixer {
 	char name[MIXER_NAMELEN];
 	struct mtx *lock;
 	oss_mixer_enuminfo enuminfo;
-	/** 
-	 * Counter is incremented when applications change any of this
-	 * mixer's controls.  A change in value indicates that persistent
-	 * mixer applications should update their displays.
-	 */
 	int modify_counter;
 };
 
@@ -1474,6 +1469,11 @@ mixer_oss_mixerinfo(struct cdev *i_dev, oss_mixerinfo *mi)
 		mi->dev = i;
 		snprintf(mi->id, sizeof(mi->id), "mixer%d", i);
 		strlcpy(mi->name, m->name, sizeof(mi->name));
+		/**
+		 * Counter is incremented when applications change any of this
+		 * mixer's controls.  A change in value indicates that
+		 * persistent mixer applications should update their displays.
+		 */
 		mi->modify_counter = m->modify_counter;
 		mi->card_number = i;
 		/*