mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix the available formats
Fixed the available formats to be set in hw_refine.
This commit is contained in:
parent
680a60a688
commit
7e74f2ef1b
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue