]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: intel_hdmi: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Jul 2025 07:55:00 +0000 (10:55 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sun, 6 Jul 2025 08:25:18 +0000 (10:25 +0200)
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20250704075500.3222950-1-sakari.ailus@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c

index fe5cb41390883c4bc5a67f89befb92c3a055e3e6..cc54539c60306fba429ab74d35c69a12f347c763 100644 (file)
@@ -1102,7 +1102,6 @@ static int had_pcm_open(struct snd_pcm_substream *substream)
 
        return retval;
  error:
-       pm_runtime_mark_last_busy(intelhaddata->dev);
        pm_runtime_put_autosuspend(intelhaddata->dev);
        return retval;
 }
@@ -1127,7 +1126,6 @@ static int had_pcm_close(struct snd_pcm_substream *substream)
        }
        spin_unlock_irq(&intelhaddata->had_spinlock);
 
-       pm_runtime_mark_last_busy(intelhaddata->dev);
        pm_runtime_put_autosuspend(intelhaddata->dev);
        return 0;
 }
@@ -1589,7 +1587,6 @@ static void had_audio_wq(struct work_struct *work)
        }
 
        mutex_unlock(&ctx->mutex);
-       pm_runtime_mark_last_busy(ctx->dev);
        pm_runtime_put_autosuspend(ctx->dev);
 }