[alsa-devel] [PATCH alsa-driver asihpi] Fix StreamGetInfo

Takashi Iwai tiwai at suse.de
Thu Aug 2 14:19:39 CEST 2007


At Thu, 02 Aug 2007 10:35:23 +1200,
Eliot Blennerhassett wrote:
> 
> StreamGetInfo queried wrong stream type.
> (minor) correct case of Playback and Capture control names
> 
> Signed-off-by: Eliot Blennerhassett <eblennerhassett at audioscience.com>

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


Takashi

> ---
> 
> 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"), \
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list