Android app stops playing music after a day
Setup:
Sailos 2.0.1.11
Test case:
1. Boot the device
2. Install tunein app for android from the aptoide apps
3. play some radio music
4. close the app
5. wait one day
6. open the app again and try to play music
Result:
1. Audio does not play
2. Progress bar does not advance in the app
3. In the terminal I check pacmd list-sinks and find driver: <module-droid-card.c > state: SUSPENDED suspend cause: IDLE
Expected result:
I expected the app to play as it did the first time
Here is the full pacmd output:
[nemo@Jolla ~]$ pacmd list-sinks 4
sink(s) available.
index: 0 name: <sink.null> driver: <module-null-sink.c> flags:
DECIBEL_VOLUME LATENCY FLAT_VOLUME
DYNAMIC_LATENCY state: SUSPENDED
suspend cause: IDLE priority: 1000
volume: front-left: 65536 / 100% /
0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00 base volume: 65536 / 100% / 0.00 dB
volume steps:65537 muted: no current latency:0.00 ms max request: 375 KiB max rewind: 375 KiB monitor source: 0
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo used by: 0 linked by: 0 configured latency:0.00 ms; range is 0.50 .. 2000.00 ms module: 5 properties:
device.description = "Null Output"
device.class = "abstract"
device.icon_name = "audio-card"
policy.device.typelist = "null"
x-maemo.mode = "null"
x-maemo.accessory_hwid = "" *
index: 1 name: <sink.primary>
driver: <module-droid-card.c> flags:
HARDWARE DECIBEL_VOLUME LATENCY
FLAT_VOLUME state: SUSPENDED
suspend cause: IDLE priority: 9000
volume: front-left: 65536 / 100% /
0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps:
65537 muted: no current latency:
0.00 ms max request: 0 KiB max rewind: 0 KiB monitor source: 1
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo used by: 0 linked by: 0 fixed latency: 96.00 ms
card: 0 <droid_card.primary>
module:6
properties: device.description ="Droid sink primary"
device.class = "sound"
droid.hw_module = "primary"
device.icon_name = "audio-card"
policy.device.typelist = "tvoutandbthsp ihfandbthsp ihfandheadset ihfandheadphone bthsp bthspforcall
bthspforalien headset headsetforcall headsetforalien headphone headphoneforcall headphoneforalien ihfandtvout tvout earpieceandtvout earpiece earpieceforalien ihf ihfforcall ihfforalien"
x-maemo.mode = "ihf"
x-maemo.accessory_hwid = ""
x-nemo.voicecall.status = "inactive"
x-nemo.media.state = "inactive"
ports: output-earpiece: Output to earpiece (priority 200, latency offset 0 usec, available: yes)
properties: output-speaker: Output to speaker (priority 300, latency offset 0 usec, available: yes) properties: output-wired_headset: Output to wired headset (priority 100, latency offset 0 usec, available: yes)
properties:</droid_card.primary></module-droid-card.c></sink.primary></module-null-sink.c></sink.null>
output-wired_headphone: Output to wired headphone (priority 100,
latency offset 0 usec, available: yes) properties: output-bluetooth_sco: Output to bluetooth sco (priority 100, latency offset 0 usec, available: yes) properties: output-sco_headset: Output to sco headset (priority 100, latency offset 0 usec, available: yes) properties: output-sco_carkit: Output to sco carkit (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp: Output to a2dp (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp_headphones: Output to a2dp headphones (priority 100, latency offset 0 usec, available: yes) properties: output-a2dp_speaker: Output to a2dp speaker (priority 100, latency offset 0 usec, available: yes) properties: output-aux_digital: Output to aux digital (priority 100, latency offset 0 usec, available: yes) properties: output-analog_dock_headset: Output to analog dock headset (priority 100, latency offset 0 usec, available: yes) properties: output-usb_accessory: Output to usb accessory (priority 100, latency offset 0 usec, available: yes) properties: output-usb_device: Output to usb device (priority 100, latency offset 0 usec, available: yes) properties: output-fm: Output to fm (priority 100, latency offset 0 usec, available: yes) properties: output-fm_tx: Output to fm tx (priority 100, latency offset 0 usec, available: yes) properties: output-proxy: Output to proxy (priority 100, latency offset 0 usec, available: yes) properties: output-speaker+wired_headphone: Output to speaker+wired headphone (priority 100, latency offset 0 usec, available: yes) properties: output-parking: Parking port (priority 50, latency offset 0 usec, available: yes) properties: active port: <output-speaker> index: 2 name: <sink.fake.sco> driver: <module-null-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 volume: mono: 0 / 0% / -inf dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 16 muted: no current latency: 0.00 ms max request: 31 KiB max rewind: 31 KiB monitor source: 3 sample spec: s16le 1ch 8000Hz channel map: mono Mono used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms module: 7 properties: device.description = "Null Output" device.class = "abstract" device.icon_name = "audio-card" policy.device.typelist = "" bluetooth.prefer.hsp = "false" bluetooth.hsp.prevent.suspend.transport = "true" bluetooth.protocol = "hsp" index: 3 name: <sink.primaryandbluez> driver: <module-combine-sink.c> flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 0.00 ms max request: 8 KiB max rewind: 0 KiB monitor source: 5 sample spec: s16le 2ch 48000Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 200.00 ms module: 10 properties: device.class = "filter" device.description = "Simultaneous output to Droid sink primary" device.icon_name = "audio-card" policy.device.typelist = ""</module-combine-sink.c></sink.primaryandbluez></module-null-sink.c></sink.fake.sco></output-speaker>
A simple workaround does not work: 1. close the app 2. int he termianl: pulseaudio -k 3. pulseaudio --start Result: module-droid-card goes back to suspend 4. start the app 5. play music Result: no music, and the sink remains suspended
niv ( 2016-07-12 12:51:59 +0200 )edit