From: Alex Subject: Re: OSX Core Audio ASYNC OUT with rate feedback format ? Date: Fri, 1 Oct 2010 01:30:13 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by alsa0.perex.cz (Postfix) with ESMTP id 710E0103991 for ; Fri, 1 Oct 2010 03:30:27 +0200 (CEST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1US7-0008EN-Mv for alsa-devel@alsa-project.org; Fri, 01 Oct 2010 03:30:23 +0200 Received: from 220.255.7.233 ([220.255.7.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 03:30:23 +0200 Received: from lee188 by 220.255.7.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 03:30:23 +0200 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Alex 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