15 Aug
2011
15 Aug
'11
12:59 a.m.
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@thur.de http://adi.thur.de PGP/GPG: key via keyserver