File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3333#include <drm/intel_lpe_audio.h>
3434#include "intel_hdmi_audio.h"
3535
36+ #define INTEL_HDMI_AUDIO_SUSPEND_DELAY_MS 5000
37+
3638#define for_each_pipe (card_ctx , pipe ) \
3739 for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++)
3840#define for_each_port (card_ctx , port ) \
@@ -1802,8 +1804,11 @@ static int __hdmi_lpe_audio_probe(struct platform_device *pdev)
18021804 pdata -> notify_audio_lpe = notify_audio_lpe ;
18031805 spin_unlock_irq (& pdata -> lpe_audio_slock );
18041806
1807+ pm_runtime_set_autosuspend_delay (& pdev -> dev , INTEL_HDMI_AUDIO_SUSPEND_DELAY_MS );
18051808 pm_runtime_use_autosuspend (& pdev -> dev );
1809+ pm_runtime_enable (& pdev -> dev );
18061810 pm_runtime_mark_last_busy (& pdev -> dev );
1811+ pm_runtime_idle (& pdev -> dev );
18071812
18081813 dev_dbg (& pdev -> dev , "%s: handle pending notification\n" , __func__ );
18091814 for_each_port (card_ctx , port ) {
You can’t perform that action at this time.
0 commit comments