OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db9a0f
)
ALSA: oxygen: Xonar DG: fix CS4245 register writes
author
Clemens Ladisch
<clemens@ladisch.de>
Fri, 14 Jan 2011 07:07:50 +0000
(08:07 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 14 Jan 2011 08:50:01 +0000
(09:50 +0100)
Accidentally exchanging register addresses and register values leads to
many strange errors ...
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/xonar_dg.c
patch
|
blob
|
history
diff --git
a/sound/pci/oxygen/xonar_dg.c
b/sound/pci/oxygen/xonar_dg.c
index
e4de0b8
..
e1fa602
100644
(file)
--- a/
sound/pci/oxygen/xonar_dg.c
+++ b/
sound/pci/oxygen/xonar_dg.c
@@
-75,7
+75,7
@@
static void cs4245_write(struct oxygen *chip, unsigned int reg, u8 value)
OXYGEN_SPI_CEN_LATCH_CLOCK_HI,
CS4245_SPI_ADDRESS |
CS4245_SPI_WRITE |
- (
value << 8) | reg
);
+ (
reg << 8) | value
);
data->cs4245_regs[reg] = value;
}