提交 9f1206dc 编写于 作者: Z Zidan Wang 提交者: Mark Brown

ASoC: fsl_spdif: STL and STR registers are non volatile

STL and STR registers are writable and not readable. So they are non volatile.
Remove them from volatile list, and add default register value for them.
Signed-off-by: NZidan Wang <zidan.wang@freescale.com>
Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 3f6f5b0c
...@@ -1006,12 +1006,14 @@ static const struct snd_soc_component_driver fsl_spdif_component = { ...@@ -1006,12 +1006,14 @@ static const struct snd_soc_component_driver fsl_spdif_component = {
/* FSL SPDIF REGMAP */ /* FSL SPDIF REGMAP */
static const struct reg_default fsl_spdif_reg_defaults[] = { static const struct reg_default fsl_spdif_reg_defaults[] = {
{0x0, 0x00000400}, {REG_SPDIF_SCR, 0x00000400},
{0x4, 0x00000000}, {REG_SPDIF_SRCD, 0x00000000},
{0xc, 0x00000000}, {REG_SPDIF_SIE, 0x00000000},
{0x34, 0x00000000}, {REG_SPDIF_STL, 0x00000000},
{0x38, 0x00000000}, {REG_SPDIF_STR, 0x00000000},
{0x50, 0x00020f00}, {REG_SPDIF_STCSCH, 0x00000000},
{REG_SPDIF_STCSCL, 0x00000000},
{REG_SPDIF_STC, 0x00020f00},
}; };
static bool fsl_spdif_readable_reg(struct device *dev, unsigned int reg) static bool fsl_spdif_readable_reg(struct device *dev, unsigned int reg)
...@@ -1049,8 +1051,6 @@ static bool fsl_spdif_volatile_reg(struct device *dev, unsigned int reg) ...@@ -1049,8 +1051,6 @@ static bool fsl_spdif_volatile_reg(struct device *dev, unsigned int reg)
case REG_SPDIF_SRCSL: case REG_SPDIF_SRCSL:
case REG_SPDIF_SRU: case REG_SPDIF_SRU:
case REG_SPDIF_SRQ: case REG_SPDIF_SRQ:
case REG_SPDIF_STL:
case REG_SPDIF_STR:
case REG_SPDIF_SRFM: case REG_SPDIF_SRFM:
return true; return true;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册