duh, i forgot to change a bitmask, sorry alexander
Submitted by: Alexander Matey <matey@cis.ohio-state.edu>
This commit is contained in:
parent
3daa19c0bb
commit
a618cffeb8
@ -79,7 +79,7 @@ currently minor = (channel << 16) + (unit << 4) + dev
|
||||
*/
|
||||
|
||||
#define PCMMINOR(x) (minor(x))
|
||||
#define PCMCHAN(x) ((PCMMINOR(x) & 0x0000ff00) >> 16)
|
||||
#define PCMCHAN(x) ((PCMMINOR(x) & 0x00ff0000) >> 16)
|
||||
#define PCMUNIT(x) ((PCMMINOR(x) & 0x000000f0) >> 4)
|
||||
#define PCMDEV(x) (PCMMINOR(x) & 0x0000000f)
|
||||
#define PCMMKMINOR(u, d, c) ((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f))
|
||||
|
Loading…
Reference in New Issue
Block a user