diff options
author | Sugar Zhang <sugar.zhang@rock-chips.com> | 2018-12-03 14:53:00 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-12-05 18:16:28 +0800 |
commit | 81901bd3afb16f744c5c6214c7438218f00ae7d0 (patch) | |
tree | 5b3cfa457b6c80dcad58c7c613bb43a345166ee1 /sound | |
parent | 97239e32ffa855345e2b1b1d3e8eeed47e9270d1 (diff) |
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>
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 c211750b54ee..ad0675e1df79 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -255,6 +255,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; @@ -266,6 +267,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; |