svn commit: r193779 - head/sys/dev/sound/sbus
Ariff Abdullah
ariff at FreeBSD.org
Mon Jun 8 23:24:03 UTC 2009
Author: ariff
Date: Mon Jun 8 23:24:01 2009
New Revision: 193779
URL: http://svn.freebsd.org/changeset/base/193779
Log:
Fix compile time warning on sparc64, thanks to strict kobj signatures checking.
Noticed by: bz
Modified:
head/sys/dev/sound/sbus/cs4231.c
Modified: head/sys/dev/sound/sbus/cs4231.c
==============================================================================
--- head/sys/dev/sound/sbus/cs4231.c Mon Jun 8 23:03:37 2009 (r193778)
+++ head/sys/dev/sound/sbus/cs4231.c Mon Jun 8 23:24:01 2009 (r193779)
@@ -173,15 +173,15 @@ static void cs4231_mixer_set_value(struc
const struct mix_table *, u_int8_t);
static int cs4231_mixer_set(struct snd_mixer *, u_int32_t, u_int32_t,
u_int32_t);
-static int cs4231_mixer_setrecsrc(struct snd_mixer *, u_int32_t);
+static u_int32_t cs4231_mixer_setrecsrc(struct snd_mixer *, u_int32_t);
static void *cs4231_chan_init(kobj_t, void *, struct snd_dbuf *,
struct pcm_channel *, int);
static int cs4231_chan_setformat(kobj_t, void *, u_int32_t);
-static int cs4231_chan_setspeed(kobj_t, void *, u_int32_t);
+static u_int32_t cs4231_chan_setspeed(kobj_t, void *, u_int32_t);
static void cs4231_chan_fs(struct cs4231_softc *, int, u_int8_t);
-static int cs4231_chan_setblocksize(kobj_t, void *, u_int32_t);
+static u_int32_t cs4231_chan_setblocksize(kobj_t, void *, u_int32_t);
static int cs4231_chan_trigger(kobj_t, void *, int);
-static int cs4231_chan_getptr(kobj_t, void *);
+static u_int32_t cs4231_chan_getptr(kobj_t, void *);
static struct pcmchan_caps *
cs4231_chan_getcaps(kobj_t, void *);
static void cs4231_trigger(struct cs4231_channel *);
@@ -982,7 +982,7 @@ cs4231_mixer_set(struct snd_mixer *m, u_
return (left | (right << 8));
}
-static int
+static u_int32_t
cs4231_mixer_setrecsrc(struct snd_mixer *m, u_int32_t src)
{
struct cs4231_softc *sc;
@@ -1103,7 +1103,7 @@ cs4231_chan_setformat(kobj_t obj, void *
return (0);
}
-static int
+static u_int32_t
cs4231_chan_setspeed(kobj_t obj, void *data, u_int32_t speed)
{
typedef struct {
@@ -1253,7 +1253,7 @@ cs4231_chan_fs(struct cs4231_softc *sc,
}
}
-static int
+static u_int32_t
cs4231_chan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
{
struct cs4231_softc *sc;
@@ -1299,13 +1299,12 @@ cs4231_chan_trigger(kobj_t obj, void *da
return (0);
}
-static int
+static u_int32_t
cs4231_chan_getptr(kobj_t obj, void *data)
{
struct cs4231_softc *sc;
struct cs4231_channel *ch;
- u_int32_t cur;
- int ptr, sz;
+ u_int32_t cur, ptr, sz;
ch = data;
sc = ch->parent;
More information about the svn-src-head
mailing list