1@startuml 2title "UCM volume" 3 4start 5if (Card state (/var/lib/alsa/asound.state)) then (not present) 6 :UCM: BootSequence; 7else (present) 8 :alsactl: Restore state (from asound.state); 9endif 10:UCM application:set device volume; 11note right 12 The application uses (Playback|Capture)MixerElem or 13 (Playback/Capture)(Volume/Switch) values to get 14 the controls. 15end note 16:alsactl: Store state (to asound.state); 17stop 18 19@enduml 20