Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@attbi.com>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: Alsa-Devel <alsa-devel@lists.sourceforge.net>
Subject: Re: patch #1 for hdsp MIDI
Date: 14 Jan 2003 14:11:18 +0000	[thread overview]
Message-ID: <1042553484.1245.0.camel@Godzilla> (raw)
In-Reply-To: <200301131334.h0DDYL810629@linuxaudiosystems.com>

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 -0000       1.16
> +++ hdsp.c      13 Jan 2003 13:32:32 -0000
> @@ -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
> Alsa-devel@lists.sourceforge.net
> 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

      parent reply	other threads:[~2003-01-14 14:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13 13:34 patch #1 for hdsp MIDI Paul Davis
2003-01-14 14:04 ` Takashi Iwai
2003-01-14 14:11 ` Mark Knecht [this message]

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=1042553484.1245.0.camel@Godzilla \
    --to=markknecht@attbi.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=paul@linuxaudiosystems.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox