From patchwork Thu Apr 12 18:20:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christina Quast X-Patchwork-Id: 10339823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D38E06039A for ; Fri, 13 Apr 2018 11:10:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C633C2874A for ; Fri, 13 Apr 2018 11:10:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB1052875E; Fri, 13 Apr 2018 11:10:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F2A82874A for ; Fri, 13 Apr 2018 11:10:31 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CBBF42673B2; Fri, 13 Apr 2018 13:09:59 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7731126723C; Thu, 12 Apr 2018 20:20:51 +0200 (CEST) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com [209.85.214.45]) by alsa0.perex.cz (Postfix) with ESMTP id 8674D267140 for ; Thu, 12 Apr 2018 20:20:46 +0200 (CEST) Received: by mail-it0-f45.google.com with SMTP id 15-v6so48070itl.1 for ; Thu, 12 Apr 2018 11:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=28BqxkjLIgZo3CprFU84vMQCeYaWaJvjhDCqYP3/7tU=; b=G9jVuwpotlTzdJdAWwrZapFssx4S8isxBt/ZgUOD7E3Wq9Y7YJRYPPbNaf5/3cj4ZV /9avlKRdySjlFgXR5PtE7UXzw8i7G36vddVpmhygY8ZiYpPuDrTDkG+q2X1YbpYTtQ9U aunHnG3ypH9RB8KNKRV5XysXK0dyYDbUJI+vpWEZ8sctmR4+ucQBoiGFk2Vy3dAgUCFf ZMxxEi1fwek3U+dVsWRoCMUYTXBTxFNdToZhXOVFhn/4M6yRV2Rj2Z93/3XrpP9Oxdul bRx1hKy6mBc5AES5/knUlL7PyHpHEr9wl67TFyZ3W9gCy8+PF7ZIwJXDy6u9lfW4I7OM qRag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=28BqxkjLIgZo3CprFU84vMQCeYaWaJvjhDCqYP3/7tU=; b=O3b4Iz2LpSG80v1LYVVKVmNz4VQKgGiYqYZd1mf4bhstqhi7sF0yG7lAf2d3KhFHpR rDmfRfek2nlObHuj0OZ7XJ+ZiThg5FzlYiDpacSwMugyd8FiTB5vYNqsZBKhDxSzokUC lkEYW42ZwR0Qlrxk7RqQY5AFB9mDaSnSuCzu0rgBtEO+3MSJ1nKNpVD2/sfNjpPsI8Kj 9iXX3Uu2UVwn0HC6vw6xRRdoIz0qOBTWcqiTKRo4aB6uTznN2GP41aMJcOOjL4l+ElBr Qeos8MJwiEgw48Cpybhqjpqs7Tl49NYs/GB6CbtTedXUh26crK4ccTGwSJ2CV5+8lFnB mGTg== X-Gm-Message-State: ALQs6tCruUvD4LNrTFkKEXglYh4CTVbo8dFQxcSRpX3LtC/g+cYqP2X/ KZwx02X5p/M41umDM4S0+yF0mKchXFoLWWVSm1wP9g== X-Google-Smtp-Source: AIpwx4/rn+ws4BB9D7443RLysTocv/Wfx7db9FNGOtgyro4WrRcHIkRw1e1e2BrJHcEBcmyYUcwOERV6+CtOTGWb9/s= X-Received: by 2002:a24:9987:: with SMTP id a129-v6mr2058401ite.124.1523557245575; Thu, 12 Apr 2018 11:20:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.226.208 with HTTP; Thu, 12 Apr 2018 11:20:44 -0700 (PDT) From: Christina Quast Date: Thu, 12 Apr 2018 20:20:44 +0200 Message-ID: To: alsa-devel@alsa-project.org X-Mailman-Approved-At: Fri, 13 Apr 2018 13:09:49 +0200 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: o-takashi@sakamocchi.jp Subject: [alsa-devel] [PATCH] Documentation: sound: Corrected my_chip port element X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all! A small correction in the documentation. C. From ba905f3c693e6c793d5b6c63301a03305d101aa9 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Wed, 14 Feb 2018 12:08:52 +0100 Subject: [PATCH] Documentation: sound: Corrected my_chip port element Signed-off-by: Christina Quast --- Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst index a0b268466cb1..69f9413a0394 100644 --- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst +++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst @@ -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