From 4dc17f5c34ec9c8674c4fe1a61fab4b73fef163e Mon Sep 17 00:00:00 2001 From: bruceperens Date: Wed, 23 Apr 2014 23:33:42 +0000 Subject: [PATCH] Allow resampling. Some USB 1.1 devices, like my Midiman M-Audio Producer USB microphone, will intermittently fail to negotiate sufficient bus bandwidth if resampling is disabled. git-svn-id: https://svn.code.sf.net/p/freetel/code@1551 01035d8c-6547-0410-b346-abe4f91aad63 --- freedv-server/source/platform/linux/alsa.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/freedv-server/source/platform/linux/alsa.cpp b/freedv-server/source/platform/linux/alsa.cpp index 6ff2989c..2cd1a75f 100644 --- a/freedv-server/source/platform/linux/alsa.cpp +++ b/freedv-server/source/platform/linux/alsa.cpp @@ -271,11 +271,6 @@ namespace FreeDV { do_throw(error, name, stream, "Set rate"); } - if ( (error = snd_pcm_hw_params_set_rate_resample(handle, hw_params, 0)) < 0 ) { - snd_pcm_close(handle); - do_throw(error, name, stream, "Disable resampling"); - } - if ( (error = snd_pcm_hw_params_set_period_size_near(handle, hw_params, &period_size, 0)) < 0 ) { snd_pcm_close(handle); do_throw(error, name, stream, "Set I/O period size"); -- 2.25.1