From: Takashi Iwai Date: Tue, 21 Mar 2006 10:30:44 +0000 (+0000) Subject: Fix extplug->channels initialization X-Git-Tag: v1.0.11rc4~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=24a3cfc23677bf806a5212fd812dcf880695ffd1;p=alsa-lib.git Fix extplug->channels initialization Fixed the missing initialization of extplug->channels in hw_params. --- diff --git a/src/pcm/pcm_extplug.c b/src/pcm/pcm_extplug.c index fdccc53a..ce19b19f 100644 --- a/src/pcm/pcm_extplug.c +++ b/src/pcm/pcm_extplug.c @@ -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)