mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fixed I/O plugin insert
This commit is contained in:
parent
a6aee7bee0
commit
944f6f31ca
1 changed files with 3 additions and 3 deletions
|
|
@ -243,7 +243,7 @@ int snd_pcm_plugin_params(snd_pcm_t *pcm, snd_pcm_channel_params_t *params)
|
|||
|
||||
snd_pcm_plugin_clear(pcm, params->channel);
|
||||
|
||||
/* add necessary plugins */
|
||||
/* add necessary plugins */
|
||||
memcpy(¶ms1, params, sizeof(*params));
|
||||
if ((err = snd_pcm_plugin_format(pcm, ¶ms1, &hwparams, &hwinfo)) < 0)
|
||||
return err;
|
||||
|
|
@ -252,10 +252,10 @@ int snd_pcm_plugin_params(snd_pcm_t *pcm, snd_pcm_channel_params_t *params)
|
|||
* I/O plugins
|
||||
*/
|
||||
|
||||
if (hwinfo.mode == SND_PCM_MODE_STREAM) {
|
||||
if (params->mode == SND_PCM_MODE_STREAM) {
|
||||
pdprintf("params stream plugin\n");
|
||||
err = snd_pcm_plugin_build_stream(pcm, params->channel, &plugin);
|
||||
} else if (hwinfo.mode == SND_PCM_MODE_BLOCK) {
|
||||
} else if (params->mode == SND_PCM_MODE_BLOCK) {
|
||||
if (hwinfo.flags & SND_PCM_CHNINFO_MMAP) {
|
||||
pdprintf("params mmap plugin\n");
|
||||
err = snd_pcm_plugin_build_mmap(pcm, params->channel, &plugin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue