Skip to content

Commit

Permalink
[ALSA] sound/pci/pcxhr/pcxhr.c: fix warnings
Browse files Browse the repository at this point in the history
sparc64:

sound/pci/pcxhr/pcxhr.c: In function `pcxhr_update_r_buffer':
sound/pci/pcxhr/pcxhr.c:459: warning: cast to pointer from integer of different size
sound/pci/pcxhr/pcxhr.c: In function `pcxhr_trigger_tasklet':
sound/pci/pcxhr/pcxhr.c:628: warning: long int format, different type arg (arg 4)

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Andrew Morton authored and Takashi Iwai committed Apr 24, 2008
1 parent ee0abef commit ff73317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/pcxhr/pcxhr.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static int pcxhr_update_r_buffer(struct pcxhr_stream *stream)

snd_printdd("pcxhr_update_r_buffer(pcm%c%d) : addr(%p) bytes(%zx) subs(%d)\n",
is_capture ? 'c' : 'p',
chip->chip_idx, (void*)subs->runtime->dma_addr,
chip->chip_idx, (void *)(long)subs->runtime->dma_addr,
subs->runtime->dma_bytes, subs->number);

pcxhr_init_rmh(&rmh, CMD_UPDATE_R_BUFFERS);
Expand Down Expand Up @@ -626,7 +626,7 @@ static void pcxhr_trigger_tasklet(unsigned long arg)
#ifdef CONFIG_SND_DEBUG_DETECT
do_gettimeofday(&my_tv2);
snd_printdd("***TRIGGER TASKLET*** TIME = %ld (err = %x)\n",
my_tv2.tv_usec - my_tv1.tv_usec, err);
(long)(my_tv2.tv_usec - my_tv1.tv_usec), err);
#endif
}

Expand Down

0 comments on commit ff73317

Please sign in to comment.