1. 14 Sep, 2012 1 commit
  2. 13 Sep, 2012 2 commits
  3. 11 Sep, 2012 7 commits
  4. 10 Sep, 2012 1 commit
    • Takashi Iwai's avatar
      ALSA: hda - Fix Oops at codec reset/reconfig · 07dc59f0
      Takashi Iwai authored
      snd_hda_codec_reset() calls restore_pincfgs() where the codec is
      powered up again, which eventually tries to resume and initialize via
      the callbacks of the codec.  However, it's the place just after codec
      free callback, thus no codec callbacks should be called after that.
      On a codec like CS4206, it results in Oops due to the access in init
      callback.
      
      This patch fixes the issue by clearing the codec callbacks properly
      after freeing codec.
      Reported-by: default avatarDaniel J Blueman <daniel@quora.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      07dc59f0
  5. 07 Sep, 2012 1 commit
  6. 06 Sep, 2012 8 commits
  7. 05 Sep, 2012 3 commits
  8. 04 Sep, 2012 2 commits
    • Jaroslav Kysela's avatar
      ALSA: remove the main version information · 42662748
      Jaroslav Kysela authored
      Remove the main ALSA version number from the kernel ALSA driver.
      The ALSA driver package release diverges from the upstream. This may
      confuse users to see the same ALSA version for many kernel releases
      and this version lost it's original purpose and connection.
      
      The "ioctl" APIs have own version numbers, so the user space may check
      for specific API changes only.
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      42662748
    • Daniel Mack's avatar
      ALSA: snd-usb: Add quirks for Playback Designs devices · 2b58fd5b
      Daniel Mack authored
      Playback Designs' USB devices have some hardware limitations on their
      USB interface. In particular:
      
       - They need a 20ms delay after each class compliant request as the
         hardware ACKs the USB packets before the device is actually ready
         for the next command. Sending data immediately will result in buffer
         overflows in the hardware.
       - The devices send bogus feedback data at the start of each stream
         which confuse the feedback format auto-detection.
      
      This patch introduces a new quirks hook that is called after each
      control packet and which adds a delay for all devices that match
      Playback Designs' USB VID for now.
      
      In addition, it adds a counter to snd_usb_endpoint to drop received
      packets on the floor. Another new quirks function that is called once
      an endpoint is started initializes that counter for these devices on
      their sync endpoint.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Reported-and-tested-by: default avatarAndreas Koch <andreas@akdesigninc.com>
      Supported-by: default avatarDemian Martin <demianm_1@yahoo.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2b58fd5b
  9. 03 Sep, 2012 3 commits
  10. 31 Aug, 2012 6 commits
    • Daniel Mack's avatar
      ALSA: snd-usb: fix cross-interface streaming devices · 2e4a263c
      Daniel Mack authored
      Commit 68e67f40 ("ALSA: snd-usb: move calls to usb_set_interface")
      saved us some unnecessary calls to snd_usb_set_interface() but ignored
      the fact that there is at least one device out there which operates on
      two endpoint in different interfaces simultaniously.
      
      Take care for this by catching the case where data and sync endpoints
      are located on different interfaces and calling snd_usb_set_interface()
      between the start of the two endpoints.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Reported-by: default avatarRobert M. Albrecht <linux@romal.de>
      Cc: stable@kernel.org [v3.5+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2e4a263c
    • Daniel Mack's avatar
      ALSA: snd-usb: fix calls to next_packet_size · 245baf98
      Daniel Mack authored
      In order to support devices with implicit feedback streaming models,
      packet sizes are now stored with each individual urb, and the PCM
      handling code which fills the buffers purely relies on the size fields
      now.
      
      However, calling snd_usb_audio_next_packet_size() for all possible
      packets in an URB at once, prior to letting the PCM code do its job
      does in fact not lead to the same behaviour than what the old code did:
      The PCM code will break its loop once a period boundary is reached,
      consequently using up less packets that it really could.
      
      As snd_usb_audio_next_packet_size() implements a feedback mechanism to
      the endpoints phase accumulator, the number of calls to that function
      matters, and when called too often, the data rate runs out of bounds.
      
      Fix this by making the next_packet function public, and call it from the
      PCM code as before if the packet data sizes are not defined.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Cc: stable@kernel.org [v3.5+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      245baf98
    • Daniel Mack's avatar
      ALSA: snd-usb: restore delay information · fbcfbf5f
      Daniel Mack authored
      Parts of commit 294c4fb8 ("ALSA: usb: refine delay information with USB
      frame counter") were unfortunately lost during the refactoring of the
      snd-usb driver in 3.5.
      
      This patch adds them back, restoring the correct delay information
      behaviour.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Cc: stable@kernel.org [3.5+]
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      fbcfbf5f
    • Pavel Roskin's avatar
      ALSA: snd-usb: use list_for_each_safe for endpoint resources · 03d2f44e
      Pavel Roskin authored
      snd_usb_endpoint_free() frees the structure that contains its argument.
      Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      03d2f44e
    • Takashi Iwai's avatar
      ALSA: hda - Clean up redundant FG checks · d819387e
      Takashi Iwai authored
      Just refactoring, no functional changes.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      d819387e
    • Takashi Iwai's avatar
      ALSA: hda - Yet another fix for D3 stop-clock refcounting · 08fa20ae
      Takashi Iwai authored
      The call of pm_notify callback in snd_hda_codec_free() should be with
      the check of the current state whether pm_notify(false) is called or
      not, instead of codec->power_on check.
      
      For improving the code readability and fixing this inconsistency,
      codec->d3_stop_clk_ok is renamed to codec->pm_down_notified, and this
      flag is set only when runtime PM down is called.  The new name reflects
      to a more direct purpose of the flag.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      08fa20ae
  11. 30 Aug, 2012 6 commits