mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:40:59 +07: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…
Reference in New Issue
Block a user