Commit a6f4b5b2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

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

PCM Midlevel
- don't override the pre-allocated buffer id if already defined.
parent 8df6eea4
......@@ -223,8 +223,9 @@ static int snd_pcm_lib_preallocate_pages1(snd_pcm_substream_t *substream,
*/
static inline void setup_pcm_id(snd_pcm_substream_t *subs)
{
subs->dma_device.id = subs->pcm->device << 16 |
subs->stream << 8 | subs->number;
if (! subs->dma_device.id)
subs->dma_device.id = subs->pcm->device << 16 |
subs->stream << 8 | (subs->number + 1);
}
/**
......
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