diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-01-14 02:07:50 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-14 03:50:01 -0500 |
commit | f8fe80e4383bf5f542beb80bf2abe9fc1505c366 (patch) | |
tree | 2b99252be1fb17e407600609aca488e6d15b9fb3 /sound | |
parent | 6db9a0f326d3144d790d9479309df480a8f562e4 (diff) |
ALSA: oxygen: Xonar DG: fix CS4245 register writes
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/oxygen/xonar_dg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/xonar_dg.c b/sound/pci/oxygen/xonar_dg.c index e4de0b8d087a..e1fa602eba79 100644 --- 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) | |||
75 | OXYGEN_SPI_CEN_LATCH_CLOCK_HI, | 75 | OXYGEN_SPI_CEN_LATCH_CLOCK_HI, |
76 | CS4245_SPI_ADDRESS | | 76 | CS4245_SPI_ADDRESS | |
77 | CS4245_SPI_WRITE | | 77 | CS4245_SPI_WRITE | |
78 | (value << 8) | reg); | 78 | (reg << 8) | value); |
79 | data->cs4245_regs[reg] = value; | 79 | data->cs4245_regs[reg] = value; |
80 | } | 80 | } |
81 | 81 | ||