mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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. Change-Id: Ia59136a4d7a9a3984d4f4b2518f835ead7419aec Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
@@ -250,6 +250,7 @@ static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg)
|
||||
case SPDIF_INTCR:
|
||||
case SPDIF_INTSR:
|
||||
case SPDIF_XFER:
|
||||
case SPDIF_SMPDR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
@@ -261,6 +262,7 @@ static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg)
|
||||
switch (reg) {
|
||||
case SPDIF_INTSR:
|
||||
case SPDIF_SDBLR:
|
||||
case SPDIF_SMPDR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user