rk2928: fix audio codec register operation error.

This commit is contained in:
Zheng Yang
2012-07-30 15:43:22 +08:00
parent 5404401969
commit 78c5e1c2be
2 changed files with 3 additions and 3 deletions

View File

@@ -79,13 +79,13 @@ void codec_set_spk(bool on)
static unsigned int rk2928_read(struct snd_soc_codec *codec, unsigned int reg)
{
return readl(rk2928_data.regbase + reg);
return readl(rk2928_data.regbase + reg*4);
}
static int rk2928_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value)
{
DBG("%s reg 0x%02x value 0x%02x", __FUNCTION__, reg, value);
writel(value, rk2928_data.regbase + reg);
writel(value, rk2928_data.regbase + reg*4);
return 0;
}

View File

@@ -110,7 +110,7 @@ static struct snd_soc_dai_link rk2928_dai[] = {
.stream_name = "RK2928",
.cpu_dai_name = "rk29_i2s.0",
.platform_name = "rockchip-audio",
.codec_name = "rk2928-codec.0-0001",
.codec_name = "rk2928-codec",
.codec_dai_name = "rk2928-codec",
.ops = &rk2928_dai_ops,
},