25 Mar
2007
25 Mar
'07
6:52 p.m.
This patch is against the latest -mm snapshot.
Regards, Michal
--
Michal K. K. Piotrowski
LTG - Linux Testers Group (PL)
(http://www.stardust.webpages.pl/ltg/)
LTG - Linux Testers Group (EN)
(http://www.stardust.webpages.pl/linux_testers_group_en/)
Signed-off-by: Michal Piotrowski michal.k.k.piotrowski@gmail.com
--- linux-work5/sound/pci/pcxhr/pcxhr.c 2007-03-25 00:31:00.000000000 +0100
+++ linux-work3/sound/pci/pcxhr/pcxhr.c 2007-03-25 14:45:33.000000000 +0200
@@ -477,26 +477,6 @@ static int pcxhr_update_r_buffer(struct
return err;
}
-
-#if 0
-static int pcxhr_pipe_sample_count(struct pcxhr_stream *stream, snd_pcm_uframes_t *sample_count)
-{
- struct pcxhr_rmh rmh;
- int err;
- pcxhr_t *chip = snd_pcm_substream_chip(stream->substream);
- pcxhr_init_rmh(&rmh, CMD_PIPE_SAMPLE_COUNT);
- pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0,
- 1<<stream->pipe->first_audio);
- err = pcxhr_send_msg(chip->mgr, &rmh);
- if (err == 0) {
- *sample_count = ((snd_pcm_uframes_t)rmh.stat[0]) << 24;
- *sample_count += (snd_pcm_uframes_t)rmh.stat[1];
- }
- snd_printdd("PIPE_SAMPLE_COUNT = %lx\n", *sample_count);
- return err;
-}
-#endif
-
static inline int pcxhr_stream_scheduled_get_pipe(struct pcxhr_stream *stream,
struct pcxhr_pipe **pipe)
{