Allow resampling. Some USB 1.1 devices, like my Midiman M-Audio Producer USB
authorbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 23 Apr 2014 23:33:42 +0000 (23:33 +0000)
committerbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 23 Apr 2014 23:33:42 +0000 (23:33 +0000)
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

index 6ff2989cbafedf0172e054f6aaeb6c9953ba9df4..2cd1a75f850d33819d16585c490401ace9e42ba0 100644 (file)
@@ -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");