mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: extplug: refinement of masks in extplug
It should be possible to use empty mask format with extplug. The refinement of mask via extplug is now modified, to accept empty masks as well to work properly. Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Mounesh Sutar <sutar.mounesh@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a50496346f
commit
fbb9571381
1 changed files with 2 additions and 0 deletions
|
|
@ -172,6 +172,8 @@ int snd_ext_parm_mask_refine(snd_mask_t *mask, struct snd_ext_parm *parm, int ty
|
|||
unsigned int i;
|
||||
|
||||
parm += type;
|
||||
if (!parm->active)
|
||||
return 0;
|
||||
memset(&bits, 0, sizeof(bits));
|
||||
for (i = 0; i < parm->num_list; i++)
|
||||
bits.bits[parm->list[i] / 32] |= 1U << (parm->list[i] % 32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue