Skip to content

Commit 3e6ebdf

Browse files
Olivier Moysanfourmone
Olivier Moysan
authored andcommitted
ASoC: stm32: spdifrx: add pm_runtime support
Enable support of pm_runtime on STM32 SPDIFRX driver to allow SPDIFRX power state monitoring. Signed-off-by: Olivier Moysan <[email protected]> Change-Id: I70e673cf9f6aeeed040b4ec829ee281e6dff12d6 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/195608 Reviewed-by: CITOOLS <[email protected]> Reviewed-by: CIBUILD <[email protected]> Reviewed-by: Arnaud POULIQUEN <[email protected]>
1 parent 25444e8 commit 3e6ebdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/stm/stm32_spdifrx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/delay.h>
1313
#include <linux/module.h>
1414
#include <linux/of_platform.h>
15+
#include <linux/pm_runtime.h>
1516
#include <linux/regmap.h>
1617
#include <linux/reset.h>
1718

@@ -955,6 +956,7 @@ static int stm32_spdifrx_remove(struct platform_device *pdev)
955956

956957
snd_dmaengine_pcm_unregister(&pdev->dev);
957958
snd_soc_unregister_component(&pdev->dev);
959+
pm_runtime_disable(&pdev->dev);
958960

959961
return 0;
960962
}
@@ -1045,6 +1047,8 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
10451047
FIELD_GET(SPDIFRX_VERR_MIN_MASK, ver));
10461048
}
10471049

1050+
pm_runtime_enable(&pdev->dev);
1051+
10481052
return ret;
10491053

10501054
error:

0 commit comments

Comments
 (0)