Date: Sat, 25 Apr 2026 21:51:24 +0000 From: Christos Margiolis <christos@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: f9d4517b53bf - stable/15 - mixer(3): Rename _mixer_readvol() to mixer_readvol() Message-ID: <69ed375c.3e9e8.1e8fc3d5@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=f9d4517b53bf4b8828b7f5ef98e91a2da2f14b18 commit f9d4517b53bf4b8828b7f5ef98e91a2da2f14b18 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2026-04-18 11:50:04 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2026-04-25 21:51:18 +0000 mixer(3): Rename _mixer_readvol() to mixer_readvol() No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 1 week (cherry picked from commit c39237a4fd2b1472e452052103156c915942d070) --- lib/libmixer/mixer.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/libmixer/mixer.c b/lib/libmixer/mixer.c index 2be3a48eb755..d4c3bf5adf52 100644 --- a/lib/libmixer/mixer.c +++ b/lib/libmixer/mixer.c @@ -35,13 +35,11 @@ #define BASEPATH "/dev/mixer" -static int _mixer_readvol(struct mix_dev *); - /* * Fetch volume from the device. */ static int -_mixer_readvol(struct mix_dev *dev) +mixer_readvol(struct mix_dev *dev) { int v; @@ -120,7 +118,7 @@ dunit: dp->parent_mixer = m; dp->devno = i; dp->nctl = 0; - if (MIX_ISDEV(m, i) && _mixer_readvol(dp) < 0) + if (MIX_ISDEV(m, i) && mixer_readvol(dp) < 0) goto fail; (void)strlcpy(dp->name, names[i], sizeof(dp->name)); TAILQ_INIT(&dp->ctls); @@ -334,7 +332,7 @@ mixer_set_vol(struct mixer *m, mix_volume_t vol) v = MIX_VOLDENORM(vol.left) | MIX_VOLDENORM(vol.right) << 8; if (ioctl(m->fd, MIXER_WRITE(m->dev->devno), &v) < 0) return (-1); - if (_mixer_readvol(m->dev) < 0) + if (mixer_readvol(m->dev) < 0) return (-1); return (0);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69ed375c.3e9e8.1e8fc3d5>
