Skip to content

Commit

Permalink
[ALSA] usb-audio: increase max buffer size
Browse files Browse the repository at this point in the history
USB generic driver
Increase the maximum PCM buffer size to 1 MB.  The USB driver doesn't
have any inherent buffer size limit, and big multichannel interfaces
may benefit from this.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed Oct 7, 2005
1 parent 31ab952 commit d31cbbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,9 +1444,9 @@ static snd_pcm_hardware_t snd_usb_playback =
SNDRV_PCM_INFO_BATCH |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER,
.buffer_bytes_max = (256*1024),
.buffer_bytes_max = 1024 * 1024,
.period_bytes_min = 64,
.period_bytes_max = (128*1024),
.period_bytes_max = 512 * 1024,
.periods_min = 2,
.periods_max = 1024,
};
Expand All @@ -1458,9 +1458,9 @@ static snd_pcm_hardware_t snd_usb_capture =
SNDRV_PCM_INFO_BATCH |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER,
.buffer_bytes_max = (256*1024),
.buffer_bytes_max = 1024 * 1024,
.period_bytes_min = 64,
.period_bytes_max = (128*1024),
.period_bytes_max = 512 * 1024,
.periods_min = 2,
.periods_max = 1024,
};
Expand Down

0 comments on commit d31cbbf

Please sign in to comment.