Patch "ALSA: hda/hdmi: Don't skip notification handling during PM operation" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ALSA: hda/hdmi: Don't skip notification handling during PM operation

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-hdmi-don-t-skip-notification-handling-durin.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1825c901731b0d56469b1513d4e57c10fbaf0020
Author: Takashi Iwai <tiwai@xxxxxxx>
Date:   Sat Oct 1 09:48:10 2022 +0200

    ALSA: hda/hdmi: Don't skip notification handling during PM operation
    
    [ Upstream commit 5226c7b9784eee215e3914f440b3c2e1764f67a8 ]
    
    The HDMI driver skips the notification handling from the graphics
    driver when the codec driver is being in the PM operation.  This
    behavior was introduced by the commit eb399d3c99d8 ("ALSA: hda - Skip
    ELD notification during PM process").  This skip may cause a problem,
    as we may miss the ELD update when the connection/disconnection
    happens right at the runtime-PM operation of the audio codec.
    
    Although this workaround was valid at that time, it's no longer true;
    the fix was required just because the ELD update procedure needed to
    wake up the audio codec, which had lead to a runtime-resume during a
    runtime-suspend.  Meanwhile, the ELD update procedure doesn't need a
    codec wake up any longer since the commit 788d441a164c ("ALSA: hda -
    Use component ops for i915 HDMI/DP audio jack handling"); i.e. there
    is no much reason for skipping the notification.
    
    Let's drop those checks for addressing the missing notification.
    
    Fixes: 788d441a164c ("ALSA: hda - Use component ops for i915 HDMI/DP audio jack handling")
    Reported-by: Brent Lu <brent.lu@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20220927135807.4097052-1-brent.lu@xxxxxxxxx
    Link: https://lore.kernel.org/r/20221001074809.7461-1-tiwai@xxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index d463c968b3a4..287f4f78e7b1 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -2751,9 +2751,6 @@ static void generic_acomp_pin_eld_notify(void *audio_ptr, int port, int dev_id)
 	 */
 	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND)
 		return;
-	/* ditto during suspend/resume process itself */
-	if (snd_hdac_is_in_pm(&codec->core))
-		return;
 
 	check_presence_and_report(codec, pin_nid, dev_id);
 }
@@ -2937,9 +2934,6 @@ static void intel_pin_eld_notify(void *audio_ptr, int port, int pipe)
 	 */
 	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND)
 		return;
-	/* ditto during suspend/resume process itself */
-	if (snd_hdac_is_in_pm(&codec->core))
-		return;
 
 	snd_hdac_i915_set_bclk(&codec->bus->core);
 	check_presence_and_report(codec, pin_nid, dev_id);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux