From: Clemens Ladisch Date: Fri, 14 Jan 2011 07:07:50 +0000 (+0100) Subject: ALSA: oxygen: Xonar DG: fix CS4245 register writes X-Git-Tag: upstream/snapshot3+hdmi~11672^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8fe80e4383bf5f542beb80bf2abe9fc1505c366;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 e4de0b8..e1fa602 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; }