Openmoko Bug #1599: Suspend / resume breaks audio
Openmoko Public Trac
bugs at docs.openmoko.org
Mon Sep 8 11:09:25 CEST 2008
#1599: Suspend / resume breaks audio
-------------------------------------------+--------------------------------
Reporter: phyce | Owner: openmoko-kernel
Type: defect | Status: new
Priority: normal | Milestone: Om2007.2
Component: System Software | Version: GTA02v5
Severity: normal | Resolution:
Keywords: sound audio suspend resume | Blockedby:
Reproducible: | Blocking:
-------------------------------------------+--------------------------------
Comment(by houska):
> RE: I RESOLVED IT -- details follow: ....
Hi,
in my case the troublemaker is pulse audio:
{{{
root at om-gta02:~# fuser /dev/snd/pcmC0D0p
2004 2040
root at om-gta02:~# ps aux|grep -e 2004 -e 2040
root 2004 9.5 2.4 16728 2980 ? S<Lsl 10:48 1:04
/usr/bin/pulseaudio --no-cpu-limit --resample-method=trivial -D -nF
/etc/pulse/session
root 2040 1.3 3.0 16024 3816 pts/0 SL+ 10:53 0:04 mplayer
-ao alsa /media/card/sirena.wav
root 2070 0.0 0.4 2752 592 pts/1 S+ 10:59 0:00 grep -e
2004 -e 2040
root at om-gta02:~#
}}}
mplayer doesn't play:
{{{
Starting playback...
A: 0.0 (00.0) of 2.0 (02.0) ??,?%
}}}
pulseaudio strace:
{{{
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 1915) = 0
gettimeofday({1220864597, 94808}, NULL) = 0
gettimeofday({1220864597, 100972}, NULL) = 0
gettimeofday({1220864597, 106696}, NULL) = 0
gettimeofday({1220864597, 110413}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 51) = 0
gettimeofday({1220864597, 172238}, NULL) = 0
gettimeofday({1220864597, 176766}, NULL) = 0
gettimeofday({1220864597, 180713}, NULL) = 0
gettimeofday({1220864597, 185510}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 1921) = 0
gettimeofday({1220864599, 119480}, NULL) = 0
gettimeofday({1220864599, 121626}, NULL) = 0
gettimeofday({1220864599, 126834}, NULL) = 0
gettimeofday({1220864599, 130141}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 50) = 0
gettimeofday({1220864599, 187026}, NULL) = 0
gettimeofday({1220864599, 191503}, NULL) = 0
gettimeofday({1220864599, 194857}, NULL) = 0
gettimeofday({1220864599, 197008}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 1929) = 0
gettimeofday({1220864601, 133140}, NULL) = 0
gettimeofday({1220864601, 139464}, NULL) = 0
gettimeofday({1220864601, 141464}, NULL) = 0
gettimeofday({1220864601, 146087}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=20, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=7,
events=POLLIN}], 9, 48) = 0
gettimeofday({1220864601, 202131}, NULL) = 0
gettimeofday({1220864601, 208867}, NULL) = 0
gettimeofday({1220864601, 211057}, NULL) = 0
gettimeofday({1220864601, 213248}, NULL) = 0
poll( <unfinished ...>
Process 2004 detached
root at om-gta02:~#
}}}
restarting pulseaudio after wakeup helps
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/1599#comment:23>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the openmoko-kernel
mailing list