Browse Source

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>
imx_3.10.17_1.0.0_ga
Clemens Ladisch 10 years ago
committed by Takashi Iwai
parent
commit
f8fe80e438
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sound/pci/oxygen/xonar_dg.c

+ 1
- 1
sound/pci/oxygen/xonar_dg.c View File

@ -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…
Cancel
Save