From: Jaroslav Kysela Date: Sat, 8 Feb 2003 09:26:43 +0000 (+0000) Subject: Added rmask/cmask handling in refine X-Git-Tag: v1.0.3~299 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c7d58f398e0420a882113705c49806fc1a3f79f2;p=alsa-lib.git Added rmask/cmask handling in refine --- diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 0e34f45a..85f9892c 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -200,6 +200,8 @@ static int snd_pcm_hw_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) if (err < 0) { snd_pcm_hw_params_t new = *params; + if (!(params->rmask & (1<cmask |= 1<cmask |= 1<cmask |= 1<cmask |= 1<