From: Clemens Ladisch Date: Mon, 28 Feb 2005 08:25:12 +0000 (+0000) Subject: fix the file plugin X-Git-Tag: v1.0.9rc1~9 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=85171640faa5412ea02c25383045f48eda0bf3e7;p=alsa-lib.git fix the file plugin Call snd_pcm_file_hw_params instead of snd_pcm_generic_hw_params to prevent a crash when the file plugin is used. --- diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index 132fb23c..0947708e 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -340,7 +340,7 @@ static snd_pcm_ops_t snd_pcm_file_ops = { .close = snd_pcm_file_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_generic_hw_refine, - .hw_params = snd_pcm_generic_hw_params, + .hw_params = snd_pcm_file_hw_params, .hw_free = snd_pcm_file_hw_free, .sw_params = snd_pcm_generic_sw_params, .channel_info = snd_pcm_generic_channel_info,