Remove non-jackdbus man pages
[jackdbus.git] / linux / alsa / usx2y.h
blob522d19a86459e682f464996b969d07a2b56a30ec
1 /*
2 Copyright (C) 2001 Paul Davis
3 Copyright (C) 2004 Karsten Wiese, Rui Nuno Capela
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 $Id: usx2y.h 855 2004-12-28 05:50:18Z joq $
22 #ifndef __jack_usx2y_h__
23 #define __jack_usx2y_h__
25 #define USX2Y_MAXPACK 50
26 #define USX2Y_MAXBUFFERMS 100
27 #define USX2Y_MAXSTRIDE 3
29 #define USX2Y_SSS (((USX2Y_MAXPACK * USX2Y_MAXBUFFERMS * USX2Y_MAXSTRIDE + 4096) / 4096) * 4096)
31 struct snd_usX2Y_hwdep_pcm_shm
33 char playback[USX2Y_SSS];
34 char capture0x8[USX2Y_SSS];
35 char capture0xA[USX2Y_SSS];
36 volatile int playback_iso_head;
37 int playback_iso_start;
38 struct
40 int frame,
41 offset,
42 length;
44 captured_iso[128];
45 volatile int captured_iso_head;
46 volatile unsigned captured_iso_frames;
47 int capture_iso_start;
49 typedef struct snd_usX2Y_hwdep_pcm_shm snd_usX2Y_hwdep_pcm_shm_t;
51 typedef struct
53 alsa_driver_t *driver;
54 snd_hwdep_t *hwdep_handle;
55 struct pollfd pfds;
56 struct snd_usX2Y_hwdep_pcm_shm *hwdep_pcm_shm;
57 int playback_iso_start;
58 int playback_iso_bytes_done;
59 int capture_iso_start;
60 int capture_iso_bytes_done;
62 usx2y_t;
64 jack_hardware_t *
65 jack_alsa_usx2y_hw_new (alsa_driver_t *driver);
67 #endif /* __jack_usx2y_h__*/