Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #define MAXPACK 50
0003 #define MAXBUFFERMS 100
0004 #define MAXSTRIDE 3
0005 
0006 #define SSS (((MAXPACK*MAXBUFFERMS*MAXSTRIDE + 4096) / 4096) * 4096)
0007 struct snd_usx2y_hwdep_pcm_shm {
0008     char playback[SSS];
0009     char capture0x8[SSS];
0010     char capture0xA[SSS];
0011     volatile int playback_iso_head;
0012     int playback_iso_start;
0013     struct {
0014         int frame,
0015             offset,
0016             length;
0017     } captured_iso[128];
0018     volatile int captured_iso_head;
0019     volatile unsigned captured_iso_frames;
0020     int capture_iso_start;
0021 };
0022 
0023 int usx2y_hwdep_pcm_new(struct snd_card *card);