projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396a2e7
)
ASoC: ad193x: remove cache support
author
Scott Jiang
<scott.jiang.linux@gmail.com>
Fri, 12 Aug 2011 22:04:14 +0000
(18:04 -0400)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 15 Aug 2011 13:43:49 +0000
(22:43 +0900)
asoc cache layer can't support this kind of spi registers well.
remove cache support and read/write registers directly
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad193x.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ad193x.c
b/sound/soc/codecs/ad193x.c
index f1a8be58255b010850e92f08b0defe30d05541c2..eedb6f5e5823499919e14611db21a747a2a023b6 100644
(file)
--- a/
sound/soc/codecs/ad193x.c
+++ b/
sound/soc/codecs/ad193x.c
@@
-27,11
+27,6
@@
struct ad193x_priv {
int sysclk;
};
-/* ad193x register cache & default register settings */
-static const u8 ad193x_reg[AD193X_NUM_REGS] = {
- 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0,
-};
-
/*
* AD193X volume/mute/de-emphasis etc. controls
*/
@@
-390,9
+385,6
@@
static int ad193x_probe(struct snd_soc_codec *codec)
static struct snd_soc_codec_driver soc_codec_dev_ad193x = {
.probe = ad193x_probe,
- .reg_cache_default = ad193x_reg,
- .reg_cache_size = AD193X_NUM_REGS,
- .reg_word_size = sizeof(u16),
};
#if defined(CONFIG_SPI_MASTER)