]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dmasound SOUND_PCM_READ_RATE
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 26 Jul 2003 02:37:22 +0000 (19:37 -0700)
committerJens Axboe <axboe@suse.de>
Sat, 26 Jul 2003 02:37:22 +0000 (19:37 -0700)
dmasound: Implement missing SOUND_PCM_READ_RATE ioctl (from Richard Zidlicky)

sound/oss/dmasound/dmasound_core.c

index f8b10a89d56cebfe8154e453a397894d11032eab..a57d262414def8de4adde70a3151bc79fe4ca818 100644 (file)
@@ -1210,6 +1210,8 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
                        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