ALSA: oxygen: Xonar DG: fix CS4245 register writes
authorClemens Ladisch <clemens@ladisch.de>
Fri, 14 Jan 2011 07:07:50 +0000 (08:07 +0100)
committerTakashi 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

index e4de0b8d087a000cb67b735cf9a5c2b603afba70..e1fa602eba795c5db577bc18f4cc00e5680262d0 100644 (file)
@@ -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;
 }