diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-09-22 03:03:42 -0400 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2008-09-22 03:03:42 -0400 |
commit | dbbbd6744439d95d2b0dc23c5cdca2c477377f76 (patch) | |
tree | 6a149c7dbc7d0889cf8c348be2618210661bea84 /sound/pci/oxygen/virtuoso.c | |
parent | d76596b1ee7f5cdbd0b73d374ba72372a2c8b725 (diff) |
ALSA: oxygen: configure MIDI via device_config
To enable the MIDI port, model drivers must now set flags in
device_config, not only in misc_flags. This allows model drivers to
enable the UART without creating an ALSA MIDI device.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/pci/oxygen/virtuoso.c')
-rw-r--r-- | sound/pci/oxygen/virtuoso.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index f416e68338e2..befada742ae8 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -569,7 +569,9 @@ static const struct oxygen_model model_xonar_d2 = { | |||
569 | .device_config = PLAYBACK_0_TO_I2S | | 569 | .device_config = PLAYBACK_0_TO_I2S | |
570 | PLAYBACK_1_TO_SPDIF | | 570 | PLAYBACK_1_TO_SPDIF | |
571 | CAPTURE_0_FROM_I2S_2 | | 571 | CAPTURE_0_FROM_I2S_2 | |
572 | CAPTURE_1_FROM_SPDIF, | 572 | CAPTURE_1_FROM_SPDIF | |
573 | MIDI_OUTPUT | | ||
574 | MIDI_INPUT, | ||
573 | .dac_channels = 8, | 575 | .dac_channels = 8, |
574 | .dac_volume_min = 0x0f, | 576 | .dac_volume_min = 0x0f, |
575 | .dac_volume_max = 0xff, | 577 | .dac_volume_max = 0xff, |