mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
6db9a0f326
commit
f8fe80e438
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user