]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix extplug->channels initialization
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:30:44 +0000 (10:30 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:30:44 +0000 (10:30 +0000)
Fixed the missing initialization of extplug->channels in hw_params.

src/pcm/pcm_extplug.c

index fdccc53ae1e7f0543d4c9daaade50af7f5ba9e02..ce19b19fe1f85161071afab6304aefedc6afae8e 100644 (file)
@@ -300,6 +300,8 @@ static int snd_pcm_extplug_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params
        ext->data->rate = slave->rate;
        INTERNAL(snd_pcm_hw_params_get_format)(params, &ext->data->format);
        INTERNAL(snd_pcm_hw_params_get_subformat)(params, &ext->data->subformat);
+       INTERNAL(snd_pcm_hw_params_get_channels)(params, &ext->data->channels);
+
        if (ext->data->callback->hw_params) {
                err = ext->data->callback->hw_params(ext->data, params);
                if (err < 0)