From ba905f3c693e6c793d5b6c63301a03305d101aa9 Mon Sep 17 00:00:00 2001
From: Christina Quast <cquast@baylibre.com>
Date: Wed, 14 Feb 2018 12:08:52 +0100
Subject: [PATCH] Documentation: sound: Corrected my_chip port element
Signed-off-by: Christina Quast <cquast@baylibre.com>
---
Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -361,7 +361,7 @@ to details explained in the following section.
strcpy(card->driver, "My Chip");
strcpy(card->shortname, "My Own Chip 123");
sprintf(card->longname, "%s at 0x%lx irq %i",
- card->shortname, chip->ioport, chip->irq);
+ card->shortname, chip->port, chip->irq);
/* (5) */
.... /* implemented later */
@@ -461,7 +461,7 @@ Management`_.
strcpy(card->driver, "My Chip");
strcpy(card->shortname, "My Own Chip 123");
sprintf(card->longname, "%s at 0x%lx irq %i",
- card->shortname, chip->ioport, chip->irq);
+ card->shortname, chip->port, chip->irq);
The driver field holds the minimal ID string of the chip. This is used
by alsa-lib's configurator, so keep it simple but unique. Even the
--
2.15.1