diff options
author | Jooncheol Park <jooncheol.park@windriver.com> | 2015-04-15 19:42:24 +0900 |
---|---|---|
committer | Jooncheol Park <jooncheol.park@windriver.com> | 2015-04-15 19:42:24 +0900 |
commit | 7290b39664f87dd8a3bf81589749f65694ea61f8 (patch) | |
tree | 1c8fb18abe93ef520f530058199c5d304e798487 /pc-env | |
download | audiomanagerdemo-7290b39664f87dd8a3bf81589749f65694ea61f8.tar.gz |
Initial commit for AM Monitor
Diffstat (limited to 'pc-env')
-rw-r--r-- | pc-env | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +OLDPS1=$PS1 +PS1="(AM-Monitor Testing) " + +function deactivate () { + echo "unload alsa primary" + pactl unload-module $MOD_SINKP + echo "unload alsa secondary" + pactl unload-module $MOD_SINKS + PS1=$OLDPS1 +} + +MOD_SINKP=`pactl load-module module-remap-sink sink_name="AlsaPrimary"` +MOD_SINKS=`pactl load-module module-remap-sink sink_name="AlsaSecondary"` + + +pacmd list-sinks +#pacmd list-sink-inputs +#pacmd list-sources +#pacmd list-source-outputs + +echo "2 sink remapped" +echo "(Run 'deactivate' to finish testing env)" |