[From nobody Thu May 28 13:04:26 2009
Return-Path: &lt;timc@wnsp.com&gt;
X-Original-To: tronic@trn.iki.fi
Delivered-To: tronic@trn.iki.fi
Received: from trn.iki.fi (localhost [127.0.0.1])
	by trn.iki.fi (Postfix) with ESMTP id 63FFA45B7D2A5
	for &lt;tronic@trn.iki.fi&gt;; Fri, 14 Nov 2008 17:00:58 +0200 (EET)
Received: from epiphanyhosting.com (epiphanyhosting.com [69.20.16.212])
	by trn.iki.fi (Postfix) with ESMTP
	for &lt;tronic+cv5n@trn.iki.fi&gt;; Fri, 14 Nov 2008 17:00:57 +0200 (EET)
Received: (qmail 31530 invoked from network); 14 Nov 2008 09:00:57 -0600
Received: from unknown (HELO ?192.168.2.244?) (69.57.49.1)
	by epiphanyhosting.com with SMTP; 14 Nov 2008 09:00:56 -0600
Subject: Re: [alsa-devel] Roland/Edirol M-16DX
From: Tim Camp &lt;timc@wnsp.com&gt;
Reply-To: timc@wnsp.com
To: James Trevelyan &lt;james@jamestrev.com&gt;
Cc: Lasse =?ISO-8859-1?Q?K=E4rkk=E4inen?= &lt;tronic+cv5n@trn.iki.fi&gt;,
	alsa-devel@alsa-project.org, clemens@ladisch.de, james@jamestrevelyan.com
In-Reply-To: &lt;1226624101.4836.95.camel@localhost&gt;
References: &lt;487F10EE.6030405@trn.iki.fi&gt; &lt;48883AAC.6060101@ladisch.de&gt;
	&lt;4917B029.7010809@trn.iki.fi&gt;  &lt;491C6E10.7090308@trn.iki.fi&gt;
	&lt;1226624101.4836.95.camel@localhost&gt;
Content-Type: text/plain; charset=utf-8
Organization: Dot Com Plus L.L.C.
Date: Fri, 14 Nov 2008 08:59:19 -0600
Message-Id: &lt;1226674759.16066.3.camel@operations.dotcom&gt;
Mime-Version: 1.0
X-Mailer: Evolution 2.22.1.1 
Content-Transfer-Encoding: 8bit
X-LimZero: valid lzID=cv5n

James,

Reading your email I was struck by something.
I also have a digital I/O connected to the mixer from the pc.
I wonder if this is allowing the clocks to sync?

Just a thought.

Tim

On Fri, 2008-11-14 at 00:55 +0000, James Trevelyan wrote:
&gt; On Thu, 2008-11-13 at 20:12 +0200, Lasse Kärkkäinen wrote:
&gt; &gt; Has anyone been able to solve the distortion problem yet?
&gt; &gt; 
&gt; &gt; It seems like a broken ringbuffer implementation. The distortion itself 
&gt; &gt; seems to be just the signal itself in different phase. I tested this 
&gt; &gt; with a 441 Hz (100 samples) sine wave played thru the device and 
&gt; &gt; recorded back. The recording is here:
&gt; &gt; http://zi.fi/debug/M16DX-bug.flac
&gt; 
&gt; I haven't solved it yet, though I exchanged emails with Tim Camp who
&gt; reported that he had this working when the device was set to 44.1khz (I
&gt; haven't had a chance to try this)
&gt; 
&gt; I had previously done something similar to Lasse in re-recording a test
&gt; signal and noticed the same interesting patterns.  However, I also did
&gt; some usb-logging, and when I reassembled the data stream being sent to
&gt; the device it was as it should be, i.e. uncorrupted, suggesting that the
&gt; distortion is being caused in the device, and the driver isn't sending a
&gt; corrupted data stream (though obviously something in the way it is sent
&gt; is upsetting the device)
&gt; 
&gt; I also did some usb-logging under Windows (where it works) and
&gt; disappointingly couldn't see any obvious difference in the way the data
&gt; was sent.  I played around with things like the size of the urbs in the
&gt; driver to try to make the raw usb data look the same, but it had no
&gt; effect.
&gt; 
&gt; However, what I did notice is that in all circumstances the windows
&gt; driver was capturing at the same time as playback, even when I was not
&gt; asking it to record.  This suggests to me that the comment in the driver
&gt; source about synchronising playback to capture has some relevance ...
&gt; 
&gt; James
&gt; 

]