]> code.delx.au - pulseaudio/commitdiff
alsa: Log some output if we disable tsched for BATCH devices
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 6 Dec 2013 14:00:15 +0000 (06:00 -0800)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 6 Dec 2013 14:00:15 +0000 (06:00 -0800)
src/modules/alsa/alsa-util.c

index 4b24e4726337767e391cc1e1cf7c5f537b73483c..73b133210229f4a7db6ca4cee479672c8256a020 100644 (file)
@@ -246,8 +246,10 @@ int pa_alsa_set_hw_params(
         _use_tsched = false;
 
     /* The PCM pointer is only updated with period granularity */
-    if (snd_pcm_hw_params_is_batch(hwparams))
+    if (snd_pcm_hw_params_is_batch(hwparams)) {
+        pa_log_info("Disabling tsched mode since BATCH flag is set");
         _use_tsched = false;
+    }
 
 #if (SND_LIB_VERSION >= ((1<<16)|(0<<8)|24)) /* API additions in 1.0.24 */
     if (_use_tsched) {