]> git.hungrycats.org Git - linux/commitdiff
ALSA CVS update
authorJaroslav Kysela <perex@suse.cz>
Wed, 20 Aug 2003 23:19:11 +0000 (01:19 +0200)
committerJaroslav Kysela <perex@suse.cz>
Wed, 20 Aug 2003 23:19:11 +0000 (01:19 +0200)
D:2003/08/06 18:44:50
A:Takashi Iwai <tiwai@suse.de>
F:pci/es1968.c:1.47->1.48
L:removed buggy copy callback.
L:the standard copy routine works properly.

sound/pci/es1968.c

index 0b2a5a91b46719cd29ae6d25d33d477696d15675..18d684f0a75cb8da282fd33532ddd097df143a2d 100644 (file)
@@ -1642,28 +1642,6 @@ static int snd_es1968_playback_open(snd_pcm_substream_t *substream)
        return 0;
 }
 
-static int snd_es1968_capture_copy(snd_pcm_substream_t *substream,
-                                  int channel, snd_pcm_uframes_t pos,
-                                  void *buf, snd_pcm_uframes_t count)
-{
-       //es1968_t *chip = snd_pcm_substream_chip(substream);
-       snd_pcm_runtime_t *runtime = substream->runtime;
-       esschan_t *es = snd_magic_cast(esschan_t, runtime->private_data, return -ENXIO);
-       char *src = runtime->dma_area;
-
-       if (runtime->channels == 1)
-               return copy_to_user(buf, src + pos, count) ? -EFAULT : 0;
-       else {
-               count /= 2;
-               pos /= 2;
-               if (copy_to_user(buf, src + pos, count))
-                       return -EFAULT;
-               if (copy_to_user(buf + count, src + pos + es->dma_size/2, count))
-                       return -EFAULT;
-               return 0;
-       }
-}
-
 static int snd_es1968_capture_open(snd_pcm_substream_t *substream)
 {
        snd_pcm_runtime_t *runtime = substream->runtime;
@@ -1778,7 +1756,6 @@ static snd_pcm_ops_t snd_es1968_capture_ops = {
        .prepare =      snd_es1968_pcm_prepare,
        .trigger =      snd_es1968_pcm_trigger,
        .pointer =      snd_es1968_pcm_pointer,
-       .copy =         snd_es1968_capture_copy,
 };