aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/pcm.h
diff options
context:
space:
mode:
authorAndrej Krutak <dev@andree.sk>2016-09-18 20:59:23 +0200
committerTakashi Iwai <tiwai@suse.de>2016-09-19 23:00:10 +0200
commit7a0f55aeeb8f1fa32a119d34ddfefc6100936692 (patch)
treec09d5ec340198bad9fde8f47f9098233cb6859ab /sound/usb/line6/pcm.h
parentALSA: line6: Add high-speed USB support (diff)
downloadlinux-dev-7a0f55aeeb8f1fa32a119d34ddfefc6100936692.tar.xz
linux-dev-7a0f55aeeb8f1fa32a119d34ddfefc6100936692.zip
ALSA: line6: Support assymetrical in/out configurations
Splits max_packet_size to max_packet_size_in/out (e.g. for different channel counts). Signed-off-by: Andrej Krutak <dev@andree.sk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/pcm.h')
-rw-r--r--sound/usb/line6/pcm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/usb/line6/pcm.h b/sound/usb/line6/pcm.h
index f41e34166d68..f040c81a4843 100644
--- a/sound/usb/line6/pcm.h
+++ b/sound/usb/line6/pcm.h
@@ -156,11 +156,12 @@ struct snd_line6_pcm {
/* Previously captured frame (for software monitoring) */
unsigned char *prev_fbuf;
- /* Size of previously captured frame (for software monitoring) */
+ /* Size of previously captured frame (for software monitoring/sync) */
int prev_fsize;
/* Maximum size of USB packet */
- int max_packet_size;
+ int max_packet_size_in;
+ int max_packet_size_out;
/* PCM playback volume (left and right) */
int volume_playback[2];