1. 08 Mar, 2016 3 commits
    • Martin Koegler's avatar
      ALSA: seq: Provide card number / PID via sequencer client info · a1ce94d0
      Martin Koegler authored
      rawmidi devices expose the card number via IOCTLs, which allows to
      find the corresponding device in sysfs.
      
      The sequencer provides no identifing data. Chromium works around this
      issue by scanning rawmidi as well as sequencer devices and matching
      them by using assumtions, how the kernel register sequencer devices.
      
      This changes adds support for exposing the card number for kernel clients
      as well as the PID for user client.
      
      The minor of the API version is changed to distinguish between the zero
      initialised reserved field and card number 0.
      
      [minor coding style fixes by tiwai]
      Signed-off-by: default avatarMartin Koegler <martin.koegler@chello.at>
      Acked-by: default avatarClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a1ce94d0
    • Takashi Iwai's avatar
      Merge branch 'topic/hda' into for-next · 56d94d70
      Takashi Iwai authored
      56d94d70
    • Takashi Iwai's avatar
      ALSA: hda - Fix unexpected resume through regmap code path · fc4f000b
      Takashi Iwai authored
      HD-audio driver has a mechanism to trigger the runtime resume
      automatically at accessing the verbs.  This auto-resume, however,
      causes the mutex deadlock when invoked from the regmap handler since
      the regmap keeps the mutex while auto-resuming.  For avoiding that,
      there is some tricky check in the HDA regmap handler to return -EAGAIN
      error to back-off when the codec is powered down.  Then the caller of
      regmap r/w will retry after properly turning on the codec power.
      
      This works in most cases, but there seems a slight race between the
      codec power check and the actual on-demand auto-resume trigger.  This
      resulted in the lockdep splat, eventually leading to a real deadlock.
      
      This patch tries to address the race window by getting the runtime PM
      refcount at the check time using pm_runtime_get_if_in_use().  With
      this call, we can keep the power on only when the codec has been
      already turned on, and back off if not.
      
      For keeping the code consistency, the code touching the runtime PM is
      stored in hdac_device.c although it's used only locally in
      hdac_regmap.c.
      Reported-by: default avatarJiri Slaby <jslaby@suse.cz>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      fc4f000b
  2. 07 Mar, 2016 8 commits
  3. 05 Mar, 2016 6 commits
  4. 04 Mar, 2016 8 commits
  5. 03 Mar, 2016 1 commit
  6. 02 Mar, 2016 1 commit
  7. 01 Mar, 2016 13 commits