Commit 952f2fb2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

PCM Midlevel
fixed the buffer id confliction in the case of CONTINUOUS or ISA buffers.
parent 3f06603e
......@@ -224,9 +224,13 @@ static int snd_pcm_lib_preallocate_pages1(snd_pcm_substream_t *substream,
*/
static inline void setup_pcm_id(snd_pcm_substream_t *subs)
{
if (! subs->dma_device.id)
if (! subs->dma_device.id) {
subs->dma_device.id = subs->pcm->device << 16 |
subs->stream << 8 | (subs->number + 1);
if (subs->dma_device.type == SNDRV_DMA_TYPE_CONTINUOUS ||
subs->dma_device.dev == NULL)
subs->dma_device.id |= (subs->pcm->card->number + 1) << 24;
}
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment