From: Takashi Iwai <tiwai@suse.de>
To: David Henningsson <coding@diwic.se>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] sound: rawmidi: Add framing mode
Date: Fri, 26 Mar 2021 17:44:16 +0100 [thread overview]
Message-ID: <s5h1rc1lva7.wl-tiwai@suse.de> (raw)
In-Reply-To: <2ca71809-9872-bfee-c19d-76b6ce143212@diwic.se>
On Fri, 26 Mar 2021 17:29:04 +0100,
David Henningsson wrote:
>
> > But actually I'd like to see some measurement how much we can improve
> > the timestamp accuracy by shifting the post office. This may show
> > interesting numbers.
>
> Sorry, I don't know the idiom "shifting the post office" and neither
> does the urban dictionary, so I have no idea what this means. :-)
It was just joking; you basically moved the place to stamp the
incoming data from one place (at the delivery center of a sequencer
event) to another earlier place (at the irq handler).
The question is: how much time difference have you measured by this
move?
> > Also, one thing to be more considered is the support for MIDI v2 in
> > future. I haven't seen any development so far (and no device
> > available around), so I cannot comment on this much more, but it'd be
> > worth to take a quick look before defining the solid API/ABI.
>
> I had a quick look at MIDI 2.0. It offers something called "Jitter
> reduction timestamps". After some searching I found that its
> resolution is 16 bit, and in units of 1/31250 seconds [1]. So the
> suggested timestamp format of secs + nsecs would suit us well for that
> case, I believe. When implemented, MIDI 2.0 jitter reduction
> timestamps would be another clock ID on top of the existing frame
> format (or a new frame format, if we prefer).
>
> A midi 2.0 UMP (Universal Midi Packet) seems to be 4, 8, 12 or 16
> bytes, excluding the timestamp. If we want to fit that format with the
> existing patch, we could increase the frame to 32 bytes so we can fit
> more data per packet. Do you think we should do that? Otherwise I
> think Patch v3 is ready for merging.
Let's evaluate a bit what would be the best fit. I see no big reason
to rush the merge right now.
thanks,
Takashi
>
> // David
>
> [1] https://imitone.com/discover-midi/
>
next prev parent reply other threads:[~2021-03-26 16:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-24 5:42 [PATCH v2] sound: rawmidi: Add framing mode David Henningsson
2021-03-24 10:03 ` Takashi Iwai
2021-03-24 11:18 ` David Henningsson
2021-03-24 13:29 ` Takashi Sakamoto
2021-03-24 12:44 ` Takashi Sakamoto
2021-03-24 15:57 ` David Henningsson
2021-03-26 4:46 ` Takashi Sakamoto
2021-03-26 7:55 ` Takashi Iwai
2021-03-26 16:29 ` David Henningsson
2021-03-26 16:44 ` Takashi Iwai [this message]
2021-03-27 1:51 ` Takashi Sakamoto
2021-03-28 6:39 ` David Henningsson
2021-03-28 7:40 ` Takashi Iwai
2021-03-30 19:35 ` David Henningsson
2021-03-31 7:40 ` Takashi Iwai
2021-04-05 12:13 ` David Henningsson
2021-04-06 12:01 ` Takashi Iwai
2021-04-10 11:41 ` David Henningsson
2021-04-12 16:03 ` Takashi Iwai
2021-03-27 3:44 ` Takashi Sakamoto
2021-03-27 3:10 ` Takashi Sakamoto
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=s5h1rc1lva7.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=coding@diwic.se \
/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