X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Documentation%2Fsound%2Falsa%2FDocBook%2Fwriting-an-alsa-driver.tmpl;h=ccd0a953953dcc09a52288d766bff968afff3e4b;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=b8dc51ca776c84b9e4eae4edf1c8477dc337e19a;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git
diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
index b8dc51ca7..ccd0a9539 100644
--- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
+++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
@@ -927,7 +927,7 @@
private_data;
+ struct mychip *chip = card->private_data;
]]>
@@ -1054,9 +1054,8 @@
For a device which allows hotplugging, you can use
- snd_card_free_in_thread. This one will
- postpone the destruction and wait in a kernel-thread until all
- devices are closed.
+ snd_card_free_when_closed. This one will
+ postpone the destruction until all devices are closed.
@@ -1096,7 +1095,7 @@
/* release the irq */
if (chip->irq >= 0)
- free_irq(chip->irq, (void *)chip);
+ free_irq(chip->irq, chip);
/* release the i/o ports & memory */
pci_release_regions(chip->pci);
/* disable the PCI entry */
@@ -1149,7 +1148,7 @@
}
chip->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_mychip_interrupt,
- IRQF_DISABLED|IRQF_SHARED, "My Chip", chip)) {
+ IRQF_SHARED, "My Chip", chip)) {
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
snd_mychip_free(chip);
return -EBUSY;
@@ -1388,7 +1387,7 @@
irq >= 0)
- free_irq(chip->irq, (void *)chip);
+ free_irq(chip->irq, chip);
]]>
@@ -5487,7 +5486,7 @@ struct _snd_pcm_runtime {
Power Management
- If the chip is supposed to work with with suspend/resume
+ If the chip is supposed to work with suspend/resume
functions, you need to add the power-management codes to the
driver. The additional codes for the power-management should be
ifdef'ed with