]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix the available formats
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Jan 2005 19:38:10 +0000 (19:38 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Jan 2005 19:38:10 +0000 (19:38 +0000)
Fixed the available formats to be set in hw_refine.

src/pcm/pcm_softvol.c

index 73b411d0258b5da0c5d57d36dc0740182203118d..9a1b6be7fd3f1469eecb9dd6f6bafbb1646717ce 100644 (file)
@@ -290,7 +290,9 @@ static int snd_pcm_softvol_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED,
 {
        int err;
        snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM };
-       snd_pcm_format_mask_t format_mask = { SND_PCM_FMTBIT_LINEAR };
+       snd_pcm_format_mask_t format_mask = {
+               { (1U << SND_PCM_FORMAT_S16) | (1U << SND_PCM_FORMAT_S32) }
+       };
        err = _snd_pcm_hw_param_set_mask(params, SND_PCM_HW_PARAM_ACCESS,
                                         &access_mask);
        if (err < 0)