1. 14 12月, 2011 22 次提交
  2. 13 12月, 2011 16 次提交
  3. 10 12月, 2011 2 次提交
    • M
      staging: line6: fixed ALSA/PCM interaction · 6b02a17e
      Markus Grabner 提交于
      The PCM subsystem in the Line6 driver is mainly used for PCM playback and
      capture by ALSA, but also has other tasks, most notably providing a
      low-latency software monitor for devices which don't support hardware
      monitoring (e.g., the TonePort series). This patch makes ALSA "play nicely"
      with the other components, i.e., prevents it from resetting the isochronous
      USB transfer while other PCM tasks (software monitoring) are running.
      Signed-off-by: NMarkus Grabner <grabner@icg.tugraz.at>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6b02a17e
    • S
      staging: line6: wait for urbs in snd_line6_prepare() · 665f3f50
      Stefan Hajnoczi 提交于
      The .trigger() pcm callbacks are not allowed to block and cannot wait
      until urbs have completed.  We need to ensure that stopping, preparing,
      and then restarting a stream always works.
      
      Currently the driver will sometimes return -EBUSY when restarting the
      stream because urbs have not completed yet.  This can be triggered by
      jackd from userspace.
      
      The solution is to wait on urbs in the .prepare() pcm callback since
      blocking is allowed in that callback.  This guarantees that all urbs are
      quiesced and ready to be submitted when the start trigger callback is
      invoked.
      Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com>
      Signed-off-by: NMarkus Grabner <grabner@icg.tugraz.at>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      665f3f50