synit/protocols/schemas/audio.prs

35 lines
683 B
Text

version 1 .
; If headset present:
; - ringing: speaker & headset
; - notification: speaker & headset
; - non-speakerphone call: headset
; - speakerphone call: speaker
; - music: headset
;
; If headset absent:
; - ringing: speaker
; - notification: speaker
; - non-speakerphone call: earpiece
; - speakerphone call: speaker
; - music: speaker
;
.
Mapping = <alsa-mapping @abstract Endpoint @concrete string> .
Endpoint = <source @value Source> / <sink @value Sink> .
Sink =
/ =speaker
/ =headset
/ =earpiece
.
Source =
/ =speakerphone
/ =headset
/ =handset
.
HeadsetSpeakerPresent = <headset-speaker-present> .
HeadsetMicrophonePresent = <headset-microphone-present> .