1. 15 6月, 2018 1 次提交
  2. 13 6月, 2018 3 次提交
  3. 12 6月, 2018 1 次提交
  4. 04 6月, 2018 1 次提交
  5. 29 5月, 2018 1 次提交
    • T
      ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers · f274baa4
      Takashi Iwai 提交于
      Currently, USB-audio driver allocates the PCM buffer via vmalloc(), as
      this serves merely as an intermediate buffer that is copied to each
      URB transfer buffer.  This works well in general on x86, but on some
      archs this may result in cache coherency issues when mmap is used.
      OTOH, it works also on such arch unless mmap is used.
      
      This patch is a step for mitigating the inconvenience; a new module
      option "use_vmalloc" is provided so that user can choose to allocate
      the DMA coherent buffer instead of the existing vmalloc buffer.
      The drawback is that it'd be the standard dma_alloc_coherent() calls
      and the system would require contiguous pages on non-x86 archs.
      
      Note that it's a global option and not dynamically switchable since
      the buffer is pre-allocated at the probe time.  In theory, it's
      possible to be switchable, but it'd be trickier and racier.
      
      As default use_vmalloc option is set to true, so that the old behavior
      is kept.  For allowing the coherent mmap on ARM or MIPS, pass
      use_vmalloc=0 option explicitly.
      Reported-and-tested-by: NDaniel Danzberger <daniel@dd-wrt.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f274baa4
  6. 28 5月, 2018 4 次提交
  7. 24 5月, 2018 1 次提交
  8. 18 5月, 2018 1 次提交
  9. 17 5月, 2018 1 次提交
  10. 15 5月, 2018 4 次提交
  11. 14 5月, 2018 1 次提交
  12. 13 5月, 2018 2 次提交
  13. 04 5月, 2018 5 次提交
  14. 03 5月, 2018 1 次提交
  15. 02 5月, 2018 6 次提交
    • T
      ALSA: usb-audio: Give proper vendor/product name for Dell WD15 Dock · 6455abb4
      Takashi Iwai 提交于
      Dell WD15 Dock with 0bda:4014 doesn't give any useful strings for the
      vendor and the product names.  Name them more specifically via quirk,
      as well as the UCM profile name.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      6455abb4
    • T
      ALSA: usb-audio: Allow to override the longname string · 07eca5fc
      Takashi Iwai 提交于
      Historically USB-audio driver sets the card's longname field with the
      details of the device and the bus information.  It's good per se, but
      not preferable when it's referred as the identifier for UCM profile.
      
      This patch adds a quirk profile_name field to override the card's
      longname string to a pre-defined one, so that one can create a unique
      and consistent ID string for the specific USB device via a quirk table
      to be used as a UCM profile name.
      
      The patch does a slight code refactoring to split out the functions to
      set shortname and longname fields as well.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      07eca5fc
    • T
      ALSA: usb-audio: Add "Keep Interface" control · 4120fbed
      Takashi Iwai 提交于
      This patch adds "Keep Interface" control for each USB-audio device.
      The control element is with SND_CTL_IFACE_CARD, so that it won't
      appear on any sane mixer applications.  For a device that is confirmed
      to work well with "keep-interface" mode, user can flip the control via
      amixer, e.g.
        % amixer -c1 cset iface=CARD,name='Keep Interface' on
      
      and save/restore the state via alsactl.
      
      The reason to provide this via control API is that the behavior must
      be pretty depending on the device (and the firmware in it), so it's
      not ideal to apply via module option.
      
      For a device that certainly works, we may set it statically via a
      quirk table entry.  But a device like Dell WD15 dock behaves so
      differently depending on the firmware, and we can't set it
      statically.  So leave this as a dynamic switch each user can adjust
      freely.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4120fbed
    • T
      ALSA: usb-audio: Add keep_iface flag · 8a463225
      Takashi Iwai 提交于
      Introduce a new flag to struct snd_usb_audio for allowing the device
      to skip usb_set_interface() calls at changing or closing the stream.
      As of this patch, the flag is nowhere set, so it's just a place
      holder.  The dynamic switching will be added in the following patch.
      
      A background information for this change:
      
      Dell WD15 dock with Realtek chip gives a very long pause at each time
      the driver changes the altset, which eventually happens at every PCM
      stream open/close and parameter change.  As the long pause happens in
      each usb_set_interface() call, there is nothing we can do as long as
      it's called.  The workaround is to reduce calling it as much as
      possible, and this flag indicates that behavior.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      8a463225
    • T
      ALSA: usb-audio: Avoid superfluous usb_set_interface() calls · b099b969
      Takashi Iwai 提交于
      This is a preliminary change for the upcoming quirk implementation.
      
      Currently USB-audio driver tries to call usb_set_interface() whenever
      the format change with interface/altset modification happens.  In this
      patch, the check is replaced with the comparison of cur_altsetting and
      the targeted altsetting pointer, so that the driver may skip the
      unnecessary function calls.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b099b969
    • T
      ALSA: usb-audio: Initialize Dell Dock playback volumes · 964af639
      Takashi Iwai 提交于
      In the early commit adcdd0d5 ("ALSA: usb-audio: Skip volume
      controls triggers hangup on Dell USB Dock"), we add the mixer quirks
      for Dell dock to skip two mixer FU's for playback.  This supposed that
      the device has always the proper initial volume, but it doesn't seem
      always correct.
      
      This patch adds the explicit initialization of the volumes to the
      fixed 0dB at the device probe time.  Also, such a fixup is needed
      after the resume, so a new function is hooked to the resume callback
      as well.
      
      Bugzilla: http://bugzilla.suse.com/show_bug.cgi?id=1089467Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      964af639
  16. 25 4月, 2018 2 次提交
  17. 24 4月, 2018 2 次提交
  18. 23 4月, 2018 2 次提交
  19. 19 4月, 2018 1 次提交