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 Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1245226 Title: HDMI: audio-video playback too fast Status in “alsa-driver” package in Ubuntu: Incomplete Bug description: After upgrading to Ubuntu 13.10, selecting HDMI as audio output device is broken. Audio is played back at high speed. When playing back video clips, the video frames are also too fast. This is similar to an old bug I reported some time ago, https://bugs.launchpad.net/ubuntu/+source/linux/+bug/897008 . In that case, adding radeon.audio=1 to the kernel command line solved. Now, the configuration is unchanged since when Ubuntu 13.04 was running $cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=10b9da6b-d735-48a7-bc45-2c1fc81183dd ro quiet splash radeon.audio=1 vt.handoff=7 yet audio is broken. Note that, when selecting headphone as audio output device, everything works. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: gnome-control-center 1:3.6.3-0ubuntu44 ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3 Uname: Linux 3.11.0-12-generic x86_64 ApportVersion: 2.12.5-0ubuntu2.1 Architecture: amd64 Date: Sun Oct 27 18:00:53 2013 ExecutablePath: /usr/bin/gnome-control-center InstallationDate: Installed on 2010-11-07 (1085 days ago) InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007) MarkForUpload: True SourcePackage: gnome-control-center UpgradeStatus: Upgraded to saucy on 2013-10-22 (5 days ago) usr_lib_gnome-control-center: activity-log-manager 0.9.7-0ubuntu4 deja-dup 27.3.1-0ubuntu1 gnome-control-center-datetime 13.10.0+13.10.20131016.2-0ubuntu1 gnome-control-center-signon 0.1.7~+13.10.20130724.1-0ubuntu1 gnome-control-center-unity 1.3+13.10.20131004-0ubuntu1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1245226/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

