Skip to content

Commit

Permalink
[ALSA] virtuoso: initialize two-wire control register
Browse files Browse the repository at this point in the history
On the Xonar DX, initialize all bits of the two-wire control register.

Signed-off-by: Clemens Ladisch <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
cladisch authored and tiwai committed Apr 24, 2008
1 parent 387fb6a commit 80060ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/pci/oxygen/virtuoso.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@ static void xonar_dx_init(struct oxygen *chip)
data->ext_power_int_reg = OXYGEN_GPI_INTERRUPT_MASK;
data->ext_power_bit = GPI_DX_EXT_POWER;

/* XXX the DACs' datasheets say fast mode is not allowed */
oxygen_set_bits16(chip, OXYGEN_2WIRE_BUS_STATUS,
OXYGEN_2WIRE_SPEED_FAST);
oxygen_write16(chip, OXYGEN_2WIRE_BUS_STATUS,
OXYGEN_2WIRE_LENGTH_8 |
OXYGEN_2WIRE_INTERRUPT_MASK |
OXYGEN_2WIRE_SPEED_FAST);

/* set CPEN (control port mode) and power down */
cs4398_write(chip, 8, CS4398_CPEN | CS4398_PDN);
Expand Down

0 comments on commit 80060ec

Please sign in to comment.