mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added hooked PCM type (one sample hook implementation will follow). Some cleaning.
This commit is contained in:
parent
7f33541268
commit
7f651b3071
28 changed files with 702 additions and 128 deletions
|
|
@ -2067,7 +2067,7 @@ int _snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
|||
if (pcm->setup) {
|
||||
err = snd_pcm_hw_free(pcm);
|
||||
if (err < 0)
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
err = pcm->ops->hw_params(pcm->op_arg, params);
|
||||
if (err < 0)
|
||||
|
|
@ -2110,6 +2110,8 @@ int _snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
|||
pcm->access == SND_PCM_ACCESS_MMAP_COMPLEX) {
|
||||
err = snd_pcm_mmap(pcm);
|
||||
}
|
||||
return err;
|
||||
if (err < 0)
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue