[PATCH] dmasound SOUND_PCM_READ_RATE

From: Geert Uytterhoeven (geert@linux-m68k.org)
Date: Sat Jul 26 2003 - 09:52:01 EST


dmasound: Implement missing SOUND_PCM_READ_RATE ioctl (from Richard Zidlicky)

--- linux-2.6.x/sound/oss/dmasound/dmasound_core.c Mon Jul 14 13:16:18 2003
+++ linux-m68k-2.6.x/sound/oss/dmasound/dmasound_core.c Wed Jul 23 18:01:30 2003
@@ -1210,6 +1210,8 @@
                         shared_resources_initialised = 0 ;
                 return result ;
                 break ;
+ case SOUND_PCM_READ_RATE:
+ return IOCTL_OUT(arg, dmasound.soft.speed);
         case SNDCTL_DSP_SPEED:
                 /* changing this on the fly will have weird effects on the sound.
                    Where there are rate conversions implemented in soft form - it

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:29 EST