[alsa-devel] [PATCH 4/4] ALSA: hdspm - Enable 32 samples/period on RME RayDAT/AIO

Adrian Knoth adi at drcomp.erfurt.thur.de
Sun Aug 14 23:59:43 CEST 2011


On Sun, Aug 14, 2011 at 06:04:55PM +0200, Takashi Iwai wrote:

> > Newer RME cards like RayDAT and AIO support 32 samples per period. This
> > value is encoded as {1,1,1} in the HDSP_LatencyMask bits in the control
> > register.
> > 
> > Since {1,1,1} is also the representation for 8192 samples/period on
> > older RME cards, we have to special case 32 samples and 32768 bytes
> > according to the actual card.
> 
> IMO, it'd be better to change hdspm_decode_latency() instead.
> Otherwise similar corrections are needed in proc read functions.

Though decode_latency() is only used for MADI cards in proc_read_madi
and hence needs no further modification, I agree to make the driver a
little bit more DRY.

New patch series coming in a second.


Cheers

-- 
mail: adi at thur.de  	http://adi.thur.de	PGP/GPG: key via keyserver


More information about the Alsa-devel mailing list