Skip to content

Commit 023a3f3

Browse files
Sugar Zhangbroonie
authored andcommitted
ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatile
This patch marks SPDIF_SMPDR as volatile to make it resaonable, which also requires marking it as readable, even though it isn't. Signed-off-by: Sugar Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2fd276c commit 023a3f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/rockchip/rockchip_spdif.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg)
247247
case SPDIF_INTCR:
248248
case SPDIF_INTSR:
249249
case SPDIF_XFER:
250+
case SPDIF_SMPDR:
250251
return true;
251252
default:
252253
return false;
@@ -258,6 +259,7 @@ static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg)
258259
switch (reg) {
259260
case SPDIF_INTSR:
260261
case SPDIF_SDBLR:
262+
case SPDIF_SMPDR:
261263
return true;
262264
default:
263265
return false;

0 commit comments

Comments
 (0)