1. 15 May, 2018 2 commits
  2. 14 May, 2018 5 commits
  3. 13 May, 2018 20 commits
  4. 04 May, 2018 7 commits
  5. 03 May, 2018 2 commits
  6. 02 May, 2018 4 commits
    • Takashi Iwai's avatar
      ALSA: usb-audio: Give proper vendor/product name for Dell WD15 Dock · 6455abb4
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      6455abb4
    • Takashi Iwai's avatar
      ALSA: usb-audio: Allow to override the longname string · 07eca5fc
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      07eca5fc
    • Takashi Iwai's avatar
      ALSA: usb-audio: Add "Keep Interface" control · 4120fbed
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      4120fbed
    • Takashi Iwai's avatar
      ALSA: usb-audio: Add keep_iface flag · 8a463225
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      8a463225