Skip to content

Commit

Permalink
ALSA: oxygen: Xonar DG: fix CS4245 register writes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Jan 14, 2011
1 parent 6db9a0f commit f8fe80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/oxygen/xonar_dg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f8fe80e

Please sign in to comment.