File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1068,7 +1068,9 @@ static int had_pcm_open(struct snd_pcm_substream *substream)
1068
1068
intelhaddata = snd_pcm_substream_chip (substream );
1069
1069
runtime = substream -> runtime ;
1070
1070
1071
- pm_runtime_get_sync (intelhaddata -> dev );
1071
+ retval = pm_runtime_resume_and_get (intelhaddata -> dev );
1072
+ if (retval < 0 )
1073
+ return retval ;
1072
1074
1073
1075
/* set the runtime hw parameter with local snd_pcm_hardware struct */
1074
1076
runtime -> hw = had_pcm_hardware ;
@@ -1536,8 +1538,12 @@ static void had_audio_wq(struct work_struct *work)
1536
1538
container_of (work , struct snd_intelhad , hdmi_audio_wq );
1537
1539
struct intel_hdmi_lpe_audio_pdata * pdata = ctx -> dev -> platform_data ;
1538
1540
struct intel_hdmi_lpe_audio_port_pdata * ppdata = & pdata -> port [ctx -> port ];
1541
+ int ret ;
1542
+
1543
+ ret = pm_runtime_resume_and_get (ctx -> dev );
1544
+ if (ret < 0 )
1545
+ return ;
1539
1546
1540
- pm_runtime_get_sync (ctx -> dev );
1541
1547
mutex_lock (& ctx -> mutex );
1542
1548
if (ppdata -> pipe < 0 ) {
1543
1549
dev_dbg (ctx -> dev , "%s: Event: HAD_NOTIFY_HOT_UNPLUG : port = %d\n" ,
You can’t perform that action at this time.
0 commit comments