diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 03:02:09 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 03:02:09 +0000 |
commit | 60fe76f38605e0e2eedb436d0945af283029c4e0 (patch) | |
tree | a3ede82bb8b80dc9170f1a241baf58bc3081ab62 /audio | |
parent | 223d4670a0cf539a0e8cc6a23aad28a8340dded8 (diff) |
Fix wrong signedness, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3815 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio')
-rw-r--r-- | audio/alsaaudio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 101af3367e..77a08a1c58 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@ -86,9 +86,9 @@ static struct { }; struct alsa_params_req { - int freq; + unsigned int freq; audfmt_e fmt; - int nchannels; + unsigned int nchannels; unsigned int buffer_size; unsigned int period_size; }; @@ -285,7 +285,8 @@ static int alsa_open (int in, struct alsa_params_req *req, { snd_pcm_t *handle; snd_pcm_hw_params_t *hw_params; - int err, freq, nchannels; + int err; + unsigned int freq, nchannels; const char *pcm_name = in ? conf.pcm_name_in : conf.pcm_name_out; unsigned int period_size, buffer_size; snd_pcm_uframes_t obt_buffer_size; |