Project: RealPlayer For Netbook
Synopsis:
Changes to fix Bug 9324:Real Player is in 'Not Responding" state after
suspend/resume while playing any movie on FC10 platform.
Overview:
When we play any file on realplayer for netbook in Fedora 10 & suspend the
system. When we resume it, we are not able to hear audio, only video can be
seen. This is because when system goes to suspend state then audio device gives
'ESTRPIPE' signal while writing the data to the device. And when we resume the
system, sometimes we need to wake up the audio device by using
snd_pcm_prepare() to play the audio.
Files Added:
None
Files Modified:
/cvsroot/audio/device/platform/unix/audlinux_alsa.cpp
Image Size and Heap Use impact (Client -Only):
None.
Platforms and Profiles Affected:
None
Distribution Libraries Affected:
None
Distribution library impact and planned action:
None
Branch
atlas310, atlas347 & atlas349
Platforms and Profiles Build Verified:
BIF branch -> hxclient_3_1_0_atlas_restricted
Target(s) -> player_all
Profile -> helix-client-moblin
SYSTEM_ID -> linux-2.2-libc6-gcc32-i586
Files Attached:
diff_9312.txt
Thanks & Regards,
Varun Kathuria
Index: audlinux_alsa.cpp
===================================================================
RCS file: /cvsroot/audio/device/platform/unix/audlinux_alsa.cpp,v
retrieving revision 1.9.2.5.14.1
diff -u -r1.9.2.5.14.1 audlinux_alsa.cpp
--- audlinux_alsa.cpp 29 Jan 2009 09:57:09 -0000 1.9.2.5.14.1
+++ audlinux_alsa.cpp 18 Jun 2009 03:39:23 -0000
@@ -2123,6 +2123,16 @@
}
} while (err == -EAGAIN);
+ if (err == 0)
+ {
+ err = snd_pcm_prepare (m_pAlsaPCMHandle);
+ if (err < 0)
+ {
+ HXLOGL1 ( HXLOG_ADEV, "snd_pcm_prepare: %s",
+ snd_strerror(err));
+ }
+ }
+
if (err < 0)
{
HandleXRun();
_______________________________________________
Audio-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/audio-dev