1. 14 1月, 2014 3 次提交
  2. 23 12月, 2013 1 次提交
  3. 20 12月, 2013 1 次提交
  4. 06 12月, 2013 1 次提交
  5. 27 11月, 2013 1 次提交
  6. 14 11月, 2013 1 次提交
  7. 12 11月, 2013 1 次提交
    • A
      ALSA: usb: Fix wrong mapping of RLC and RRC channels · 71373fdd
      Anssi Hannula 提交于
      According to USB Audio spec v2 bits 25 and 26 of bmChannelConfig are
      "Back Left of Center - BLC" and "Back Right of Center - BRC",
      respectively.
      
      They are currently assigned to ALSA channels BLC/BRC. However, the ALSA
      BLC/BRC are actually the rather nonsensical "bottom left center" and
      "bottom right center", so the channels will be assigned wrongly. The
      comments in the USB code are also similarly wrong, so this is not
      readily apparent without looking at the actual specification.
      
      Fix the channel mapping by mapping bits 25 and 26 to RLC (Rear Left
      Center) and RRC (Rear Right Center), respectively, instead.
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      71373fdd
  8. 05 11月, 2013 3 次提交
  9. 29 10月, 2013 1 次提交
    • T
      ALSA: 6fire: Fix probe of multiple cards · 9b389a8a
      Takashi Iwai 提交于
      The probe code of snd-usb-6fire driver overrides the devices[] pointer
      wrongly without checking whether it's already occupied or not.  This
      would screw up the device disconnection later.
      
      Spotted by coverity CID 141423.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9b389a8a
  10. 15 10月, 2013 1 次提交
    • T
      ALSA: us122l: Fix pcm_usb_stream mmapping regression · ac536a84
      Takashi Iwai 提交于
      The pcm_usb_stream plugin requires the mremap explicitly for the read
      buffer, as it expands itself once after reading the required size.
      But the commit [314e51b9: mm: kill vma flag VM_RESERVED and
      mm->reserved_vm counter] converted blindly to a combination of
      VM_DONTEXPAND | VM_DONTDUMP like other normal drivers, and this
      resulted in the failure of mremap().
      
      For fixing this regression, we need to remove VM_DONTEXPAND for the
      read-buffer mmap.
      Reported-and-tested-by: NJames Miller <jamesstewartmiller@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ac536a84
  11. 09 10月, 2013 1 次提交
  12. 07 10月, 2013 9 次提交
  13. 02 10月, 2013 1 次提交
  14. 30 9月, 2013 1 次提交
  15. 26 9月, 2013 2 次提交
    • A
      ALSA: improve buffer size computations for USB PCM audio · 976b6c06
      Alan Stern 提交于
      This patch changes the way URBs are allocated and their sizes are
      determined for PCM playback in the snd-usb-audio driver.  Currently
      the driver allocates too few URBs for endpoints that don't use
      implicit sync, making underruns more likely to occur.  This may be a
      holdover from before I/O delays could be measured accurately; in any
      case, it is no longer necessary.
      
      The patch allocates as many URBs as possible, subject to four
      limitations:
      
      	The total number of URBs for the endpoint is not allowed to
      	exceed MAX_URBS (which the patch increases from 8 to 12).
      
      	The total number of packets per URB is not allowed to exceed
      	MAX_PACKS (or MAX_PACKS_HS for high-speed devices), which is
      	decreased from 20 to 6.
      
      	The total duration of queued data is not allowed to exceed
      	MAX_QUEUE, which is decreased from 24 ms to 18 ms.
      
      	The total number of ALSA frames in the output queue is not
      	allowed to exceed the ALSA buffer size.
      
      The last requirement is the hardest to implement.  Currently the
      number of URBs needed to fill a buffer cannot be determined in
      advance, because a buffer contains a fixed number of frames whereas
      the number of frames in an URB varies to match shifts in the device's
      clock rate.  To solve this problem, the patch changes the logic for
      deciding how many packets an URB should contain.  Rather than using as
      many as possible without exceeding an ALSA period boundary, now the
      driver uses only as many packets as needed to transfer a predetermined
      number of frames.  As a result, unless the device's clock has an
      exceedingly variable rate, the number of URBs making up each period
      (and hence each buffer) will remain constant.
      
      The overall effect of the patch is that playback works better in
      low-latency settings.  The user can still specify values for
      frames/period and periods/buffer that exceed the capabilities of the
      hardware, of course.  But for values that are within those
      capabilities, the performance will be improved.  For example, testing
      shows that a high-speed device can handle 32 frames/period and 3
      periods/buffer at 48 KHz, whereas the current driver starts to get
      glitchy at 64 frames/period and 2 periods/buffer.
      
      A side effect of these changes is that the "nrpacks" module parameter
      is no longer used.  The patch removes it.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Clemens Ladisch <clemens@ladisch.de>
      Tested-by: NDaniel Mack <zonque@gmail.com>
      Tested-by: NEldad Zack <eldad@fogrefinery.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      976b6c06
    • P
      ALSA: Fix assignment of 0/1 to bool variables · e0f17c75
      Peter Senna Tschudin 提交于
      Convert 0 to false and 1 to true when assigning values to bool
      variables. Inspired by commit 3db1cd5c.
      
      The simplified semantic patch that find this problem is as
      follows (http://coccinelle.lip6.fr/):
      
      @@
      bool b;
      @@
      (
      -b = 0
      +b = false
      |
      -b = 1
      +b = true
      )
      Signed-off-by: NPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e0f17c75
  16. 12 8月, 2013 4 次提交
  17. 08 8月, 2013 2 次提交
  18. 07 8月, 2013 1 次提交
  19. 06 8月, 2013 5 次提交