[PATCH 4/4] ASoC: atmel: mchp-spdifrx: Propagate runtime PM errors in ulock get
From: phucduc . bui
Date: Thu Nov 19 2026 - 05:35:09 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Return the result of pm_runtime_resume_and_get() instead of
comparing the old and current ulock values.
This ensures runtime PM errors are propagated to the caller.
Fixes: c7db2a594389 ("ASoC: mchp-spdifrx: add runtime pm support")
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/atmel/mchp-spdifrx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c
index 41c65e835765..632da8d7bc81 100644
--- a/sound/soc/atmel/mchp-spdifrx.c
+++ b/sound/soc/atmel/mchp-spdifrx.c
@@ -709,7 +709,6 @@ static int mchp_spdifrx_ulock_get(struct snd_kcontrol *kcontrol,
struct mchp_spdifrx_mixer_control *ctrl = &dev->control;
u32 val;
int ret;
- bool ulock_old = ctrl->ulock;
mutex_lock(&dev->mlock);
@@ -735,7 +734,7 @@ static int mchp_spdifrx_ulock_get(struct snd_kcontrol *kcontrol,
unlock:
mutex_unlock(&dev->mlock);
- return ulock_old != ctrl->ulock;
+ return ret;
}
static int mchp_spdifrx_badf_get(struct snd_kcontrol *kcontrol,
--
2.43.0