summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-06-06 16:59:47 +0200
committerTakashi Iwai <tiwai@suse.de>2008-06-06 16:59:47 +0200
commitb6af5e182292f30cd001eeded65d56f4de4c9a9f (patch)
treebbe35d46f9f5f9b329249692f87309820c60dfc0
parentfce17b8c47f3c07ccf7277f9c229699204f23a0a (diff)
downloadalsa-lib-b6af5e182292f30cd001eeded65d56f4de4c9a9f.tar.gz
Fix compile warnings in pcm_hw.c
Two trivial compile warning fixes: - Add a missing return to snd_pcm_hw_clear_timer_queue() - params->info is no long but int The second one might have hit already on 64bit machine, but alas, no one didn't notice it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--src/pcm/pcm_hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c
index 9d2d38a5..1e1889c3 100644
--- a/src/pcm/pcm_hw.c
+++ b/src/pcm/pcm_hw.c
@@ -157,6 +157,7 @@ static int snd_pcm_hw_clear_timer_queue(snd_pcm_hw_t *hw)
snd_timer_tread_t rbuf[4];
snd_timer_read(hw->period_timer, rbuf, sizeof(rbuf));
}
+ return 0;
}
static int snd_pcm_hw_poll_descriptors_count(snd_pcm_t *pcm ATTRIBUTE_UNUSED)
@@ -300,7 +301,7 @@ static int snd_pcm_hw_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
return err;
}
- if (params->info != ~0UL) {
+ if (params->info != ~0U) {
params->info &= ~0xf0000000;
params->info |= (pcm->monotonic ? SND_PCM_INFO_MONOTONIC : 0);
}