ALSA: seq: oss: Don't drain at closing a client
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / sound / core / seq / oss / seq_oss_init.c
index b3f39b5ed74234ff92d31162fc3af067a523c1ba..f9e09e4582278fe1babb061353e5a3686304d966 100644 (file)
@@ -456,23 +456,6 @@ snd_seq_oss_release(struct seq_oss_devinfo *dp)
 }
 
 
-/*
- * Wait until the queue is empty (if we don't have nonblock)
- */
-void
-snd_seq_oss_drain_write(struct seq_oss_devinfo *dp)
-{
-       if (! dp->timer->running)
-               return;
-       if (is_write_mode(dp->file_mode) && !is_nonblock_mode(dp->file_mode) &&
-           dp->writeq) {
-               debug_printk(("syncing..\n"));
-               while (snd_seq_oss_writeq_sync(dp->writeq))
-                       ;
-       }
-}
-
-
 /*
  * reset sequencer devices
  */