usx2yhwdeppcm.h 507 B

1234567891011121314151617181920212223
  1. #define MAXPACK 50
  2. #define MAXBUFFERMS 100
  3. #define MAXSTRIDE 3
  4. #define SSS (((MAXPACK*MAXBUFFERMS*MAXSTRIDE + 4096) / 4096) * 4096)
  5. struct snd_usX2Y_hwdep_pcm_shm {
  6. char playback[SSS];
  7. char capture0x8[SSS];
  8. char capture0xA[SSS];
  9. volatile int playback_iso_head;
  10. int playback_iso_start;
  11. struct {
  12. int frame,
  13. offset,
  14. length;
  15. } captured_iso[128];
  16. volatile int captured_iso_head;
  17. volatile unsigned captured_iso_frames;
  18. int capture_iso_start;
  19. };
  20. int usX2Y_hwdep_pcm_new(struct snd_card *card);