-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathchip.h
40 lines (33 loc) · 973 Bytes
/
chip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Linux driver for Mytek Digital Stereo192-DSD DAC USB2
*
* Based on 6fire usb driver
*
* Adapted for Mytek by : Jurgen Kramer
* Last updated : Mar 15, 2014
* Copyright : (C) Jurgen Kramer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef MYTEK_CHIP_H
#define MYTEK_CHIP_H
#include "version.h"
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#include "common.h"
struct mytek_chip {
struct usb_device *dev;
struct snd_card *card;
int intf_count; /* number of registered interfaces */
int regidx; /* index in module parameter arrays */
bool shutdown;
bool usbworkaround;
struct pcm_runtime *pcm;
struct control_runtime *control;
struct comm_runtime *comm;
};
#endif /* MYTEK_CHIP_H */