From 85171640faa5412ea02c25383045f48eda0bf3e7 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 28 Feb 2005 08:25:12 +0000 Subject: [PATCH] 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. --- src/pcm/pcm_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.1