card.h (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) card.h (3a572d94bcff98a14c94fe686881a169a26f3fca)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __USBAUDIO_CARD_H
3#define __USBAUDIO_CARD_H
4
5#define MAX_NR_RATES 1024
6#define MAX_PACKS 6 /* per URB */
7#define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */
8#define MAX_URBS 12

--- 18 unchanged lines hidden (view full) ---

27 unsigned int rates; /* rate bitmasks */
28 unsigned int rate_min, rate_max; /* min/max rates */
29 unsigned int nr_rates; /* number of rate table entries */
30 unsigned int *rate_table; /* rate table */
31 unsigned char clock; /* associated clock */
32 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */
33 bool dsd_dop; /* add DOP headers in case of DSD samples */
34 bool dsd_bitrev; /* reverse the bits of each DSD sample */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __USBAUDIO_CARD_H
3#define __USBAUDIO_CARD_H
4
5#define MAX_NR_RATES 1024
6#define MAX_PACKS 6 /* per URB */
7#define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */
8#define MAX_URBS 12

--- 18 unchanged lines hidden (view full) ---

27 unsigned int rates; /* rate bitmasks */
28 unsigned int rate_min, rate_max; /* min/max rates */
29 unsigned int nr_rates; /* number of rate table entries */
30 unsigned int *rate_table; /* rate table */
31 unsigned char clock; /* associated clock */
32 struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */
33 bool dsd_dop; /* add DOP headers in case of DSD samples */
34 bool dsd_bitrev; /* reverse the bits of each DSD sample */
35 bool dsd_raw; /* altsetting is raw DSD */
35};
36
37struct snd_usb_substream;
38struct snd_usb_endpoint;
39
40struct snd_urb_ctx {
41 struct urb *urb;
42 unsigned int buffer_size; /* size of data buffer, if data URB */

--- 129 unchanged lines hidden ---
36};
37
38struct snd_usb_substream;
39struct snd_usb_endpoint;
40
41struct snd_urb_ctx {
42 struct urb *urb;
43 unsigned int buffer_size; /* size of data buffer, if data URB */

--- 129 unchanged lines hidden ---