if hw ptr is 612 bytes ahead of appl ptr (underfunded) , why do pa still rewind the appl ptr ?
should it use snd_pcm_forward to move the application ptr to he ptr and rewrite the audio to recover the under run? http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html snd_pcm_sframes_t snd_pcm_rewind (snd_pcm_t *pcm, snd_pcm_uframes_t frames) Move application frame position backward. snd_pcm_sframes_t snd_pcm_forward (snd_pcm_t *pcm, snd_pcm_uframes_t frames) Move application frame position forward. 26.841| 0.000) I: [pulseaudio] module-stream-restore.c: Storing volume/mute/device for stream sink-input-by-application-name:ALSA plug-in [plugin-container]. ( 26.842| 0.001) D: [alsa-sink-HDMI 0] protocol-native.c: Requesting rewind due to end of underrun. ( 26.842| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 65536 bytes. ( 26.842| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 3192 bytes. ( 26.842| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: before: 798 ( 26.842| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: after: 798 ( 26.842| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 3192 bytes. ( 26.843| 0.000) D: [alsa-sink-HDMI 0] sink.c: Processing rewind... ( 26.843| 0.000) D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 3192 bytes on render memblockq. ( 26.843| 0.000) D: [alsa-sink-HDMI 0] source.c: Processing rewind... ( 26.847| 0.004) D: [alsa-sink-HDMI 0] protocol-native.c: Implicit underrun of 'ALSA Playback' ( 26.847| 0.000) D: [alsa-sink-HDMI 0] sink.c: Found underrun 2840 bytes ago (612 bytes ahead in playback buffer) ( 26.847| 0.000) D: [alsa-sink-HDMI 0] protocol-native.c: Requesting rewind due to end of underrun. ( 26.847| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 2840 bytes. ( 26.847| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 2840 bytes. ( 26.847| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: before: 710 ( 26.847| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: after: 710 ( 26.847| 0.000) D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 2840 bytes. ( 26.847| 0.000) D: [alsa-sink-HDMI 0] sink.c: Processing rewind... ( 26.847| 0.000) D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 2840 bytes on render memblockq. ( 26.847| 0.000) D: [alsa-sink-HDMI 0] source.c: Processing rewind... ( 26.854| 0.006) I: [alsa-sink-HDMI 0] alsa-sink.c: Underrun! ( 26.854| 0.000) I: [alsa-sink-HDMI 0] alsa-sink.c: Increasing minimal latency to 1,00 ms -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1245226 Title: HDMI: audio-video playback too fast To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1245226/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs