From: Clemens Ladisch Date: Fri, 14 Jan 2011 07:07:50 +0000 (+0100) Subject: ALSA: oxygen: Xonar DG: fix CS4245 register writes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8fe80e4383bf5f542beb80bf2abe9fc1505c366;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Takashi Iwai --- 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) OXYGEN_SPI_CEN_LATCH_CLOCK_HI, CS4245_SPI_ADDRESS | CS4245_SPI_WRITE | - (value << 8) | reg); + (reg << 8) | value); data->cs4245_regs[reg] = value; }