diff options
author | Sugar Zhang <sugar.zhang@rock-chips.com> | 2021-08-24 18:15:59 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-26 13:56:54 +0100 |
commit | 023a3f3a1c4f9be9cc1ae92579ba816120fb5807 (patch) | |
tree | 03edbd1967cb564af3730a9a2a264af13045665a /sound | |
parent | 2fd276c3ee4bd42eb034f8954964a5ae74187c6b (diff) | |
download | linux-023a3f3a1c4f9be9cc1ae92579ba816120fb5807.tar.gz linux-023a3f3a1c4f9be9cc1ae92579ba816120fb5807.tar.bz2 linux-023a3f3a1c4f9be9cc1ae92579ba816120fb5807.zip |
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 <sugar.zhang@rock-chips.com>
Link: https://lore.kernel.org/r/1629800162-12824-2-git-send-email-sugar.zhang@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/rockchip/rockchip_spdif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 73226a46d489..8baa473db0d2 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -247,6 +247,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; @@ -258,6 +259,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; |