All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@alsa-project.org
Subject: [PATCH alsa-driver asihpi] Fix StreamGetInfo
Date: Thu, 02 Aug 2007 10:35:23 +1200	[thread overview]
Message-ID: <200708021035.23240.linux@audioscience.com> (raw)

StreamGetInfo queried wrong stream type.
(minor) correct case of Playback and Capture control names

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
---

diff -r a2861559e4ed pci/asihpi/asihpi.c
--- a/pci/asihpi/asihpi.c       Fri Jul 27 08:54:15 2007 +1200
+++ b/pci/asihpi/asihpi.c       Thu Aug 02 10:25:24 2007 +1200
@@ -228,11 +228,11 @@ static inline u16 HPI_StreamGetInfoEx(HP
                                      u32 * pdwAuxiliaryData)
 {
        if (HPI_HandleObject(hStream) == HPI_OBJ_OSTREAM)
-               return HPI_InStreamGetInfoEx(hS, hStream, pwState,
+               return HPI_OutStreamGetInfoEx(hS, hStream, pwState,
                                             pdwBufferSize, pdwDataInBuffer,
                                             pdwSampleCount, pdwAuxiliaryData);
        else
-               return HPI_OutStreamGetInfoEx(hS, hStream, pwState,
+               return HPI_InStreamGetInfoEx(hS, hStream, pwState,
                                              pdwBufferSize, pdwDataInBuffer,
                                              pdwSampleCount, pdwAuxiliaryData);
 }
@@ -1201,7 +1201,7 @@ struct hpi_control {
 #define ASIHPI_SOURCENODE_STRINGS \
 { \
        TEXT("no source"), \
-       TEXT("PCM playback"), \
+       TEXT("PCM Playback"), \
        TEXT("Line in"), \
        TEXT("Digital in"), \
        TEXT("Tuner"), \
@@ -1230,7 +1230,7 @@ struct hpi_control {
 #define ASIHPI_DESTNODE_STRINGS \
 { \
        TEXT("no destination"), \
-       TEXT("PCM capture"), \
+       TEXT("PCM Capture"), \
        TEXT("Line out"), \
        TEXT("Digital out"), \
        TEXT("RF"), \

             reply	other threads:[~2007-08-01 22:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-01 22:35 Eliot Blennerhassett [this message]
2007-08-02 12:19 ` [PATCH alsa-driver asihpi] Fix StreamGetInfo Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200708021035.23240.linux@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.