Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #define MAXPACK 50 |
| 3 | #define MAXBUFFERMS 100 |
| 4 | #define MAXSTRIDE 3 |
| 5 | |
| 6 | #define SSS (((MAXPACK*MAXBUFFERMS*MAXSTRIDE + 4096) / 4096) * 4096) |
| 7 | struct snd_usX2Y_hwdep_pcm_shm { |
| 8 | char playback[SSS]; |
| 9 | char capture0x8[SSS]; |
| 10 | char capture0xA[SSS]; |
| 11 | volatile int playback_iso_head; |
| 12 | int playback_iso_start; |
| 13 | struct { |
| 14 | int frame, |
| 15 | offset, |
| 16 | length; |
| 17 | } captured_iso[128]; |
| 18 | volatile int captured_iso_head; |
| 19 | volatile unsigned captured_iso_frames; |
| 20 | int capture_iso_start; |
| 21 | }; |
Hannes Eder | 6193898 | 2009-02-25 22:26:48 +0100 | [diff] [blame] | 22 | |
| 23 | int usX2Y_hwdep_pcm_new(struct snd_card *card); |