diff options
Diffstat (limited to 'sound/drivers/dummy.c')
-rw-r--r-- | sound/drivers/dummy.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 172dacd925f5..dd5ed037adf2 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -644,15 +644,22 @@ static int alloc_fake_buffer(void) | |||
644 | } | 644 | } |
645 | 645 | ||
646 | static int dummy_pcm_copy(struct snd_pcm_substream *substream, | 646 | static int dummy_pcm_copy(struct snd_pcm_substream *substream, |
647 | int channel, snd_pcm_uframes_t pos, | 647 | int channel, unsigned long pos, |
648 | void __user *dst, snd_pcm_uframes_t count) | 648 | void __user *dst, unsigned long bytes) |
649 | { | ||
650 | return 0; /* do nothing */ | ||
651 | } | ||
652 | |||
653 | static int dummy_pcm_copy_kernel(struct snd_pcm_substream *substream, | ||
654 | int channel, unsigned long pos, | ||
655 | void *dst, unsigned long bytes) | ||
649 | { | 656 | { |
650 | return 0; /* do nothing */ | 657 | return 0; /* do nothing */ |
651 | } | 658 | } |
652 | 659 | ||
653 | static int dummy_pcm_silence(struct snd_pcm_substream *substream, | 660 | static int dummy_pcm_silence(struct snd_pcm_substream *substream, |
654 | int channel, snd_pcm_uframes_t pos, | 661 | int channel, unsigned long pos, |
655 | snd_pcm_uframes_t count) | 662 | unsigned long bytes) |
656 | { | 663 | { |
657 | return 0; /* do nothing */ | 664 | return 0; /* do nothing */ |
658 | } | 665 | } |
@@ -683,8 +690,9 @@ static struct snd_pcm_ops dummy_pcm_ops_no_buf = { | |||
683 | .prepare = dummy_pcm_prepare, | 690 | .prepare = dummy_pcm_prepare, |
684 | .trigger = dummy_pcm_trigger, | 691 | .trigger = dummy_pcm_trigger, |
685 | .pointer = dummy_pcm_pointer, | 692 | .pointer = dummy_pcm_pointer, |
686 | .copy = dummy_pcm_copy, | 693 | .copy_user = dummy_pcm_copy, |
687 | .silence = dummy_pcm_silence, | 694 | .copy_kernel = dummy_pcm_copy_kernel, |
695 | .fill_silence = dummy_pcm_silence, | ||
688 | .page = dummy_pcm_page, | 696 | .page = dummy_pcm_page, |
689 | }; | 697 | }; |
690 | 698 | ||