Skip to contentSkip to conversation

ASoC: Fix reg_word_size for ak4104

PATCH Applied Axel Lin 3 participants 3 messages Oct 20, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Fix reg_word_size for ak4104

According to the register map in datasheet, the registers are 8 bit.

---
 sound/soc/codecs/ak4104.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/ak4104.c +1 -1
index cbf0b6d..d3b29dc 100644
@@ -247,7 +247,7 @@ static struct snd_soc_codec_driver soc_codec_device_ak4104 = {
 	.probe =	ak4104_probe,
 	.remove =	ak4104_remove,
 	.reg_cache_size = AK4104_NUM_REGS,
-	.reg_word_size = sizeof(u16),
+	.reg_word_size = sizeof(u8),
 };
 
 static int ak4104_spi_probe(struct spi_device *spi)
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 21 lines · Axel Lin

According to the register map in datasheet, the registers are 8 bit.

---
 sound/soc/codecs/ak4104.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/ak4104.c +1 -2
index cbf0b6d..d3b29dc 100644
@@ -247,7 +247,7 @@ static struct snd_soc_codec_driver soc_codec_device_ak4104 = {
        .probe =        ak4104_probe,
        .remove =       ak4104_remove,
        .reg_cache_size = AK4104_NUM_REGS,
-       .reg_word_size = sizeof(u16),
+       .reg_word_size = sizeof(u8),
  };
 
  static int ak4104_spi_probe(struct spi_device *spi)
--
Quoted 2 lines

1.7.5.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel