Merge #394448 from ~zongminl/plainbox-provider-checkbox/+git/plainbox-provider-checkbox:audio-detect-sinks-sources
audio/jobs: Fix audio/alsa_record_playback_automated always returns passed result even when there's no valid PulseAudio element
Fix: Use a new job audio/detect_sinks_sources as depends job to audio/alsa_record_playback_automated, when there is no valid PulseAudio element exists, make audio/alsa_record_playback_automated skipped.
Behavior after this fix:
audio/alsa_record_playback_automated now depends on a new job audio/detect_sinks_sources, it checks if both valid PulseAudio source and sink exist, if not, audio/detect_sinks_sources will fail and skip audio/alsa_record_playback_automated.
What's returned:
- When both sink and source are available, audio/detect_sinks_sources passed and returns 0
- When no available source exists, audio/detect_sinks_sources failed and returns 1
- When no available sink exists, audio/detect_sinks_sources failed and returns 2
- When both no sink and source available, audio/detect_sinks_sources failed and returns 3