Skip to contentSkip to conversation

Fix StreamGetInfo

PATCH Applied Eliot Blennerhassett 2 participants 2 messages Aug 1, 2007 – Aug 2, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix StreamGetInfo

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

---

pci/asihpi/asihpi.c Thu Aug 02 10:25:24 2007 +1200 renamed from pci/asihpi/asihpi.c Fri Jul 27 08:54:15 2007 +1200 +4 -4
diff -r a2861559e4ed pci/asihpi/asihpi.c
@@ -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"), \
Applied
#1 lore raw

At Thu, 02 Aug 2007 10:35:23 +1200,

Quoted 5 lines · Eliot Blennerhassett

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

Thanks, applied to HG tree.
(BTW, the patch was broken due to MUA. Please use attachments if it's
difficult to fix.)

Takashi

Quoted 42 lines

---

diff -r a2861559e4ed pci/asihpi/asihpi.c

pci/asihpi/asihpi.c Thu Aug 02 10:25:24 2007 +1200 renamed from pci/asihpi/asihpi.c Fri Jul 27 08:54:15 2007 +1200 +4 -4
@@ -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"), \

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel