Commit d53611d2 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: dummy: Convert to new PCM copy ops

It's a dummy ops, so just replacing it.
Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 29d1a873
...@@ -644,15 +644,22 @@ static int alloc_fake_buffer(void) ...@@ -644,15 +644,22 @@ static int alloc_fake_buffer(void)
} }
static int dummy_pcm_copy(struct snd_pcm_substream *substream, static int dummy_pcm_copy(struct snd_pcm_substream *substream,
int channel, snd_pcm_uframes_t pos, int channel, unsigned long pos,
void __user *dst, snd_pcm_uframes_t count) void __user *dst, unsigned long bytes)
{
return 0; /* do nothing */
}
static int dummy_pcm_copy_kernel(struct snd_pcm_substream *substream,
int channel, unsigned long pos,
void *dst, unsigned long bytes)
{ {
return 0; /* do nothing */ return 0; /* do nothing */
} }
static int dummy_pcm_silence(struct snd_pcm_substream *substream, static int dummy_pcm_silence(struct snd_pcm_substream *substream,
int channel, snd_pcm_uframes_t pos, int channel, unsigned long pos,
snd_pcm_uframes_t count) unsigned long bytes)
{ {
return 0; /* do nothing */ return 0; /* do nothing */
} }
...@@ -683,8 +690,9 @@ static struct snd_pcm_ops dummy_pcm_ops_no_buf = { ...@@ -683,8 +690,9 @@ static struct snd_pcm_ops dummy_pcm_ops_no_buf = {
.prepare = dummy_pcm_prepare, .prepare = dummy_pcm_prepare,
.trigger = dummy_pcm_trigger, .trigger = dummy_pcm_trigger,
.pointer = dummy_pcm_pointer, .pointer = dummy_pcm_pointer,
.copy = dummy_pcm_copy, .copy_user = dummy_pcm_copy,
.silence = dummy_pcm_silence, .copy_kernel = dummy_pcm_copy_kernel,
.fill_silence = dummy_pcm_silence,
.page = dummy_pcm_page, .page = dummy_pcm_page,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment