Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <conga version="2.2.1">
- <plugin name="volume">
- <arg name="media" scale="0:-50db 100:0db"/> <!-- control volume of media outputs. -->
- <arg name="telephony" channels="left:0 right:1" scale="0:-50db 100:0db"/> <!-- control volume of telephony outputs. -->
- <arg name="default" channels="left:0 right:1" scale="0:-50db 100:0db"/> <!-- control volume of default outputs. -->
- <arg name="tuner" channels="left:0 right:1"/> <!-- control volume (mute) of tuner input. -->
- </plugin>
- <!-- Import all hardware specific configuration -->
- <!-- <import config="/etc/conga/conga_hw_ulcb.xml"/> -->
- <!-- Allows only one instance of the session, replacing one another when starting -->
- <session name="ATOMIC_SESSION">
- <policy>
- <rule action="abort" target="ATOMIC_SESSION"/>
- </policy>
- </session>
- <chain name="speaker_mixer_chain">
- <mixer name="speaker_mixer">
- <interface mode="slave" sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </mixer>
- <node type="alsa" name="speaker">
- <arg device="hw:2,0"/>
- <interface mode="master" direction="sink" sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </node>
- </chain>
- <session name="soundcard">
- <chain>
- <node type="catmux"> <!-- 1 slot contains the name, the idx of the channel, and the number of channel -->
- <arg slot="front 0 2"/>
- <arg slot="surround 2 2"/>
- <arg slot="center 4 2"/>
- <arg slot="rear 6 2"/>
- <interface direction="source" sample="s16" nbchan="8" rate="48000" nbframe="1024"/>
- </node>
- <node type="alsa" name="speaker">
- <interface sample="s16" nbchan="8" rate="48000" nbframe="1024"/>
- <arg device="hw:2,0"/>
- </node>
- </chain>
- </session>
- <session name="b">
- <chain>
- <node type="generator">
- <arg wavefreq="250"/>
- <arg amplitude="0.5"/>
- <interface sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="catmux" name="surround"/>
- </chain>
- </session>
- <session name="c">
- <chain>
- <node type="stream" name="BUS0_MEDIA_ANDROID_out">
- <interface sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </node>
- <node type="queue"/>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="catmux" name="front"/>
- </chain>
- </session>
- <session name="BUS0_MEDIA_ANDROID">
- <chain>
- <node type="stream" name="BUS0_MEDIA_ANDROID_out"/>
- <node type="queue">
- <arg maxelem="4"/>
- <arg poolsize="20000"/>
- <interface direction="source" nbframe="1024"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="catmux" name="front"/>
- </chain>
- <policy>
- <inherit parent="ATOMIC_SESSION"/>
- </policy>
- </session>
- <session name="BUS1_TELEPHONY_ANDROID">
- <chain>
- <node type="stream" name="BUS1_TELEPHONY_ANDROID_out"/>
- <node type="queue">
- <arg maxelem="4"/>
- <arg poolsize="20000"/>
- <interface direction="source" nbframe="1024"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="volume">
- <arg stage="telephony"/>
- </node>
- <mix into="speaker_mixer"/>
- </chain>
- <policy>
- <rule action="reject" target="PROJECTEDMODE_META"/>
- </policy>
- </session>
- <session name="BUS2_DEFAULT_ANDROID">
- <chain>
- <node type="stream" name="BUS2_DEFAULT_ANDROID_out"/>
- <node type="queue">
- <arg maxelem="4"/>
- <arg poolsize="20000"/>
- <interface direction="source" nbframe="1024"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="volume">
- <arg stage="default"/>
- </node>
- <mix into="speaker_mixer"/>
- </chain>
- </session>
- <session name="session_android_in">
- <chain>
- <node type="alsa" name="micro_in">
- <arg device="hw:0,0"/>
- <interface direction="source" mode="master"
- sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </node>
- <node type="stream" name="dev_android_in">
- <interface direction="sink" mode="slave"
- sample="s16" nbchan="2" rate="48000" nbframe="1024"/>
- </node>
- </chain>
- </session>
- <session name="session_android_radio">
- <chain>
- <node type="udpsrc" name="sinkpipeline">
- <arg port="4243"/>
- <interface direction="source" mode="master"
- sample="s16" nbchan="2" rate="48000" nbframe="1920"/>
- </node>
- <node type="queue">
- <arg maxelem="4"/>
- <arg poolsize="40000"/>
- <interface direction="source" nbframe="256"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="volume">
- <arg stage="tuner"/> <!-- control from android of the radio tuner input state -->
- </node>
- <node type="volume">
- <arg stage="media"/>
- </node>
- <mix into="speaker_mixer"/>
- </chain>
- </session>
- <session name="system_sounds">
- <chain>
- <node type="stream" name="system_sounds_stream"/>
- <node type="queue">
- <arg maxelem="4"/>
- <arg poolsize="20000"/>
- <interface direction="source" nbframe="1024"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <mix into="speaker_mixer"/>
- </chain>
- <policy>
- <rule action="abort" target="session_android_out"/>
- <rule action="reject" target="PROJECTEDMODE_META"/>
- </policy>
- </session>
- <!-- <import config="/etc/conga/conga_iap_usb.xml"/> -->
- <chain name="chain_iap_snk">
- <node type="resamp">
- <arg quality="bli12"/>
- <interface direction="source" rate="48000" nbframe="256"/>
- </node>
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="volume">
- <arg stage="media"/>
- </node>
- <mix into="speaker_mixer"/>
- </chain>
- <!-- <import config="/etc/conga/conga_projectedmodes.xml"/> -->
- <session name="PROJECTEDMODE_META">
- <policy>
- <inherit parent="ATOMIC_SESSION"/>
- <rule action="cancel" target="BUS1_TELEPHONY_ANDROID"/>
- <rule action="cancel" target="BUS2_DEFAULT_ANDROID"/>
- <rule action="cancel" target="session_android_radio"/>
- <rule action="cancel" target="session_iap_usb"/>
- </policy>
- </session>
- <session name="PROJECTEDMODE_VOICERECO"/>
- <chain name="chain_pm_snk">
- <node type="format">
- <interface direction="source" sample="s16"/>
- </node>
- <node type="volume">
- <arg stage="media"/>
- </node>
- <node type="alsa" name="">
- <arg device="hw:0,0"/>
- <interface direction="sink" sample="s16" nbchan="2" rate="48000" nbframe="256"/>
- </node>
- </chain>
- </conga>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement