Skip to contentSkip to conversation

sound/isa/opl3sa2.c compile fix

PATCH New Daniel Ritz 1 participant 1 message Jan 14, 2003 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/isa/opl3sa2.c compile fix

hi

patch to fix the broken compile of sound/isa/opl3sa2.c sound driver. against 2.5.58. please apply...

rgds,
-daniel

sound/isa/opl3sa2.c renamed from sound/isa/opl3sa2.c_ +0 -0
@@ -162,9 +162,9 @@
 #ifdef CONFIG_PNP
 
 static struct pnp_card *snd_opl3sa2_isapnp_cards[SNDRV_CARDS] = 

SNDRV_DEFAULT_PTR;
-static const struct pnp_card_id *snd_opl3sa2_isapnp_id[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
+static const struct pnp_card_device_id *snd_opl3sa2_isapnp_id[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;

-static struct pnp_card_id snd_opl3sa2_pnpids[] = {
+static struct pnp_card_device_id snd_opl3sa2_pnpids[] = {
/* Yamaha YMF719E-S (Genius Sound Maker 3DX) */
{.id = "YMH0020", .driver_data = 0, devs : { {.id="YMH0021"}, } }, /* Yamaha OPL3-SA3 (integrated on Intel's Pentium II AL440LX motherboard) */
@@ -627,7 +627,7 @@
#ifdef CONFIG_PNP
static int __init snd_opl3sa2_isapnp(int dev, opl3sa2_t *chip)
{
- const struct pnp_card_id *id = snd_opl3sa2_isapnp_id[dev];

+        const struct pnp_card_device_id *id = snd_opl3sa2_isapnp_id[dev];
         struct pnp_card *card = snd_opl3sa2_isapnp_cards[dev];

struct pnp_dev *pdev;

@@ -637,14 +637,14 @@
snd_printdd("isapnp OPL3-SA: a card was found but it did not contain the
needed devices\n");
return -ENODEV;
}
- sb_port[dev] = pdev->resource[0].start;
- wss_port[dev] = pdev->resource[1].start;
- fm_port[dev] = pdev->resource[2].start;
- midi_port[dev] = pdev->resource[3].start;
- port[dev] = pdev->resource[4].start;
- dma1[dev] = pdev->dma_resource[0].start;
- dma2[dev] = pdev->dma_resource[1].start;
- irq[dev] = pdev->irq_resource[0].start;
+ sb_port[dev] = pnp_port_start(pdev, 0);
+ wss_port[dev] = pnp_port_start(pdev, 1);
+ fm_port[dev] = pnp_port_start(pdev, 2);
+ midi_port[dev] = pnp_port_start(pdev, 3);
+ port[dev] = pnp_port_start(pdev, 4);
+ dma1[dev] = pnp_dma(pdev, 0);
+ dma2[dev] = pnp_dma(pdev, 1);
+ irq[dev] = pnp_irq(pdev, 0);
snd_printdd("isapnp OPL3-SA: sb port=0x%lx, wss port=0x%lx, fm port=0x%lx,
midi port=0x%lx\n",
sb_port[dev], wss_port[dev], fm_port[dev], midi_port[dev]);
snd_printdd("isapnp OPL3-SA: control port=0x%lx, dma1=%i, dma2=%i,
irq=%i\n",
@@ -816,7 +816,7 @@

#ifdef CONFIG_PNP
static int __init snd_opl3sa2_isapnp_detect(struct pnp_card *card,
- const struct pnp_card_id *id)
+ const struct pnp_card_device_id *id)

 {
         static int dev;
         int res;