Commit ceced1a3 authored by Zwane Mwaikambo's avatar Zwane Mwaikambo Committed by Linus Torvalds

[PATCH] sound/oss/opl3sa2.c compile fix

Fixes compile but card doesn't get detected, perhaps the id list?
parent db7b9e9f
...@@ -851,19 +851,19 @@ static int opl3sa2_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *de ...@@ -851,19 +851,19 @@ static int opl3sa2_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *de
opl3sa2_activated[card] = 1; opl3sa2_activated[card] = 1;
/* Our own config: */ /* Our own config: */
cfg[card].io_base = dev->resource[4].start; cfg[card].io_base = dev->io_resource[4].start;
cfg[card].irq = dev->irq_resource[0].start; cfg[card].irq = dev->irq_resource[0].start;
cfg[card].dma = dev->dma_resource[0].start; cfg[card].dma = dev->dma_resource[0].start;
cfg[card].dma2 = dev->dma_resource[1].start; cfg[card].dma2 = dev->dma_resource[1].start;
/* The MSS config: */ /* The MSS config: */
cfg_mss[card].io_base = dev->resource[1].start; cfg_mss[card].io_base = dev->io_resource[1].start;
cfg_mss[card].irq = dev->irq_resource[0].start; cfg_mss[card].irq = dev->irq_resource[0].start;
cfg_mss[card].dma = dev->dma_resource[0].start; cfg_mss[card].dma = dev->dma_resource[0].start;
cfg_mss[card].dma2 = dev->dma_resource[1].start; cfg_mss[card].dma2 = dev->dma_resource[1].start;
cfg_mss[card].card_subtype = 1; /* No IRQ or DMA setup */ cfg_mss[card].card_subtype = 1; /* No IRQ or DMA setup */
cfg_mpu[card].io_base = dev->resource[3].start; cfg_mpu[card].io_base = dev->io_resource[3].start;
cfg_mpu[card].irq = dev->irq_resource[0].start; cfg_mpu[card].irq = dev->irq_resource[0].start;
cfg_mpu[card].dma = -1; cfg_mpu[card].dma = -1;
cfg_mpu[card].dma2 = -1; cfg_mpu[card].dma2 = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment