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 33
33
#include <drm/intel_lpe_audio.h>
34
34
#include "intel_hdmi_audio.h"
35
35
36
+ #define INTEL_HDMI_AUDIO_SUSPEND_DELAY_MS 5000
37
+
36
38
#define for_each_pipe (card_ctx , pipe ) \
37
39
for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++)
38
40
#define for_each_port (card_ctx , port ) \
@@ -1802,8 +1804,11 @@ static int __hdmi_lpe_audio_probe(struct platform_device *pdev)
1802
1804
pdata -> notify_audio_lpe = notify_audio_lpe ;
1803
1805
spin_unlock_irq (& pdata -> lpe_audio_slock );
1804
1806
1807
+ pm_runtime_set_autosuspend_delay (& pdev -> dev , INTEL_HDMI_AUDIO_SUSPEND_DELAY_MS );
1805
1808
pm_runtime_use_autosuspend (& pdev -> dev );
1809
+ pm_runtime_enable (& pdev -> dev );
1806
1810
pm_runtime_mark_last_busy (& pdev -> dev );
1811
+ pm_runtime_idle (& pdev -> dev );
1807
1812
1808
1813
dev_dbg (& pdev -> dev , "%s: handle pending notification\n" , __func__ );
1809
1814
for_each_port (card_ctx , port ) {
You can’t perform that action at this time.
0 commit comments