* OSX Core Audio ASYNC OUT with rate feedback format ?
@ 2010-09-30 3:47 Alex
2010-10-01 1:20 ` Alex
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Alex @ 2010-09-30 3:47 UTC (permalink / raw)
To: alsa-devel
Hi Daniel et al,
I have successfully interfaced the sdr-widget with Linux alsa-driver
for ASYNC
OUT with rate feedback. Found out after much trial
and error and reading of the
usbaudio alsa-driver source code that you are
using 12.13 as the format for the
feedback rate !!! I was trying with 10.14 (UAC1 v1.2 specs
, I think) in 3 bytes,
and 16.16 (USB 2.0) in 4 bytes for quite a number of days
with no success !!!
However, 12.13 in 4 bytes, whilst working like a charm
with Linux, does NOT work
with OSX.
Would you know the format used by OSX?
Thanks.
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSX Core Audio ASYNC OUT with rate feedback format ?
2010-09-30 3:47 OSX Core Audio ASYNC OUT with rate feedback format ? Alex
@ 2010-10-01 1:20 ` Alex
2010-10-01 1:30 ` Alex
2010-10-01 6:47 ` Clemens Ladisch
2 siblings, 0 replies; 6+ messages in thread
From: Alex @ 2010-10-01 1:20 UTC (permalink / raw)
To: alsa-devel
Alex <lee188 <at> singnet.com.sg> writes:
>
> Hi Daniel et al,
>
> I have successfully interfaced the sdr-widget with Linux alsa-driver
> for ASYNC
> OUT with rate feedback. Found out after much trial
> and error and reading of the
> usbaudio alsa-driver source code that you are
> using 12.13 as the format for the
> feedback rate !!! I was trying with 10.14 (UAC1 v1.2 specs
> , I think) in 3 bytes,
> and 16.16 (USB 2.0) in 4 bytes for quite a number of days
> with no success !!!
>
> However, 12.13 in 4 bytes, whilst working like a charm
> with Linux, does NOT work
> with OSX.
>
> Would you know the format used by OSX?
>
> Thanks.
>
> Alex
>
Hi Daniel et al,
Found out by reading the apple Core Audio source code that it is using 16.16
format for rate feedback. This is in accordance with USB 2.0 ISOCHRONOUS
feedback specs. The current configuration is UAC1 with HIGH speed.
I'm now testing the sdr-widget (with a version of firmware implementing 16.16)
with OSX Snow Leopard as host.
Once this works we are going to implement the ASYNC OUT with rate feedback in
UAC2, which will give us 48/96/192 khz 24 bit stereo capture and playback in
both ASYNC IN and ASYNC OUT.
I am hoping that the same firmware could work in both OSX and Linux.
Is there any particular reason why the Linux driver uses 12.13 format ?
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSX Core Audio ASYNC OUT with rate feedback format ?
2010-09-30 3:47 OSX Core Audio ASYNC OUT with rate feedback format ? Alex
2010-10-01 1:20 ` Alex
@ 2010-10-01 1:30 ` Alex
2010-10-01 2:58 ` Alex
2010-10-01 6:47 ` Clemens Ladisch
2 siblings, 1 reply; 6+ messages in thread
From: Alex @ 2010-10-01 1:30 UTC (permalink / raw)
To: alsa-devel
Alex <lee188 <at> singnet.com.sg> writes:
>
> Hi Daniel et al,
>
> I have successfully interfaced the sdr-widget with Linux alsa-driver
> for ASYNC
> OUT with rate feedback. Found out after much trial
> and error and reading of the
> usbaudio alsa-driver source code that you are
> using 12.13 as the format for the
> feedback rate !!! I was trying with 10.14 (UAC1 v1.2 specs
> , I think) in 3 bytes,
> and 16.16 (USB 2.0) in 4 bytes for quite a number of days
> with no success !!!
>
> However, 12.13 in 4 bytes, whilst working like a charm
> with Linux, does NOT work
> with OSX.
>
> Would you know the format used by OSX?
>
> Thanks.
>
> Alex
>
Hi Daniel et al,
This is an excerpt from:
http://www.opensource.apple.com/source/AppleUSBAudio/AppleUSBAudio-
273.4.1/AppleUSBAudioStream.cpp
==============================================================
associatedEndpoint.type = kUSBIsoc;
associatedEndpoint.direction = kUSBIn;
// The associated endpoint always goes "in"
// The sample rate should be either
a 3-byte 10.14 or a 4-byte 16.16
associatedEndpoint.maxPacketSize = mFeedbackPacketSize;
associatedEndpoint.interval = 0xFF;
mAssociatedPipe = mStreamInterface->FindNextPipe (NULL,
&associatedEndpoint);
FailWithAction (NULL == mAssociatedPipe, result =
kIOReturnError, Exit);
===============================================================
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSX Core Audio ASYNC OUT with rate feedback format ?
2010-10-01 1:30 ` Alex
@ 2010-10-01 2:58 ` Alex
0 siblings, 0 replies; 6+ messages in thread
From: Alex @ 2010-10-01 2:58 UTC (permalink / raw)
To: alsa-devel
Hi Daniel et al,
I can confirm 16.16 rate feedback format works with OSX.
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSX Core Audio ASYNC OUT with rate feedback format ?
2010-09-30 3:47 OSX Core Audio ASYNC OUT with rate feedback format ? Alex
2010-10-01 1:20 ` Alex
2010-10-01 1:30 ` Alex
@ 2010-10-01 6:47 ` Clemens Ladisch
2010-10-01 9:25 ` Alex
2 siblings, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2010-10-01 6:47 UTC (permalink / raw)
To: Alex; +Cc: alsa-devel
Alex wrote:
> I have successfully interfaced the sdr-widget with Linux alsa-driver for ASYNC
> OUT with rate feedback. Found out after much trial and error and reading of the
> usbaudio alsa-driver source code that you are using 12.13 as the format for the
> feedback rate !!! I was trying with 10.14 (UAC1 v1.2 specs, I think) in 3 bytes,
> and 16.16 (USB 2.0) in 4 bytes for quite a number of days with no success !!!
>
> However, 12.13 in 4 bytes, whilst working like a charm with Linux, does NOT work
> with OSX.
Linux currently doesn't look at the endpoint packet size to determine
the feedback format.
I'll change the driver so that it accepts any format.
Regards,
Clemens
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSX Core Audio ASYNC OUT with rate feedback format ?
2010-10-01 6:47 ` Clemens Ladisch
@ 2010-10-01 9:25 ` Alex
0 siblings, 0 replies; 6+ messages in thread
From: Alex @ 2010-10-01 9:25 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel@alsa-project.org
> Hi Clemens,
Great thanks. 3 bytes 10.14 and 4 bytes 16.16 will be compatible :-)
Regards,
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-10-01 9:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 3:47 OSX Core Audio ASYNC OUT with rate feedback format ? Alex
2010-10-01 1:20 ` Alex
2010-10-01 1:30 ` Alex
2010-10-01 2:58 ` Alex
2010-10-01 6:47 ` Clemens Ladisch
2010-10-01 9:25 ` Alex
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.