]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/core/pcm_lib.c
ALSA: pcm: support for period wakeup disabling
[mv-sheeva.git] / sound / core / pcm_lib.c
index b75db8e9cc0f36fff03d0ecf1884b23b3bad724b..bc57501c584affe54e44ae73a4e2b534bab6830b 100644 (file)
@@ -373,6 +373,11 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
                           (unsigned long)new_hw_ptr,
                           (unsigned long)runtime->hw_ptr_base);
        }
+
+       /* without period interrupts, there are no regular pointer updates */
+       if (runtime->no_period_wakeup)
+               goto no_delta_check;
+
        /* something must be really wrong */
        if (delta >= runtime->buffer_size + runtime->period_size) {
                hw_ptr_error(substream,
@@ -442,6 +447,7 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
                             (long)old_hw_ptr);
        }
 
+ no_delta_check:
        if (runtime->status->hw_ptr == new_hw_ptr)
                return 0;