pcm:extplug: refinement of masks in extplug
PATCH 5/6 pcm:extplug: refinement of masks in extplug
From: Awais Belal <[email protected]>
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 <[email protected]>
Signed-off-by Mounesh Sutar <[email protected]>
src/pcm/pcm_extplug.c +2 -0
@@ -172,6 +172,8 @@ int snd_ext_parm_mask_refine(snd_mask_t *mask, struct snd_ext_parm *parm, int tyunsigned 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 );
Signature · 1 line
2.7.4
Takashi Iwai
AppliedQuoted 9 lines · On Fri, 17 Feb 2017 08:17:49 +0100, [email protected] wrote:
From: Awais Belal <[email protected]>
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 <[email protected]>Signed-off-by Mounesh Sutar <[email protected]>
Applied, thanks.
Takashi