1. 05 May, 2015 2 commits
    • Lu, Han's avatar
      ALSA: hda - reset display codec when power on · 0a673521
      Lu, Han authored
      In SKL, HDMI/DP codec and PCH HD Audio Controller are in different power wells,
      so it's necessary to reset display audio codecs when power well on, otherwise
      display audio codecs will disappear when resume from low power state.
      Reset steps when power on:
          enable codec wakeup -> azx_init_chip() -> disable codec wakeup
      
      The callback for codec wakeup enable/disable is in drivers/gpu/drm/i915/.
      Signed-off-by: default avatarLu, Han <han.lu@intel.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      0a673521
    • Lu, Han's avatar
      drm/i915/audio: add codec wakeup override enabled/disable callback · 632f3ab9
      Lu, Han authored
      Add support for enabling codec wakeup override signal to allow
      re-enumeration of the controller on SKL after resume from low power state.
      
      In SKL, HDMI/DP codec and PCH HD Audio Controller are in different power
      wells, so it's necessary to reset display audio codecs when power well on,
      otherwise display audio codecs will disappear when resume from low power
      state.
      Reset steps when power on:
          enable codec wakeup -> azx_init_chip() -> disable codec wakeup
      
      v3 by Jani: Simplify to only support toggling the appropriate chicken bit.
      
      v4 by Han: add explanation and specify the hw swquence.
      Signed-off-by: default avatarLu, Han <han.lu@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      632f3ab9
  2. 02 May, 2015 2 commits
  3. 30 Apr, 2015 5 commits
  4. 29 Apr, 2015 8 commits
  5. 28 Apr, 2015 2 commits
    • Takashi Iwai's avatar
      ALSA: emux: Fix mutex deadlock in OSS emulation · 1c94e65c
      Takashi Iwai authored
      The OSS emulation in synth-emux helper has a potential AB/BA deadlock
      at the simultaneous closing and opening:
      
        close ->
          snd_seq_release() ->
            sne_seq_free_client() ->
              snd_seq_delete_all_ports(): takes client->ports_mutex ->
      	  port_delete() ->
      	    snd_emux_unuse(): takes emux->register_mutex
      
        open ->
          snd_seq_oss_open() ->
            snd_emux_open_seq_oss(): takes emux->register_mutex ->
              snd_seq_event_port_attach() ->
      	  snd_seq_create_port(): takes client->ports_mutex
      
      This patch addresses the deadlock by reducing the rance taking
      emux->register_mutex in snd_emux_open_seq_oss().  The lock is needed
      for the refcount handling, so move it locally.  The calls in
      emux_seq.c are already with the mutex, thus they are replaced with the
      version without mutex lock/unlock.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      1c94e65c
    • Takashi Iwai's avatar
      Merge branch 'topic/jack' into for-next · 1962fcab
      Takashi Iwai authored
      1962fcab
  6. 27 Apr, 2015 21 commits