uaudioreg.h (209452) | uaudioreg.h (233774) |
---|---|
1/* $NetBSD: uaudioreg.h,v 1.12 2004/11/05 19:08:29 kent Exp $ */ | 1/* $NetBSD: uaudioreg.h,v 1.12 2004/11/05 19:08:29 kent Exp $ */ |
2/* $FreeBSD: head/sys/dev/sound/usb/uaudioreg.h 209452 2010-06-22 21:16:18Z thompsa $ */ | 2/* $FreeBSD: head/sys/dev/sound/usb/uaudioreg.h 233774 2012-04-02 10:50:42Z hselasky $ */ |
3 4/*- 5 * Copyright (c) 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Lennart Augustsson (lennart@augustsson.net) at 10 * Carlstedt Research & Technology. --- 97 unchanged lines hidden (view full) --- 108 uByte bDescriptorSubtype; 109 uByte bFormatType; 110 uByte bNrChannels; 111 uByte bSubFrameSize; 112 uByte bBitResolution; 113 uByte bSamFreqType; 114#define UA_SAMP_CONTNUOUS 0 115 uByte tSamFreq[0]; | 3 4/*- 5 * Copyright (c) 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Lennart Augustsson (lennart@augustsson.net) at 10 * Carlstedt Research & Technology. --- 97 unchanged lines hidden (view full) --- 108 uByte bDescriptorSubtype; 109 uByte bFormatType; 110 uByte bNrChannels; 111 uByte bSubFrameSize; 112 uByte bBitResolution; 113 uByte bSamFreqType; 114#define UA_SAMP_CONTNUOUS 0 115 uByte tSamFreq[0]; |
116#define UA_GETSAMP(p, n) (((p)->tSamFreq[((n)*3)+0]) | \ | 116#define UA_GETSAMP(p, n) ((uint32_t)((((p)->tSamFreq[((n)*3)+0]) | \ |
117 ((p)->tSamFreq[((n)*3)+1] << 8) | \ | 117 ((p)->tSamFreq[((n)*3)+1] << 8) | \ |
118 ((p)->tSamFreq[((n)*3)+2] << 16)) | 118 ((p)->tSamFreq[((n)*3)+2] << 16)))) |
119#define UA_SAMP_LO(p) UA_GETSAMP(p, 0) 120#define UA_SAMP_HI(p) UA_GETSAMP(p, 1) 121} __packed; 122 123struct usb_audio_cluster { 124 uByte bNrChannels; 125 uWord wChannelConfig; 126#define UA_CHANNEL_LEFT 0x0001 --- 278 unchanged lines hidden --- | 119#define UA_SAMP_LO(p) UA_GETSAMP(p, 0) 120#define UA_SAMP_HI(p) UA_GETSAMP(p, 1) 121} __packed; 122 123struct usb_audio_cluster { 124 uByte bNrChannels; 125 uWord wChannelConfig; 126#define UA_CHANNEL_LEFT 0x0001 --- 278 unchanged lines hidden --- |