diff options
author | netchild <netchild@FreeBSD.org> | 2006-07-17 17:43:06 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-07-17 17:43:06 +0000 |
commit | 07bf4cebfe7f3d86f3947e68287fa1602bc40d07 (patch) | |
tree | 97a302b472e6fa20ea03d05a1d95e84098332ded /sys/dev/sound/pcm | |
parent | e3e18f6aa5dc73cb52799f498201226b56f2f131 (diff) | |
download | FreeBSD-src-07bf4cebfe7f3d86f3947e68287fa1602bc40d07.zip FreeBSD-src-07bf4cebfe7f3d86f3947e68287fa1602bc40d07.tar.gz |
Rename some variables. This fixes some (but not all) problems on the way
for WARNS > 2 cleanlyness.
Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r-- | sys/dev/sound/pcm/buffer.c | 4 | ||||
-rw-r--r-- | sys/dev/sound/pcm/buffer.h | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 8 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sound.h | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index b8570f7..0be8741 100644 --- a/sys/dev/sound/pcm/buffer.c +++ b/sys/dev/sound/pcm/buffer.c @@ -399,11 +399,11 @@ sndbuf_getxrun(struct snd_dbuf *b) } void -sndbuf_setxrun(struct snd_dbuf *b, unsigned int cnt) +sndbuf_setxrun(struct snd_dbuf *b, unsigned int xrun) { SNDBUF_LOCKASSERT(b); - b->xrun = cnt; + b->xrun = xrun; } unsigned int diff --git a/sys/dev/sound/pcm/buffer.h b/sys/dev/sound/pcm/buffer.h index 7b2bffb..dbbabd9 100644 --- a/sys/dev/sound/pcm/buffer.h +++ b/sys/dev/sound/pcm/buffer.h @@ -93,7 +93,7 @@ void sndbuf_setrun(struct snd_dbuf *b, int go); struct selinfo *sndbuf_getsel(struct snd_dbuf *b); unsigned int sndbuf_getxrun(struct snd_dbuf *b); -void sndbuf_setxrun(struct snd_dbuf *b, unsigned int cnt); +void sndbuf_setxrun(struct snd_dbuf *b, unsigned int xrun); unsigned int sndbuf_gethwptr(struct snd_dbuf *b); void sndbuf_sethwptr(struct snd_dbuf *b, unsigned int ptr); unsigned int sndbuf_getfree(struct snd_dbuf *b); diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index e203013..6078758 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -796,7 +796,7 @@ pcm_getdevinfo(device_t dev) } unsigned int -pcm_getbuffersize(device_t dev, unsigned int min, unsigned int deflt, unsigned int max) +pcm_getbuffersize(device_t dev, unsigned int minbufsz, unsigned int deflt, unsigned int maxbufsz) { struct snddev_info *d = device_get_softc(dev); int sz, x; @@ -804,10 +804,10 @@ pcm_getbuffersize(device_t dev, unsigned int min, unsigned int deflt, unsigned i sz = 0; if (resource_int_value(device_get_name(dev), device_get_unit(dev), "buffersize", &sz) == 0) { x = sz; - RANGE(sz, min, max); + RANGE(sz, minbufsz, maxbufsz); if (x != sz) - device_printf(dev, "'buffersize=%d' hint is out of range (%d-%d), using %d\n", x, min, max, sz); - x = min; + device_printf(dev, "'buffersize=%d' hint is out of range (%d-%d), using %d\n", x, minbufsz, maxbufsz, sz); + x = minbufsz; while (x < sz) x <<= 1; if (x > sz) diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index dd4af63..045e1e5 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -222,7 +222,7 @@ int pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch); int pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch); int pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo); -unsigned int pcm_getbuffersize(device_t dev, unsigned int min, unsigned int deflt, unsigned int max); +unsigned int pcm_getbuffersize(device_t dev, unsigned int minbufsz, unsigned int deflt, unsigned int maxbufsz); int pcm_register(device_t dev, void *devinfo, int numplay, int numrec); int pcm_unregister(device_t dev); int pcm_setstatus(device_t dev, char *str); |