On Dec 16, 2010, at 4:28 PM, Maxim Levitsky wrote: > On Thu, 2010-12-16 at 14:00 -0500, Jarod Wilson wrote: >> Fix a thinko, and move macro definition to a common header so it can be >> shared amongst all drivers, as ms to us conversion is something that >> multiple drivers need to do. We probably ought to have its inverse >> available as well. > > > Nope, at least ENE gets 'us' samples, that is 10^-6 seconds, and I > multiply that by 1000, and that gives nanoseconds (10^-9). Huh, okay. I'd have expected it to be US_TO_NS then. I basically hijacked a copy over to mceusb and was using it for ms to us conversions. > I have nothing against moving MS_TO_NS to common code of course. I'll throw together something new in the relatively near future, will probably just add macros for both conversions and both directions. -- Jarod Wilson jarod@xxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html