Re: [Alsa-devel] patch #1 for hdsp MIDI

2003-01-14 Thread Takashi Iwai
Hi,

At Mon, 13 Jan 2003 08:34:21 -0500,
Paul Davis wrote:
> 
> Index: hdsp.c
> ===
> RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
> retrieving revision 1.16

thanks, it's on cvs now.


Takashi


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] patch #1 for hdsp MIDI

2003-01-13 Thread Mark Knecht
Paul,
   Thanks for looking onto this. We'll try to get it into the Alsa RPM
and tested soon.

Cheers,
Mark

On Mon, 2003-01-13 at 13:34, Paul Davis wrote:
> Index: hdsp.c
> ===
> RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
> retrieving revision 1.16
> diff -u -u -r1.16 hdsp.c
> --- hdsp.c  7 Jan 2003 10:36:32 -   1.16
> +++ hdsp.c  13 Jan 2003 13:32:32 -
> @@ -817,10 +817,18 @@
>  
>  static inline int snd_hdsp_midi_output_possible (hdsp_t *hdsp, int id)
>  {
> +   int fifo_bytes_used;
> +
> if (id) {
> -   return (hdsp_read(hdsp, HDSP_midiStatusOut1) & 0xff) < 128;
> +   fifo_bytes_used = hdsp_read(hdsp, HDSP_midiStatusOut1) & 0xff;
> } else {
> -   return (hdsp_read(hdsp, HDSP_midiStatusOut0) & 0xff)< 128;
> +   fifo_bytes_used = hdsp_read(hdsp, HDSP_midiStatusOut0) & 0xff;
> +   }
> +
> +   if (fifo_bytes_used < 128) {
> +   return  128 - fifo_bytes_used;
> +   } else {
> +   return 0;
> }
>  }
> 
> 
> ---
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> ___
> Alsa-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/alsa-devel




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] patch #1 for hdsp MIDI

2003-01-13 Thread Paul Davis
Index: hdsp.c
===
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
retrieving revision 1.16
diff -u -u -r1.16 hdsp.c
--- hdsp.c  7 Jan 2003 10:36:32 -   1.16
+++ hdsp.c  13 Jan 2003 13:32:32 -
@@ -817,10 +817,18 @@
 
 static inline int snd_hdsp_midi_output_possible (hdsp_t *hdsp, int id)
 {
+   int fifo_bytes_used;
+
if (id) {
-   return (hdsp_read(hdsp, HDSP_midiStatusOut1) & 0xff) < 128;
+   fifo_bytes_used = hdsp_read(hdsp, HDSP_midiStatusOut1) & 0xff;
} else {
-   return (hdsp_read(hdsp, HDSP_midiStatusOut0) & 0xff)< 128;
+   fifo_bytes_used = hdsp_read(hdsp, HDSP_midiStatusOut0) & 0xff;
+   }
+
+   if (fifo_bytes_used < 128) {
+   return  128 - fifo_bytes_used;
+   } else {
+   return 0;
}
 }


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel