mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fix interleave check in pcm_direct.c
Fix the check of interleaved format. It checked a totally bogus value as PCM format. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8d3fb3102f
commit
118fedb90a
1 changed files with 1 additions and 1 deletions
|
|
@ -1293,7 +1293,7 @@ int snd_pcm_direct_check_interleave(snd_pcm_direct_t *dmix, snd_pcm_t *pcm)
|
|||
const snd_pcm_channel_area_t *dst_areas;
|
||||
const snd_pcm_channel_area_t *src_areas;
|
||||
|
||||
bits = snd_pcm_format_physical_width(dmix->type);
|
||||
bits = snd_pcm_format_physical_width(pcm->format);
|
||||
if ((bits % 8) != 0)
|
||||
interleaved = 0;
|
||||
channels = dmix->channels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue