Fix the available formats

Fixed the available formats to be set in hw_refine.
This commit is contained in:
Takashi Iwai 2005-01-21 19:38:10 +00:00
parent 680a60a688
commit 7e74f2ef1b

View 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)