All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Clemens Ladisch <clemens@ladisch.de>, Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v2 0/2] amidi: fix handling of ignored messages
Date: Sun, 14 Aug 2016 19:19:46 +0900	[thread overview]
Message-ID: <37ea9554-6954-5e5c-2843-7c8c4d884131@sakamocchi.jp> (raw)
In-Reply-To: <7105f8ec-be96-04af-45b0-e86326e1cf62@ladisch.de>

On Aug 13 2016 23:40, Clemens Ladisch wrote:
> Clemens Ladisch (2):
>       amidi: ignore not only Active Sensing but also Clock bytes
>       amidi: fix timeout handling
> 
> v2: fix short_options
> 
>  amidi/amidi.1 |   19 ++++++++---
>  amidi/amidi.c |   84 ++++++++++++++++++++++++++++++++++++++------------
>  2 files changed, 79 insertions(+), 24 deletions(-)

Reviewd-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

I tested these patches with loopbacked MIDI interface and this program.
Then, This command finishes as expected.
$ ./amidi -p hw:1,0,0 -d -t 5

-------- 8< --------

#include <stdio.h>
#include <stdlib.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#include <stdint.h>
#include <unistd.h>

int main(void)
{
        int fd;
        uint8_t buf = 0xfe;

        fd = open("/dev/snd/midiC1D0", O_WRONLY);
        if (fd < 0) {
                return EXIT_FAILURE;
        }

        while (write(fd, &buf, sizeof(buf)) > 0)
                ;

        close(fd);

        return EXIT_FAILURE;
}

-------- 8< --------


Regards

Takashi Sakamoto

  parent reply	other threads:[~2016-08-14 10:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-13 10:27 [PATCH 0/2] amidi: fix handling of ignored messages Clemens Ladisch
2016-08-13 10:28 ` [PATCH 1/2] amidi: ignore not only Active Sensing but also Clock bytes Clemens Ladisch
2016-08-13 11:14   ` Takashi Sakamoto
2016-08-13 11:27     ` Takashi Sakamoto
2016-08-13 14:40       ` [PATCH v2 0/2] amidi: fix handling of ignored messages Clemens Ladisch
2016-08-13 14:41         ` [PATCH v2 1/2] amidi: ignore not only Active Sensing but also Clock bytes Clemens Ladisch
2016-08-13 14:41         ` [PATCH v2 2/2] amidi: fix timeout handling Clemens Ladisch
2016-08-14 10:19         ` Takashi Sakamoto [this message]
2016-08-22  9:20         ` [PATCH v2 0/2] amidi: fix handling of ignored messages Takashi Iwai
2016-08-13 10:29 ` [PATCH 2/2] amidi: fix timeout handling Clemens Ladisch
2016-08-15 14:10 ` [PATCH 0/2] amidi: fix handling of ignored messages Felipe Ferreri Tonello
2016-08-15 14:31   ` Clemens Ladisch

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=37ea9554-6954-5e5c-2843-7c8c4d884131@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=tiwai@suse.de \
    /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.