Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49045d3d authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela
Browse files

[ALSA] usb-audio: add SNDRV_PCM_INFO_BATCH flag



USB generic driver
Add the SNDRV_PCM_INFO_BATCH flag to the PCM hardware information to
indicate that the driver uses double buffering.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 025cd2f6
Loading
Loading
Loading
Loading
+10 −6
Original line number Original line Diff line number Diff line
@@ -1439,9 +1439,11 @@ static int snd_usb_pcm_prepare(snd_pcm_substream_t *substream)


static snd_pcm_hardware_t snd_usb_playback =
static snd_pcm_hardware_t snd_usb_playback =
{
{
	.info =			(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
	.info =			SNDRV_PCM_INFO_MMAP |
				 SNDRV_PCM_INFO_BLOCK_TRANSFER |
				SNDRV_PCM_INFO_MMAP_VALID |
				 SNDRV_PCM_INFO_MMAP_VALID),
				SNDRV_PCM_INFO_BATCH |
				SNDRV_PCM_INFO_INTERLEAVED |
				SNDRV_PCM_INFO_BLOCK_TRANSFER,
	.buffer_bytes_max =	(256*1024),
	.buffer_bytes_max =	(256*1024),
	.period_bytes_min =	64,
	.period_bytes_min =	64,
	.period_bytes_max =	(128*1024),
	.period_bytes_max =	(128*1024),
@@ -1451,9 +1453,11 @@ static snd_pcm_hardware_t snd_usb_playback =


static snd_pcm_hardware_t snd_usb_capture =
static snd_pcm_hardware_t snd_usb_capture =
{
{
	.info =			(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
	.info =			SNDRV_PCM_INFO_MMAP |
				 SNDRV_PCM_INFO_BLOCK_TRANSFER |
				SNDRV_PCM_INFO_MMAP_VALID |
				 SNDRV_PCM_INFO_MMAP_VALID),
				SNDRV_PCM_INFO_BATCH |
				SNDRV_PCM_INFO_INTERLEAVED |
				SNDRV_PCM_INFO_BLOCK_TRANSFER,
	.buffer_bytes_max =	(256*1024),
	.buffer_bytes_max =	(256*1024),
	.period_bytes_min =	64,
	.period_bytes_min =	64,
	.period_bytes_max =	(128*1024),
	.period_bytes_max =	(128*1024),