*****SPAM***** Re: Oddity in snd_uaudio(4) driver?
Kazuhito HONDA
kazuhito at ph.noda.tus.ac.jp
Fri Sep 8 05:52:53 PDT 2006
Hello,
> Quoting Ed Schouten <ed at fxq.nl> (from Thu, 7 Sep 2006 13:38:20 +0200):
> >
> > If we would rewrite this code to something more basic, let's say we
> > rename 'speed' to 'x' and the UA_SAMP_ macros to some predefined
> > variables:
> >
> > | if (x >= 10 && x <= 20) {
> > | ...
> > | } else if (x < 10) {
> > | ...
> > | } else if (x < 20) {
> > | ...
> > | }
> >
In this example, UA_SAMP_ macros are exchanged to some constants.
But UA_SAMP_ macros don't have any predefined constants.
uaudio.c is a general driver for USB audio devices.
Each USB audio device has peculiar sampling rates.
They are different from those of another device.
UA_SAMP_macros give the peculiar sampling rates.
They can't be exchanged to some constants.
From: Alexander Leidinger <Alexander at Leidinger.net>
Subject: Re: Oddity in snd_uaudio(4) driver?
Date: Thu, 07 Sep 2006 14:27:44 +0200
> I assume the last part is a
> typo in the uaudio code and should be a '>' instead of a '<':
That's right.
Sincerely yours
Kazuhito HONDA
More information about the freebsd-hackers
mailing list