Skip to content

Commit

Permalink
[ALSA] oxygen: remove MIDI for generic cards
Browse files Browse the repository at this point in the history
None of the reference design models have MIDI, only the X-Meridian
allows to connect a MIDI adapter.

Signed-off-by: Clemens Ladisch <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
cladisch authored and perexg committed Jan 31, 2008
1 parent 33c646e commit cd93dc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sound/pci/oxygen/oxygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static int __devinit generic_oxygen_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
static int dev;
const struct oxygen_model *model;
int is_meridian;
int err;

if (dev >= SNDRV_CARDS)
Expand All @@ -395,8 +395,9 @@ static int __devinit generic_oxygen_probe(struct pci_dev *pci,
++dev;
return -ENOENT;
}
model = pci_id->driver_data ? &model_meridian : &model_generic;
err = oxygen_pci_probe(pci, index[dev], id[dev], 1, model);
is_meridian = pci_id->driver_data;
err = oxygen_pci_probe(pci, index[dev], id[dev], is_meridian,
is_meridian ? &model_meridian : &model_generic);
if (err >= 0)
++dev;
return err;
Expand Down

0 comments on commit cd93dc8

Please sign in to comment.