projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7407a2e
)
sound: ASoC: Fix WM8731 SPI write
author
Alan Horstmann
<gineera@aspect135.co.uk>
Tue, 9 Sep 2008 18:25:49 +0000
(19:25 +0100)
committer
Jaroslav Kysela
<perex@perex.cz>
Tue, 23 Sep 2008 06:17:53 +0000
(08:17 +0200)
Ensure wm8731_spi_write byte order is consistent regardless of
endianess.
Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/soc/codecs/wm8731.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8731.c
b/sound/soc/codecs/wm8731.c
index 975befdfd8854d24d01e5ca638c1b1d0dac0c66c..7b64d9a7ff76408092520d614c1601dbb901c7be 100644
(file)
--- a/
sound/soc/codecs/wm8731.c
+++ b/
sound/soc/codecs/wm8731.c
@@
-688,12
+688,13
@@
static int wm8731_spi_write(struct spi_device *spi, const char *data, int len)
{
struct spi_transfer t;
struct spi_message m;
- u
16
msg[2];
+ u
8
msg[2];
if (len <= 0)
return 0;
- msg[0] = (data[0] << 8) + data[1];
+ msg[0] = data[0];
+ msg[1] = data[1];
spi_message_init(&m);
memset(&t, 0, (sizeof t));