diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2025-11-13 13:33:24 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2025-11-13 13:33:24 +0000 |
| commit | 15d77c1fdcb1c7f022a21892dcb78990986f1a3c (patch) | |
| tree | 70aef882c41157122d6ba6e462cae76205ebb5b1 | |
| parent | b55adf9b261b91ddd3c7293720bbbbfb4ffe7066 (diff) | |
sound: Move mixer->modify_counter to more appropriate place
No functional change intended.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/dev/sound/pcm/mixer.c | 10 |
1 files 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; /* |
