├── core-tutorial
├── libraries
│ └── myMusic
│ │ ├── beethoven
│ │ ├── blackSabbath
│ │ ├── ironMaiden
│ │ └── explosionInTheSky
├── GettingStartedMassif.png
├── Structure
│ ├── MusicLibraries.xml
│ └── MyMusic.xml.in
├── ParameterFrameworkConfiguration.xml
├── CMakeLists.txt
└── Settings
│ └── Genres.xml
├── nuc-tutorial
├── tuning_topology
│ ├── layout_probes.xml
│ ├── README.md
│ ├── layout_ui.xml
│ ├── layout_topology.xml
│ └── layout_types.xml
├── Structure
│ └── Audio
│ │ ├── AudioClass.xml
│ │ ├── HdmiSubsystem.xml
│ │ └── RealtekAlc283Subsystem.xml
├── clientSimulator
│ ├── scripts
│ │ ├── nuc
│ │ │ ├── test-vectors
│ │ │ │ ├── playback_alsa_Hdmi.json
│ │ │ │ ├── capture_alsa_Media_Headset.json
│ │ │ │ ├── playback_alsa_Media_Headset.json
│ │ │ │ ├── playbackRecord_on_alsa_Media_Hdmi.json
│ │ │ │ └── reset_routes.json
│ │ │ ├── audio-test-scripts.json
│ │ │ └── conf.json
│ │ └── common
│ │ │ ├── test-scripts
│ │ │ ├── play.sh
│ │ │ └── capture.sh
│ │ │ └── audio-test-actions.json
│ └── README.md
├── xmlGenerator
│ ├── gen_xml.sh
│ ├── routing_hdmi.pfw
│ ├── README.md
│ ├── routing_alc283.pfw
│ └── AudioConfigurableDomains-Tuning.xml
├── AudioCriteria.txt
├── AudioParameterFramework.xml
├── README.md
└── Settings
│ └── Audio
│ └── AudioConfigurableDomains.xml
├── asus-t100-tutorial
├── tuning_topology
│ ├── layout_probes.xml
│ ├── README.md
│ ├── layout_types.xml
│ └── layout_ui.xml
├── clientSimulator
│ ├── scripts
│ │ ├── t100
│ │ │ ├── test-vectors
│ │ │ │ ├── playback_alsa_Hdmi.json
│ │ │ │ ├── playback_alsa_Media_Speakers.json
│ │ │ │ ├── capture_alsa_Media_Headset.json
│ │ │ │ ├── playback_alsa_Media_Headset.json
│ │ │ │ ├── playback_alsa_DeepMedia_Speakers.json
│ │ │ │ └── reset_routes.json
│ │ │ ├── audio-test-scripts.json
│ │ │ └── conf.json
│ │ └── common
│ │ │ ├── test-scripts
│ │ │ ├── play.sh
│ │ │ └── capture.sh
│ │ │ └── audio-test-actions.json
│ └── README.md
├── Structure
│ └── Audio
│ │ ├── AudioClass.xml
│ │ ├── Realtek5640Subsystem.xml
│ │ ├── intel
│ │ ├── Gain.xml
│ │ ├── SbaFir.xml
│ │ ├── SbaEqualizers.xml
│ │ ├── CommonAlgoTypes.xml
│ │ ├── SbaIir.xml
│ │ ├── Dcr.xml
│ │ ├── Lpro.xml
│ │ └── Mdrc.xml
│ │ └── SstSubsystem.xml
├── xmlGenetaror
│ ├── gen_xml.sh
│ ├── README.md
│ ├── SstMediaLoop1Fir.xml
│ ├── SstMediaLoop2Fir.xml
│ ├── SstDefaultGains.xml
│ ├── bytcr-rt5640-default.pfw
│ ├── routing_sst.pfw
│ ├── AudioConfigurableDomainsRealtek564x-Tuning.xml
│ ├── SstMediaLoop2Mdrc.xml
│ ├── SstMediaLoop1Iir.xml
│ ├── SstMediaLoop2Iir.xml
│ └── SstMediaLoop1Mdrc.xml
├── AudioCriteria.txt
├── AudioParameterFramework.xml
└── README.md
├── alsa-tutorial
├── AudioStructure.xml
├── README.md
├── ParameterFrameworkConfiguration.xml
└── AlsaSubsystem.xml
├── CMakeLists.txt
├── omap-tutorial
├── Structure
│ └── Audio
│ │ ├── Omap4Class.xml
│ │ ├── Omap5Class.xml
│ │ ├── PandaBoard5SubSystem.xml
│ │ ├── PandaBoardESSubSystem.xml
│ │ ├── Twl6040ComponentTypeSet.xml
│ │ └── OmapAbeComponentTypeSet.xml
├── Settings
│ └── Audio
│ │ └── AudioConfigurableDomains.xml
├── PandaBoard5.xml
├── PandaBoardES.xml
└── README.md
├── README.md
└── COPYING
/core-tutorial/libraries/myMusic/beethoven:
--------------------------------------------------------------------------------
1 | Included
2 |
--------------------------------------------------------------------------------
/core-tutorial/libraries/myMusic/blackSabbath:
--------------------------------------------------------------------------------
1 | Excluded
2 |
--------------------------------------------------------------------------------
/core-tutorial/libraries/myMusic/ironMaiden:
--------------------------------------------------------------------------------
1 | Excluded
2 |
--------------------------------------------------------------------------------
/core-tutorial/libraries/myMusic/explosionInTheSky:
--------------------------------------------------------------------------------
1 | Excluded
2 |
--------------------------------------------------------------------------------
/nuc-tutorial/tuning_topology/layout_probes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/tuning_topology/layout_probes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/core-tutorial/GettingStartedMassif.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/intel/parameter-framework-samples/HEAD/core-tutorial/GettingStartedMassif.png
--------------------------------------------------------------------------------
/alsa-tutorial/AudioStructure.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/core-tutorial/Structure/MusicLibraries.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/alsa-tutorial/README.md:
--------------------------------------------------------------------------------
1 | # ALSA-plugin tutorial
2 |
3 | This directory contains the files used in the
4 | [alsa plugins](https://github.com/01org/parameter-framework-plugins-alsa/)'
5 | README.
6 |
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # has been tested on 2.8 only - might work on older versions
2 | cmake_minimum_required(VERSION 2.8)
3 |
4 | project(parameter-framework-samples)
5 |
6 | add_subdirectory(core-tutorial/)
7 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/Omap4Class.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/Omap5Class.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/playback_alsa_Hdmi.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"Hdmi"
7 | }
8 | },
9 | {"enable":{}},
10 | {"script":"playHdmi"},
11 | {"unmute":{}}
12 | ]
13 |
--------------------------------------------------------------------------------
/nuc-tutorial/Structure/Audio/AudioClass.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/AudioClass.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/test-vectors/playback_alsa_Hdmi.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"AuxDigital",
7 | "OpenedPlaybackRoutes":"Hdmi"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"playHdmi"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/test-vectors/capture_alsa_Media_Headset.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedInputDevices":"Headset",
7 | "OpenedCaptureRoutes":"Media"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"captureHeadset"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/test-vectors/playback_alsa_Media_Headset.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"Headset",
7 | "OpenedPlaybackRoutes":"Media"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"playHeadset"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/playback_alsa_Media_Speakers.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"Ihf",
7 | "OpenedPlaybackRoutes":"Media HwCodec0IA"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"play"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/capture_alsa_Media_Headset.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedInputDevices":"Headset",
7 | "OpenedCaptureRoutes":"Media HwCodec0IA"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"capture"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/playback_alsa_Media_Headset.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"Headset",
7 | "OpenedPlaybackRoutes":"Media HwCodec0IA"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"play"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/test-vectors/playbackRecord_on_alsa_Media_Hdmi.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"AuxDigital",
7 | "OpenedPlaybackRoutes":"Hdmi"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"playRecordHdmi"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/xmlGenerator/gen_xml.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | export LD_LIBRARY_PATH=/usr/local/lib
3 | domainGenerator.py --validate --toplevel-config ../AudioParameterFramework.xml --criteria ../AudioCriteria.txt --initial-settings AudioConfigurableDomains-Tuning.xml --add-edds routing_alc283.pfw routing_hdmi.pfw --schemas-dir ../../../parameter-framework/schemas/ > ../Settings/Audio/AudioConfigurableDomains.xml
4 |
5 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/playback_alsa_DeepMedia_Speakers.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"Ihf",
7 | "OpenedPlaybackRoutes":"DeepMedia HwCodec0IA"
8 | }
9 | },
10 | {"enable":{}},
11 | {"script":"playDeep"},
12 | {"unmute":{}}
13 | ]
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/test-vectors/reset_routes.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"",
7 | "OpenedPlaybackRoutes":"",
8 | "SelectedInputDevices":"",
9 | "OpenedCaptureRoutes":""
10 | }
11 | },
12 | {"enable":{}},
13 | {"unmute":{}}
14 | ]
15 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/test-vectors/reset_routes.json:
--------------------------------------------------------------------------------
1 | [
2 | {"mute":{}},
3 | {"disable":{}},
4 | {"configure":
5 | {"Mode":"Normal",
6 | "SelectedOutputDevices":"",
7 | "OpenedPlaybackRoutes":"",
8 | "SelectedInputDevices":"",
9 | "OpenedCaptureRoutes":""
10 | }
11 | },
12 | {"enable":{}},
13 | {"unmute":{}}
14 | ]
15 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/common/test-scripts/play.sh:
--------------------------------------------------------------------------------
1 | #
2 | # This script is used in order to start playback with ALSA.
3 | #
4 |
5 | if [ ! $# == 2 ]; then
6 | echo "Two arguments needed:" 1>&2
7 | echo " - AlsaCard and device : -hw:," 1>&2
8 | echo " - File to play" 1>&2
9 | exit
10 | fi
11 |
12 | alsaCardDevice=$1
13 | file=$2
14 |
15 | aplay -D$alsaCardDevice -d 15 $file
16 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/common/test-scripts/play.sh:
--------------------------------------------------------------------------------
1 | #
2 | # This script is used in order to start playback with ALSA.
3 | #
4 |
5 | if [ ! $# == 2 ]; then
6 | echo "Two arguments needed:" 1>&2
7 | echo " - AlsaCard and device : -hw:," 1>&2
8 | echo " - File to play" 1>&2
9 | exit
10 | fi
11 |
12 | alsaCardDevice=$1
13 | file=$2
14 |
15 | aplay -D$alsaCardDevice -d 15 $file
16 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/common/test-scripts/capture.sh:
--------------------------------------------------------------------------------
1 | #
2 | # This script is used in order to start recording with ALSA.
3 | #
4 |
5 | if [ ! $# == 2 ]; then
6 | echo "Two arguments needed:" 1>&2
7 | echo " - AlsaCard and device : -hw:," 1>&2
8 | echo " - Record destination" 1>&2
9 | exit
10 | fi
11 |
12 | card=$1
13 | file=$2
14 |
15 | arecord -D$card -d 10 -f S16_LE -r 48000 -c 2 $file
16 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/common/test-scripts/capture.sh:
--------------------------------------------------------------------------------
1 | #
2 | # This script is used in order to start recording with ALSA.
3 | #
4 |
5 | if [ ! $# == 2 ]; then
6 | echo "Two arguments needed:" 1>&2
7 | echo " - AlsaCard and device : -hw:," 1>&2
8 | echo " - Record destination" 1>&2
9 | exit
10 | fi
11 |
12 | card=$1
13 | file=$2
14 |
15 | arecord -D$card -d 10 -f S16_LE -r 48000 -c 2 $file
16 |
--------------------------------------------------------------------------------
/nuc-tutorial/AudioCriteria.txt:
--------------------------------------------------------------------------------
1 | ExclusiveCriterion Mode : Normal
2 | InclusiveCriterion RoutageState : Configure Flow Path
3 | InclusiveCriterion OpenedPlaybackRoutes : Media Hdmi
4 | InclusiveCriterion OpenedCaptureRoutes : Media
5 | InclusiveCriterion SelectedInputDevices : Headset
6 | InclusiveCriterion SelectedOutputDevices : Headphones Headset Line Ihf AuxDigital
7 | ExclusiveCriterion ScreenState : Off On
8 |
--------------------------------------------------------------------------------
/omap-tutorial/Settings/Audio/AudioConfigurableDomains.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/gen_xml.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | export LD_LIBRARY_PATH=/usr/local/lib
3 | domainGenerator.py --validate --toplevel-config ../AudioParameterFramework.xml --criteria ../AudioCriteria.txt --initial-settings AudioConfigurableDomainsRealtek564x-Tuning.xml --add-domains SstDefaultGains.xml SstMediaLoop1Fir.xml SstMediaLoop1Iir.xml SstMediaLoop1Mdrc.xml SstMediaLoop2Fir.xml SstMediaLoop2Iir.xml SstMediaLoop2Mdrc.xml --add-edds bytcr-rt5640-default.pfw routing_sst.pfw --schemas-dir ../../../parameter-framework/schemas/ > ../Settings/Audio/AudioConfigurableDomains.xml
4 |
5 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/Realtek5640Subsystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/audio-test-scripts.json:
--------------------------------------------------------------------------------
1 | {
2 | "playHeadset":[
3 | "../common/test-scripts/play.sh hw:0,0 noise.wav",
4 | "asynchronous"
5 | ],
6 | "playHdmi":[
7 | "../common/test-scripts/play.sh hw:0,3 noise.wav",
8 | "asynchronous"
9 | ],
10 | "playRecordHdmi":[
11 | "../common/test-scripts/play.sh hw:0,3 record.wav",
12 | "asynchronous"
13 | ],
14 | "captureHeadset":[
15 | "../common/test-scripts/capture.sh hw:0,0 record.wav",
16 | "asynchronous"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/nuc-tutorial/xmlGenerator/routing_hdmi.pfw:
--------------------------------------------------------------------------------
1 | domainGroup: Routing.Hdmi
2 |
3 | #########################################
4 | ############### Configure ###############
5 | #########################################
6 |
7 | domainGroup: Configure
8 | RoutageState Includes Configure
9 |
10 | domainGroup: Playack
11 | domain: Port0
12 | conf: Bind
13 | ALL
14 | OpenedPlaybackRoutes Includes Hdmi
15 | ANY
16 | SelectedOutputDevices Includes AuxDigital
17 | /Audio/hdmi/output/port0/switch = 1
18 |
19 | conf: Unbind
20 | /Audio/hdmi/output/port0/switch = 0
21 |
22 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/audio-test-scripts.json:
--------------------------------------------------------------------------------
1 | {
2 | "play":[
3 | "../common/test-scripts/play.sh hw:bytcrrt5640,0 noise.wav",
4 | "asynchronous"
5 | ],
6 | "playDeep":[
7 | "../common/test-scripts/play.sh hw:bytcrrt5640,1 noise.wav",
8 | "asynchronous"
9 | ],
10 | "playHdmi":[
11 | "../common/test-scripts/play.sh hw:Audio,0 noise.wav",
12 | "asynchronous"
13 | ],
14 | "capture":[
15 | "../common/test-scripts/capture.sh hw:bytcrrt5640,0 record.wav",
16 | "asynchronous"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/common/audio-test-actions.json:
--------------------------------------------------------------------------------
1 | {
2 | "mute":
3 | {"setCriterion":
4 | {"RoutageState":"Flow"}
5 | },
6 | "disable":
7 | {"setCriterion":
8 | {"RoutageState":"Path"}
9 | },
10 | "configure":
11 | {"setCriterion":
12 | {"RoutageState":"Configure"}
13 | },
14 | "enable":
15 | {"setCriterion":
16 | {"RoutageState":"Path Configure"}
17 | },
18 | "unmute":
19 | {"setCriterion":
20 | {"RoutageState":"Flow Path Configure"}
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/core-tutorial/ParameterFrameworkConfiguration.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/common/audio-test-actions.json:
--------------------------------------------------------------------------------
1 | {
2 | "mute":
3 | {"setCriterion":
4 | {"RoutageState":"Flow"}
5 | },
6 | "disable":
7 | {"setCriterion":
8 | {"RoutageState":"Path"}
9 | },
10 | "configure":
11 | {"setCriterion":
12 | {"RoutageState":"Configure"}
13 | },
14 | "enable":
15 | {"setCriterion":
16 | {"RoutageState":"Path Configure"}
17 | },
18 | "unmute":
19 | {"setCriterion":
20 | {"RoutageState":"Flow Path Configure"}
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/scripts/nuc/conf.json:
--------------------------------------------------------------------------------
1 | {
2 | "PrefixCommand" : "",
3 | "TestPlatformPort" : "5001",
4 |
5 | "CriterionFile" : "../../../AudioCriteria.txt",
6 | "PfwConfFile" : "../../../AudioParameterFramework.xml",
7 |
8 | "ScenariosDirectory":"test-vectors",
9 | "ScriptsFile":"audio-test-scripts.json",
10 | "ActionGathererFile":"../common/audio-test-actions.json",
11 |
12 | "LogFile" : "Nuc.log",
13 |
14 | "CoverageDir" : "../../../../parameter-framework/core/tools/coverage",
15 | "CoverageFile" : "Nuc_Coverage.html",
16 | "PfwDomainConfFile" : "AudioConfigurableDomains.xml"
17 | }
18 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/AudioCriteria.txt:
--------------------------------------------------------------------------------
1 | ExclusiveCriterion Mode : Normal RingTone
2 | InclusiveCriterion RoutageState : Configure Flow Path
3 | InclusiveCriterion OpenedCaptureRoutes : DeepMedia HwCodec0IA Media
4 | InclusiveCriterion OpenedPlaybackRoutes : DeepMedia HwCodec0IA Media
5 | InclusiveCriterion SelectedInputDevices : Back Headset Main
6 | InclusiveCriterion SelectedOutputDevices : Headphones Headset Ihf Hdmi
7 | InclusiveCriterion AudioSource : Default Mic None
8 | ExclusiveCriterion ScreenState : Off On
9 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/scripts/t100/conf.json:
--------------------------------------------------------------------------------
1 | {
2 | "PrefixCommand" : "",
3 | "TestPlatformPort" : "5001",
4 |
5 | "CriterionFile" : "../../../AudioCriteria.txt",
6 | "PfwConfFile" : "../../../AudioParameterFramework.xml",
7 |
8 | "ScenariosDirectory":"test-vectors",
9 | "ScriptsFile":"audio-test-scripts.json",
10 | "ActionGathererFile":"../common/audio-test-actions.json",
11 |
12 | "LogFile" : "AsusT100.log",
13 |
14 | "CoverageDir" : "../../../../parameter-framework/core/tools/coverage",
15 | "CoverageFile" : "AsusT100_Coverage.html",
16 | "PfwDomainConfFile" : "AudioConfigurableDomains.xml"
17 | }
18 |
--------------------------------------------------------------------------------
/core-tutorial/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | configure_file(Structure/MyMusic.xml.in ${CMAKE_CURRENT_BINARY_DIR}/Structure/MyMusic.xml @ONLY)
2 |
3 | install(FILES
4 | ParameterFrameworkConfiguration.xml
5 | DESTINATION .)
6 |
7 | install(FILES
8 | Settings/Genres.xml
9 | DESTINATION Settings)
10 |
11 | install(FILES
12 | Structure/MusicLibraries.xml
13 | ${CMAKE_CURRENT_BINARY_DIR}/Structure/MyMusic.xml
14 | DESTINATION Structure)
15 |
16 | install(FILES
17 | libraries/myMusic/beethoven
18 | libraries/myMusic/blackSabbath
19 | libraries/myMusic/explosionInTheSky
20 | libraries/myMusic/ironMaiden
21 | DESTINATION libraries)
22 |
--------------------------------------------------------------------------------
/nuc-tutorial/xmlGenerator/README.md:
--------------------------------------------------------------------------------
1 |
2 | # xmlGenerator for Intel NUC
3 | This section is describing how to generate XML setting files from .pfw files.
4 |
5 | ## Before starting
6 | xmlGenerator is a tool provided on top of Parameter ramework. Please refer to the next link [xmlGenerator](https://github.com/01org/parameter-framework/tree/master/tools/xmlGenerator) for more infroamtion about the different options.
7 |
8 |
9 | ## Running xmlGenerator and update XML setting from .pfw files
10 |
11 | Generate Routing from .pfw configuration files
12 | For the Rooting you can use some .pfw file in order to avoid to directly update the XML file.
13 | ```
14 | gen_xml.sh
15 | ```
16 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/README.md:
--------------------------------------------------------------------------------
1 |
2 | # xmlGenerator for Asus T100
3 | This section is describing how to generate XML setting files from .pfw and differnet Tuning files.
4 |
5 | ## Before starting
6 | xmlGenerator is a tool provided on top of Parameter ramework. Please refer to the next link [xmlGenerator](https://github.com/01org/parameter-framework/tree/master/tools/xmlGenerator) for more infroamtion about the different options.
7 |
8 |
9 | ## Running xmlGenerator and update XML setting from .pfw and tuning XML files
10 |
11 | Generate Routing from .pfw configuration files
12 | For the Rooting you can use some .pfw file in order to avoid to directly update the XML file.
13 | ```
14 | gen_xml.sh
15 | ```
16 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/PandaBoard5SubSystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/PandaBoardESSubSystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/omap-tutorial/PandaBoard5.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/omap-tutorial/PandaBoardES.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/nuc-tutorial/AudioParameterFramework.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/AudioParameterFramework.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/alsa-tutorial/ParameterFrameworkConfiguration.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/core-tutorial/Structure/MyMusic.xml.in:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/alsa-tutorial/AlsaSubsystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/nuc-tutorial/Structure/Audio/HdmiSubsystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | DISCONTINUATION OF PROJECT.
2 |
3 | This project will no longer be maintained by Intel.
4 |
5 | Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project.
6 |
7 | Intel no longer accepts patches to this project.
8 |
9 | If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project.
10 | # parameter-framework sample files
11 |
12 | This repository contains Structure files for the
13 | [parameter-framework](https://github.com/01org/parameter-framework). These are
14 | either for documentation/example purposes or are real-life Structures that
15 | support existing systems (e.g. audio codecs found on smartphones and tablets).
16 |
17 | ## Installing the examples
18 |
19 | cmake -DCMAKE_PREFIX_PATH= -DCMAKE_INSTALL_PREFIX= .
20 | make install
21 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/Gain.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/nuc-tutorial/xmlGenerator/routing_alc283.pfw:
--------------------------------------------------------------------------------
1 | domainGroup: Routing.Alc283
2 |
3 | #########################################
4 | ############### Configure ###############
5 | #########################################
6 |
7 | domainGroup: Configure
8 | RoutageState Includes Configure
9 |
10 | domainGroup: Playback
11 | domainGroup: Media
12 | domain: Headset
13 | conf: Bind
14 | ALL
15 | OpenedPlaybackRoutes Includes Media
16 | ANY
17 | SelectedOutputDevices Includes Headset
18 | SelectedOutputDevices Includes Headphones
19 | SelectedOutputDevices Includes Line
20 | /Audio/alc283/output/headset/switch = 1 1
21 |
22 | conf: Unbind
23 | /Audio/alc283/output/headset/switch = 0 0
24 |
25 | domainGroup: Capture
26 | domainGroup: Media
27 | confType: Bind
28 | ANY
29 | OpenedCaptureRoutes Includes Media
30 |
31 | domain: Headset
32 | conf: Bind
33 | SelectedInputDevices Includes Headset
34 | /Audio/alc283/input/headset/switch = 1 1
35 |
36 | conf: Unbind
37 | /Audio/alc283/input/headset/switch = 0 0
38 |
39 |
40 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/SbaFir.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
9 |
11 |
13 |
15 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/clientSimulator/README.md:
--------------------------------------------------------------------------------
1 |
2 | # clientSimulator for Asus T100
3 |
4 | ## Before starting
5 | clientSimulator is a tool provided on top of Parameter Framework. Please refer to the next link [clientSimulator](https://github.com/01org/parameter-framework/tree/master/tools/clientSimulator) for more infroamtion about the different options.
6 | Variables setting and packages
7 | ```
8 | sudo apt-get install python3 m4
9 | export LD_LIBRARY_PATH=/usr/local/lib
10 | export PYTHONPATH=/usr/local/lib/python3/dist-packages
11 | ```
12 |
13 | ## Running client simulator and update XML setting from .pfw files
14 | 1) Run Parameter Framework client simulator Go to tools asus-t100-tutorial/clientSimulator folder :
15 | ```
16 | pfClientSimulator.py ./scripts/t100
17 | ```
18 | Update `scripts/t100/conf.json` to reflect the path
19 |
20 | => Script will run `test-platform` application.
21 |
22 | 2) Generate Wav file
23 | For the test script we need to have some Wav file. A simple way can be to use siggen UBUNTU Package in order to generate one file.
24 | ```
25 | sudo apt-get install siggen
26 | signalgen -v -b 16 -t 10 -2 -A 30 -s 48000 -w noise.wav noise 2000
27 | ```
28 | Please note that reference playback file is put inside 'scripts/t100/audio-test-scripts.json'. So feel free to update with your own Wav file.
29 |
30 | 3) Check status
31 | ```
32 | remote-process localhost 5000 status
33 | ```
34 |
35 | 4) Play with the differnet UCs part of clientSimulator.
36 |
37 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/tuning_topology/README.md:
--------------------------------------------------------------------------------
1 | # Asus T100 SystemDesigner tutorial
2 |
3 | This directory contains SystemDesigner configuration files for Asus T100
4 |
5 | ## SystemDesigner setup:
6 |
7 | SystemDesigner can be downloaded from the next link:
8 | https://01.org/parameter-framework/companion-tools
9 |
10 | Please note that you will need to install openjdk-8 in order to run it. After the untar of the archive please do a 'chmod +x system_designer' in order to be able to run the tool.
11 | For getting Help on the tool you can run the tool and go to Help menu in order to get more information.
12 |
13 | System Designer can allow you to develop custom plugin for Audio Tuning of some Acoustic processiong. Current sample is based on Asus T100 DSP topology. Only tuning part is visible under System Designer. The routing is not visible.
14 |
15 | ### how to start
16 | Before starting System Designer you will need to get one instance of Parameter Framework up and runing. In order to do that the best solution is to run ClientSimulator.
17 | After the instance of clientSimulator is up and runing you can connect SystemDesigner to the `test-platorm`.
18 | ```
19 | Run system designer
20 | Inside Device Manager Right click on Ethernet and select Add new device
21 | Enter localhost IP (127.0.0.1) Port is 5000 and select tuning_topology folder for Offline layout
22 | A new item is visible inside under the Ethernet. Right click on it and select on Connect.
23 | Now System Designer will show you the different path of the Audio system
24 | ```
25 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/SbaEqualizers.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/nuc-tutorial/Structure/Audio/RealtekAlc283Subsystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/nuc-tutorial/clientSimulator/README.md:
--------------------------------------------------------------------------------
1 |
2 | # clientSimulator for Intel NUC
3 | This section is describing how to use clientSimulator tool for NUC device.
4 |
5 | ## Before starting
6 | clientSimulator is a tool provided on top of Parameter ramework. Please refer to the next link [clientSimulator](https://github.com/01org/parameter-framework/tree/master/tools/clientSimulator) for more infroamtion about the different options.
7 |
8 | ## Before starting
9 | Variables setting and packages
10 | ```
11 | sudo apt-get install python3 m4
12 | export LD_LIBRARY_PATH=/usr/local/lib
13 | export PYTHONPATH=/usr/local/lib/python3/dist-packages
14 | ```
15 |
16 | ## Running client simulator and update XML setting from .pfw files
17 | 1) Run Parameter Framework client simulator Go to tools nuc-tutorial/clientSimulator folder :
18 | ```
19 | pfClientSimulator.py ./scripts/nuc
20 | ```
21 | Update `scripts/nuc/conf.json` to reflect the path
22 |
23 | => Script will run `test-platform` application.
24 |
25 | 2) Generate Wav file
26 | For the test script we need to have some Wav file. A simple way can be to use siggen UBUNTU Package in order to generate one file.
27 | ```
28 | sudo apt-get install siggen
29 | signalgen -v -b 16 -t 10 -2 -A 30 -s 48000 -w noise.wav noise 2000
30 | ```
31 | Please note that reference playback file is put inside 'scripts/t100/audio-test-scripts.json'. So feel free to update with your own Wav file.
32 |
33 | 3) Check status
34 | ```
35 | /usr/local/bin/remote-process localhost 5000 status
36 | ```
37 |
38 | 4) Play with the differnet UCs part of clientSimulator.
39 |
40 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/CommonAlgoTypes.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
22 |
24 |
26 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | parameter-framework and associated libraries and tools are licensed under the
2 | 3-Clause BSD license:
3 |
4 | Copyright (c) 2011-2014, Intel Corporation
5 | All rights reserved.
6 |
7 | Redistribution and use in source and binary forms, with or without modification,
8 | are permitted provided that the following conditions are met:
9 |
10 | 1. Redistributions of source code must retain the above copyright notice, this
11 | list of conditions and the following disclaimer.
12 |
13 | 2. Redistributions in binary form must reproduce the above copyright notice,
14 | this list of conditions and the following disclaimer in the documentation and/or
15 | other materials provided with the distribution.
16 |
17 | 3. Neither the name of the copyright holder nor the names of its contributors
18 | may be used to endorse or promote products derived from this software without
19 | specific prior written permission.
20 |
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 |
--------------------------------------------------------------------------------
/nuc-tutorial/tuning_topology/README.md:
--------------------------------------------------------------------------------
1 | # Intel NUC SystemDesigner tutorial
2 |
3 | This directory contains SystemDesigner configuration files for Asus T100
4 |
5 | ## SystemDesigner setup:
6 |
7 | SystemDesigner can be downloaded from the next link:
8 | https://01.org/parameter-framework/companion-tools
9 |
10 | Please note that you will need to install openjdk-8 in order to run it. After the untar of the archive please do a 'chmod +x system_designer' in order to be able to run the tool.
11 | For getting Help on the tool you can run the tool and go to Help menu in order to get more information.
12 |
13 | System Designer can allow you to develop custom plugin for Audio Tuning of some Acoustic processiong. Current sample is based on Asus T100 DSP topology. Only tuning part is visible under System Designer. The routing is not visible.
14 |
15 | ### how to start
16 | Before starting System Designer you will need to get one instance of Parameter Framework up and runing. In order to do that the best solution is to run ClientSimulator.
17 | After the instance of clientSimulator is up and runing you can connect SystemDesigner to the `test-platorm`.
18 | ```
19 | Run system designer
20 | Inside Device Manager Right click on Ethernet and select Add new device
21 | Enter localhost IP (127.0.0.1) Port is 5000 and select tuning_topology folder for Offline layout
22 | A new item is visible inside under the Ethernet. Right click on it and select on Connect.
23 | Now System Designer will show you the different path of the Audio system
24 | ```
25 |
26 | ### Editor Mode
27 |
28 | If you want to customize the topology file you can run System Designer with the next paramter. It will open the topology in edition mode in order to be able to modify it.
29 | ```
30 | ./system_designer -editorMode
31 | ```
32 |
33 |
--------------------------------------------------------------------------------
/nuc-tutorial/tuning_topology/layout_ui.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/SbaIir.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
9 |
11 |
13 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/Dcr.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
9 |
11 |
13 |
15 |
17 |
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/nuc-tutorial/xmlGenerator/AudioConfigurableDomains-Tuning.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | 50 50
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 50 50
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/nuc-tutorial/tuning_topology/layout_topology.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop1Fir.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | off
16 |
17 |
18 | stereo
19 |
20 |
21 |
22 | 64
23 | 0
24 | 0
25 | 20100 -658 11187 3354 486 -589 -797 -263 -299 -319 -99 40 105 161 142 68 -14 -78 -80 -60 -31 4 38 35 4 -31 -46 -40 -8 28 62 80 73 47 11 -28 -55 -77 -83 -70 -47 -13 22 46 63 66 57 38 14 -8 -24 -34 -35 -36 -33 -23 -9 2 10 15 23 26 17 0
26 |
27 |
28 | 64
29 | 0
30 | 0
31 | 20100 -658 11187 3354 486 -589 -797 -263 -299 -319 -99 40 105 161 142 68 -14 -78 -80 -60 -31 4 38 35 4 -31 -46 -40 -8 28 62 80 73 47 11 -28 -55 -77 -83 -70 -47 -13 22 46 63 66 57 38 14 -8 -24 -34 -35 -36 -33 -23 -9 2 10 15 23 26 17 0
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop2Fir.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | off
16 |
17 |
18 | stereo
19 |
20 |
21 |
22 | 64
23 | 0
24 | 0
25 | 20100 -658 11187 3354 486 -589 -797 -263 -299 -319 -99 40 105 161 142 68 -14 -78 -80 -60 -31 4 38 35 4 -31 -46 -40 -8 28 62 80 73 47 11 -28 -55 -77 -83 -70 -47 -13 22 46 63 66 57 38 14 -8 -24 -34 -35 -36 -33 -23 -9 2 10 15 23 26 17 0
26 |
27 |
28 | 64
29 | 0
30 | 0
31 | 20100 -658 11187 3354 486 -589 -797 -263 -299 -319 -99 40 105 161 142 68 -14 -78 -80 -60 -31 4 38 35 4 -31 -46 -40 -8 28 62 80 73 47 11 -28 -55 -77 -83 -70 -47 -13 22 46 63 66 57 38 14 -8 -24 -34 -35 -36 -33 -23 -9 2 10 15 23 26 17 0
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/nuc-tutorial/tuning_topology/layout_types.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/Lpro.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/nuc-tutorial/README.md:
--------------------------------------------------------------------------------
1 | # Intel NUC tutorial
2 |
3 | This directory contains Intel NUC sample for Skylake devices (NUC6i5SYH).
4 |
5 | ## Intel NUC Environment setup:
6 |
7 | This part is describing Intel NUC environement setup.
8 |
9 | ### UBUNTU Setup
10 | This section is describing how to get Intel NUC under Ubuntu.
11 |
12 | Several Wiki pages are present on the Web. You can find a way to have UBUNTU install at the next Loacation.
13 |
14 | All the tests done under UBUNTU have been validation with UBUNTU 17.04 release amd64 destop release.
15 |
16 |
17 | ## PFW setup for native compilation:
18 |
19 | ### UBUNTU package install for compilation on board.
20 | Boot the board and install the different package needed.
21 | ```
22 | sudo apt-get install build-essential cmake vim
23 | sudo apt-get install libasound2-dev libxml2-dev libasio-dev
24 | ```
25 |
26 | ### Repository to Clone:
27 | Create a folder intel
28 | Clone the different git tree for PFW.
29 | ```
30 | git clone http://github.com/01org/parameter-framework.git
31 | git clone http://github.com/01org/parameter-framework-plugins-alsa.git
32 | git clone http://github.com/01org/parameter-framework-samples.git
33 | ```
34 |
35 | ### Parameter Framework:
36 | Follow the README in order to compile PFW and the plugin.
37 |
38 | The next tag have been used for the validation:
39 | - v3.2.7 for the Parameter Framework
40 | - v1.1.3 for the ALSA Plugin.
41 |
42 | Compile the different modules on the File system with native compilation.
43 |
44 |
45 | ## Test on Board
46 |
47 | Go to parameter-framework-samples folder.
48 | Go to nuc-tutorial folder.
49 | ```
50 | # Use the path set during Cmake build of PFW core.
51 | export LD_LIBRARY_PATH=/usr/local/lib
52 |
53 | # Start test plattform with XML confoiguration.
54 | test-platform ./AudioParameterFramework.xml
55 |
56 |
57 | # Create Criterion
58 | remote-process localhost 5001 createExclusiveSelectionCriterionFromStateList Mode Normal
59 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList RoutageState Configure Flow Path
60 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList OpenedCaptureRoutes Media
61 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList OpenedPlaybackRoutes Media Hdmi
62 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList SelectedInputDevices Headset
63 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList SelectedOutputDevices Headphones Headset AuxDigital
64 | remote-process localhost 5001 createExclusiveSelectionCriterionFromStateList ScreenState Off On
65 |
66 | # Start remote-process and get some parameters
67 | remote-process localhost 5001 start
68 | remote-process localhost 5000 listParameters /Audio/alc283
69 |
70 | remote-process localhost 5000 help
71 | ```
72 |
73 | Exemple for Headset Playback on Media port.
74 |
75 | ```
76 | # Enable Tuning mode (just need once)
77 | remote-process localhost 5000 setTuningMode on
78 |
79 | # Configure Codec
80 | remote-process localhost 5000 setParameter /Audio/alc283/output/headset/switch 1 1
81 | remote-process localhost 5000 setParameter /Audio/alc283/output/headset/volume 50 50
82 |
83 |
84 | # Test playback
85 | aplay -Dplughw:0,0 test.wav
86 | ```
87 |
88 | # List of criterions:
89 | --------------------
90 | ```
91 | ExclusiveCriterion Mode : Normal
92 | InclusiveCriterion RoutageState : Configure Flow Path
93 | InclusiveCriterion OpenedPlaybackRoutes : Media Hdmi
94 | InclusiveCriterion OpenedCaptureRoutes : Media
95 | InclusiveCriterion SelectedInputDevices : Headset
96 | InclusiveCriterion SelectedOutputDevices : Headphones Headset AuxDigital
97 | ExclusiveCriterion ScreenState : Off On
98 | ```
99 |
100 | # TODO:
101 | - Enable all HDMI outputs.
102 | - Add all the mixers controls.
103 |
104 |
--------------------------------------------------------------------------------
/core-tutorial/Settings/Genres.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | Included
34 |
35 |
36 | Included
37 |
38 |
39 | Excluded
40 |
41 |
42 | Excluded
43 |
44 |
45 |
46 |
47 | Excluded
48 |
49 |
50 | Included
51 |
52 |
53 | Excluded
54 |
55 |
56 | Excluded
57 |
58 |
59 |
60 |
61 | Excluded
62 |
63 |
64 | Excluded
65 |
66 |
67 | Included
68 |
69 |
70 | Excluded
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstDefaultGains.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | 0 0
38 |
39 |
40 | 0 0
41 |
42 |
43 | 0 0
44 |
45 |
46 | 0 0
47 |
48 |
49 | 0 0
50 |
51 |
52 |
53 |
54 | 0 0
55 |
56 |
57 | 0 0
58 |
59 |
60 | 0 0
61 |
62 |
63 | 0 0
64 |
65 |
66 |
67 |
68 | 0 0
69 |
70 |
71 | 0 0
72 |
73 |
74 | 0 0
75 |
76 |
77 | 0 0
78 |
79 |
80 | 0 0
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/intel/Mdrc.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/Twl6040ComponentTypeSet.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/bytcr-rt5640-default.pfw:
--------------------------------------------------------------------------------
1 | domain: HwCodec.Calibration
2 | conf: Default
3 | /Audio/codec/rt5640/mixer/voice_dsp/dacl2_source = IF2_DAC_L
4 | /Audio/codec/rt5640/mixer/voice_dsp/dacr2_source = IF2_DAC_R
5 |
6 | ##############################
7 | # Mute & Unmute Steps
8 | ##############################
9 |
10 | supDomain: Routing.Mute
11 | # Definition of Mute and Unmute for futur use in this supDomain
12 | RoutageState Includes Flow
13 |
14 | supDomain: HwCodec.Playback
15 | domain: Headset
16 | conf: Unmute
17 | ALL
18 | ANY
19 | SelectedOutputDevices Includes Headset
20 | SelectedOutputDevices Includes Headphones
21 | ANY
22 | OpenedPlaybackRoutes Includes HwCodec0IA
23 |
24 | /Audio/codec/rt5640/output/headphone/analog/volume/0/muted = 0
25 | /Audio/codec/rt5640/output/headphone/analog/volume/1/muted = 0
26 |
27 | conf: Mute
28 | /Audio/codec/rt5640/output/headphone/analog/volume/0/muted = 1
29 | /Audio/codec/rt5640/output/headphone/analog/volume/1/muted = 1
30 |
31 | ##############################
32 | # Configure Step
33 | ##############################
34 |
35 | supDomain: Routing.Configure
36 | RoutageState Includes Configure
37 |
38 | supDomain: HwCodec.Playback
39 | domain: Ihf
40 | conf: Bind
41 | ALL
42 | SelectedOutputDevices Includes Ihf
43 | ANY
44 | OpenedPlaybackRoutes Includes HwCodec0IA
45 |
46 | /Audio/codec/rt5640/output/speaker/analog/switch_l = 1
47 | /Audio/codec/rt5640/output/speaker/analog/switch_r = 1
48 | /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/left/switch = 1
49 | /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/right/switch = 1
50 |
51 | conf: Unbind
52 | /Audio/codec/rt5640/output/speaker/analog/switch_l = 0
53 | /Audio/codec/rt5640/output/speaker/analog/switch_r = 0
54 | /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/left/switch = 0
55 | /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/right/switch = 0
56 |
57 | domain: Multimedia.Ihf
58 | conf: Bind
59 | ALL
60 | SelectedOutputDevices Includes Ihf
61 | OpenedPlaybackRoutes Includes HwCodec0IA
62 |
63 | /Audio/codec/rt5640/mixer/analog/speaker_mixer/right/dac/1/switch = 1
64 | /Audio/codec/rt5640/mixer/analog/speaker_mixer/left/dac/1/switch = 1
65 | /Audio/codec/rt5640/output/speaker/switch = 1
66 | conf: Unbind
67 |
68 | /Audio/codec/rt5640/mixer/analog/speaker_mixer/right/dac/1/switch = 0
69 | /Audio/codec/rt5640/mixer/analog/speaker_mixer/left/dac/1/switch = 0
70 | /Audio/codec/rt5640/output/speaker/switch = 0
71 |
72 | domain: Headset
73 | conf: Bind
74 | ALL
75 | ANY
76 | OpenedPlaybackRoutes Includes HwCodec0IA
77 | ANY
78 | SelectedOutputDevices Includes Headset
79 | SelectedOutputDevices Includes Headphones
80 |
81 | /Audio/codec/rt5640/output/headphone/analog/switch_l = 1
82 | /Audio/codec/rt5640/output/headphone/analog/switch_r = 1
83 | /Audio/codec/rt5640/output/headphone/switch = 1
84 |
85 | conf: Unbind
86 | /Audio/codec/rt5640/output/headphone/analog/switch_l = 1
87 | /Audio/codec/rt5640/output/headphone/analog/switch_r = 1
88 | /Audio/codec/rt5640/output/headphone/switch = 0
89 |
90 | domain: Multimedia.Headset
91 | conf: Bind
92 | ALL
93 | OpenedPlaybackRoutes Includes HwCodec0IA
94 | ANY
95 | SelectedOutputDevices Includes Headset
96 | SelectedOutputDevices Includes Headphones
97 |
98 | /Audio/codec/rt5640/mixer/analog/hpout_mixer/dac1/switch = 1
99 |
100 | conf: Unbind
101 | /Audio/codec/rt5640/mixer/analog/hpout_mixer/dac1/switch = 0
102 |
103 | domain: Multimedia.Playback
104 | conf: Bind
105 | OpenedPlaybackRoutes Includes HwCodec0IA
106 |
107 | /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/right/1/switch = 1
108 | /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/left/1/switch = 1
109 | /Audio/codec/rt5640/mixer/digital/inf/left/inf1_switch = 1
110 | /Audio/codec/rt5640/mixer/digital/inf/right/inf1_switch = 1
111 | /Audio/codec/rt5640/mixer/analog/output_mixer/left/dac/l1/switch = 1
112 | /Audio/codec/rt5640/mixer/analog/output_mixer/right/dac/r1/switch = 1
113 |
114 | conf: Unbind
115 | /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/right/1/switch = 0
116 | /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/left/1/switch = 0
117 | /Audio/codec/rt5640/mixer/digital/inf/left/inf1_switch = 0
118 | /Audio/codec/rt5640/mixer/digital/inf/right/inf1_switch = 0
119 | /Audio/codec/rt5640/mixer/analog/output_mixer/left/dac/l1/switch = 0
120 | /Audio/codec/rt5640/mixer/analog/output_mixer/right/dac/r1/switch = 0
121 |
122 | supDomain: HwCodec.Capture
123 | domain: Capture sequenceAware
124 | conf: Analog
125 | ALL
126 | SelectedInputDevices Includes Headset
127 | OpenedCaptureRoutes Includes HwCodec0IA
128 |
129 | /Audio/codec/rt5640/mixer/analog/rec_mixer/right/bst/2/switch = 1
130 | /Audio/codec/rt5640/mixer/analog/rec_mixer/left/bst/2/switch = 1
131 | /Audio/codec/rt5640/input/headset/switch = 1
132 |
133 | domain: AllMics
134 | conf: Bind
135 | ANY
136 | OpenedCaptureRoutes Includes HwCodec0IA
137 |
138 | /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/source = 1
139 | /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/switch = 1
140 | /Audio/codec/rt5640/mixer/digital/adc_mixer/left/stereo/1/switch = 1
141 |
142 | conf: Unbind
143 | /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/source = 0
144 | /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/switch = 0
145 | /Audio/codec/rt5640/mixer/digital/adc_mixer/left/stereo/1/switch = 0
146 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/Structure/Audio/SstSubsystem.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
82 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/omap-tutorial/Structure/Audio/OmapAbeComponentTypeSet.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/routing_sst.pfw:
--------------------------------------------------------------------------------
1 | domainGroup: Routing.Sst
2 |
3 | ####################################
4 | ############### Mute ###############
5 | ####################################
6 |
7 | domainGroup: Mute
8 | RoutageState Includes Flow
9 |
10 | domain: Calibration
11 | conf: Default
12 | # /Audio/sst/pipe/sprot_loop/gain/switch = 1
13 | # /Audio/sst/pipe/media_loop2/gain/switch = 1
14 | # Default length for Algorithms of Media Loop1 (Playback Path)
15 | /Audio/sst/pipe/media_loop1/equalizer/fir/length = 272
16 | /Audio/sst/pipe/media_loop1/equalizer/iir/length = 300
17 | /Audio/sst/pipe/media_loop1/mdrc/length = 286
18 | # Default length for Algorithms of Media Loop2 (Capture Path)
19 | /Audio/sst/pipe/media_loop2/equalizer/fir/length = 272
20 | /Audio/sst/pipe/media_loop2/equalizer/iir/length = 300
21 | /Audio/sst/pipe/media_loop2/mdrc/length = 286
22 |
23 | domainGroup: HwCodec
24 |
25 | domainGroup: Playback
26 |
27 | domain: Internal
28 | conf: Unmute
29 | OpenedPlaybackRoutes Includes HwCodec0IA
30 | /Audio/sst/pipe/codec_out/gain/switch = 1
31 | conf: Mute
32 | /Audio/sst/pipe/codec_out/gain/switch = 0
33 |
34 | domainGroup: Media
35 |
36 | domainGroup: Playback
37 |
38 | domain: Regular
39 | conf: Unmute
40 | OpenedPlaybackRoutes Includes Media
41 | /Audio/sst/pipe/pcm_regular/gain/switch = 1
42 | conf: Mute
43 | /Audio/sst/pipe/pcm_regular/gain/switch = 0
44 |
45 | domain: Deep
46 | conf: Unmute
47 | OpenedPlaybackRoutes Includes DeepMedia
48 | /Audio/sst/pipe/pcm_deep/gain/switch = 1
49 | conf: Mute
50 | /Audio/sst/pipe/pcm_deep/gain/switch = 0
51 |
52 | domain: SbaSwm
53 | conf: Unmute
54 | # Both Regular and Deep are mixed inside Media switch matrix
55 | ANY
56 | OpenedPlaybackRoutes Includes Media
57 | OpenedPlaybackRoutes Includes DeepMedia
58 | /Audio/sst/pipe/pcm0_in/gain/switch = 1
59 | conf: Mute
60 | /Audio/sst/pipe/pcm0_in/gain/switch = 0
61 |
62 | domainGroup: Capture
63 |
64 | domain: Regular
65 | conf: Unmute
66 | OpenedCaptureRoutes Includes Media
67 | /Audio/sst/pipe/pcm1_out/gain/switch = 1
68 | conf: Mute
69 | /Audio/sst/pipe/pcm1_out/gain/switch = 0
70 |
71 | #########################################
72 | ################ Enable #################
73 | #########################################
74 |
75 |
76 | #########################################
77 | ############### Configure ###############
78 | #########################################
79 |
80 | domainGroup: Configure
81 | RoutageState Includes Configure
82 |
83 | domain: Calibration
84 | conf: Default
85 | # component: /Audio/sst/pipe/codec_in/deinterleaver
86 | # # Amic (slot0) => CODEC_1/LEFT + RIGHT
87 | # /codec_in1_0/source = slot2
88 | # /codec_in1_1/source = slot2
89 | component: /Audio/sst/interleaver/codec_out
90 | /slot0/source = codec_out_0
91 | /slot1/source = codec_out_1
92 | # /slot0/source = codec_out0_0
93 | # /slot1/source = codec_out0_1
94 | # /slot2/source = codec_out1_0
95 | # /slot3/source = codec_out1_1
96 |
97 | domainGroup: Playback
98 |
99 | # Used for all kinds of media playback on an HwCodec0 accessory that
100 | # needs speaker protection
101 | # domain: SpeakerEqToSprot
102 | # conf: Bind
103 | # ANY
104 | # OpenedPlaybackRoutes Includes Media
105 | # OpenedPlaybackRoutes Includes DeepMedia
106 | # OpenedPlaybackRoutes Includes HwCodec0IA
107 | # SelectedOutputDevices Includes Ihf
108 | # /Audio/sst/main_mixer/sprot_loop/mix/media_loop1 = 1
109 | # conf: Unbind
110 | # /Audio/sst/main_mixer/sprot_loop/mix/media_loop1 = 0
111 |
112 | domainGroup: Media
113 | confType: Bind
114 | ANY
115 | OpenedPlaybackRoutes Includes Media
116 | OpenedPlaybackRoutes Includes DeepMedia
117 |
118 | domain: Internal
119 | conf: Bind
120 | OpenedPlaybackRoutes Includes HwCodec0IA
121 | /Audio/sst/main_mixer/pcm1/mix/pcm0 = 1
122 |
123 | conf: Unbind
124 | /Audio/sst/main_mixer/pcm1/mix/pcm0 = 0
125 |
126 |
127 | domain: ToSpeakerEq
128 | conf: Bind
129 | OpenedPlaybackRoutes Includes HwCodec0IA
130 | SelectedOutputDevices Includes Ihf
131 | /Audio/sst/main_mixer/media_loop1/mix/pcm0 = 1
132 | /Audio/sst/main_mixer/codec_out/mix/media_loop1 = 1
133 | /Audio/sst/pipe/media_loop1/gain/switch = 1
134 |
135 | conf: Unbind
136 | /Audio/sst/main_mixer/media_loop1/mix/pcm0 = 0
137 | /Audio/sst/main_mixer/codec_out/mix/media_loop1 = 0
138 | /Audio/sst/pipe/media_loop1/gain/switch = 0
139 |
140 | domain: ToHeadsetOnly
141 | conf: Bind
142 | OpenedPlaybackRoutes Includes HwCodec0IA
143 | SelectedOutputDevices Includes Headset
144 | SelectedOutputDevices Excludes Ihf
145 | /Audio/sst/main_mixer/codec_out/mix/pcm0 = 1
146 |
147 | conf: Unbind
148 | /Audio/sst/main_mixer/codec_out/mix/pcm0 = 0
149 |
150 | domainGroup: MediaMixer
151 |
152 | domain: Regular
153 | conf: Bind
154 | OpenedPlaybackRoutes Includes Media
155 | /Audio/sst/media_mixer/media0/mix/regular = 1
156 | conf: Unbind
157 | /Audio/sst/media_mixer/media0/mix/regular = 0
158 |
159 | domain: Deep
160 | conf: Bind
161 | OpenedPlaybackRoutes Includes DeepMedia
162 | /Audio/sst/media_mixer/media0/mix/deep = 1
163 | conf: Unbind
164 | /Audio/sst/media_mixer/media0/mix/deep = 0
165 |
166 |
167 | # domainGroup: HwCodec
168 | #
169 | # # Used for all streams (voice or media) going to an HwCodec0
170 | # # accessory that needs speaker protection
171 | # domain: SprotToSpeaker
172 | # conf: Bind
173 | # OpenedPlaybackRoutes Includes HwCodec0IA
174 | # SelectedOutputDevices Includes Ihf
175 | # /Audio/sst/main_mixer/ihf_or_earpiece/mix/sprot_loop = 1
176 | # conf: Unbind
177 | # /Audio/sst/main_mixer/ihf_or_earpiece/mix/sprot_loop = 0
178 |
179 | domainGroup: Capture
180 | confType: Bind
181 | OpenedCaptureRoutes Includes Media
182 |
183 | domainGroup: Media
184 | confType: Bind
185 | AudioSource IsNot VoiceUplink
186 | AudioSource IsNot VoiceDownlink
187 | AudioSource IsNot VoiceCall
188 |
189 | # domain: MediaLoop
190 | # conf: Bind
191 | # OpenedCaptureRoutes Includes HwCodec0IA
192 | # /Audio/sst/main_mixer/pcm1/mix/media_loop2 = 1
193 | # conf: Unbind
194 | # /Audio/sst/main_mixer/pcm1/mix/media_loop2 = 0
195 |
196 | domainGroup: HwCodec
197 | OpenedCaptureRoutes Includes HwCodec0IA
198 |
199 | # domain: Deinterleaver
200 | # # Media
201 | # # Front mic (slot0) => CODEC_0/LEFT + RIGHT
202 | # conf: FrontMic
203 | # SelectedInputDevices Includes Main
204 | # component: /Audio/sst/pipe/codec_in/deinterleaver
205 | # /codec_in0_0/source = slot0
206 | # /codec_in0_1/source = slot0
207 | # # Back mic (slot1) => CODEC_0/LEFT + RIGHT
208 | # conf: BackMic
209 | # SelectedInputDevices Includes Back
210 | # component: /Audio/sst/pipe/codec_in/deinterleaver
211 | # /codec_in0_0/source = slot1
212 | # /codec_in0_1/source = slot1
213 | #
214 |
--------------------------------------------------------------------------------
/nuc-tutorial/Settings/Audio/AudioConfigurableDomains.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | 50 50
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 50 50
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | 1 1
71 |
72 |
73 |
74 |
75 | 0 0
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 | 1 1
104 |
105 |
106 |
107 |
108 | 0 0
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | 1
139 |
140 |
141 |
142 |
143 | 0
144 |
145 |
146 |
147 |
148 |
149 |
--------------------------------------------------------------------------------
/omap-tutorial/README.md:
--------------------------------------------------------------------------------
1 | # OMAP tutorial
2 |
3 | This directory contains OMAP exemple for PandaBoardES and Pand5-uevm board.
4 |
5 | ## OMAP Environment setup:
6 |
7 | This part is describing OMAP environement setup for PANDA board.
8 |
9 | ### Bootloader and Kernel
10 | This section is describing how to build the different bootloader and kernel components.
11 |
12 | - u-boot:
13 | --------
14 | For u-boot the upstream mainline is supporting OMAP devices. A simple patch is needed in order to ensure the configuration of the OMAP ABE DPLL to use the SYSCLK for the ABE DPLL.
15 |
16 | ```
17 | git clone git://git.denx.de/u-boot.git
18 | ```
19 |
20 | Add the #define CONFIG_SYS_OMAP_ABE_SYSCK inside ./include/configs/omap4_panda.h
21 | ```
22 | make CROSS_COMPILE=arm-none-linux-gnueabi- omap4_panda_config
23 | make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm
24 | ```
25 | => Generation `MLO` and `u-boot.img` for boot partition
26 |
27 | - kernel:
28 | --------
29 | As OMAP ABE code is not upstream the next tree is sharing a Kernel image based on 3.14 kernel. This image is enabling ABE and still need some improvement for stability.
30 |
31 | ```
32 | git clone git://gitorious.org/omap-audio/linux-audio.git
33 | git checkout origin/sgc/topic/pfw_omap
34 | make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap2plus_defconfig
35 | make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm uImage -j5
36 | make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm dtbs
37 | cd arch/arm/boot
38 | mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux" -d zImage uImage
39 | ```
40 | => Copy uImage and `omap4-panda-es.dtb` on the boot partition
41 |
42 |
43 | ### OMAP Audio BackEnd Firmware generation
44 | This section is describing how to generated the OMAP4+ ABE FW and the ASoC-DFW header for Audio Firmware binaries.
45 |
46 | #### OMAP AESS/ABE FW:
47 |
48 | * OMAP ABE tool:
49 |
50 | This tool is used in order to add some FW binary data on top of the firmware. The kernel driver is usem them in order to get all the different FW address for the audio cluster and port configuration.
51 |
52 | ```
53 | git clone git://gitorious.org/omap-audio/abefw.git
54 | ./autogen.sh
55 | ./configure --with-linux-dir=/path/to/linux.git
56 | make
57 | sudo make install
58 | ./scripts/abe_tool.h 009590
59 | ```
60 |
61 | #### ASoC-DFW tool:
62 | * ASoC-DFW tool
63 |
64 | This tool is used to create all the binary data for the mixer controls, DAPM graph for the Audio driver.
65 |
66 | ```
67 | git clone git://gitorious.org/omap-audio/asoc-fw.git
68 | git checkout origin/sgc/topic/pfw_omap
69 | ./autogen.sh
70 | ./configure --with-linux-dir=/path/to/linux.git --enable-omap4
71 | make
72 | sudo make install
73 | ./scripts/abegen.sh
74 | ```
75 | => generate `omap4_abe_new` FW file. To be copy inside `/lib/firmware/omap_aess-adfw.bin`
76 |
77 | ### File System generation
78 |
79 | The PFW test has been done with UBUNTU Core File System or Poky minimal image..
80 |
81 | #### UBUNTU File System:
82 | Download ubuntu core FS.
83 | => Untar the FS on the File system partition
84 |
85 | * Remove Root password
86 | ```
87 | sudo gedit /media/rootfs/etc/shadow
88 | ```
89 | Remove the star `*` after `root:` inside the file
90 | ```
91 | root::...
92 | ```
93 |
94 | * Update the console port
95 |
96 | Create new file: /etc/init/serial.conf
97 | ```
98 | sudo nano /media/rootfs/etc/init/serial.conf
99 | ```
100 | Content
101 | ```
102 | start on stopped rc RUNLEVEL=[2345]
103 | stop on runlevel [!2345]
104 |
105 | respawn
106 | exec /sbin/getty 115200 ttyO2
107 | ```
108 |
109 | ## PFW setup for native compilation:
110 |
111 | ### UBUNTU package install for compilation on board.
112 |
113 | Boot the board and install the different package needed.
114 | ```
115 | sudo apt-get install build-essential cmake vim
116 | sudo apt-get install libasound2-dev libxml2-dev
117 | ```
118 |
119 | ### Repository to Clone:
120 | Create a folder intel
121 | Clone the different git tree for PFW.
122 | ```
123 | git clone http://github.com/01org/parameter-framework.git
124 | git clone http://github.com/01org/parameter-framework-plugins-alsa.git
125 | git clone http://github.com/01org/parameter-framework-samples.git
126 | ```
127 |
128 | ### Parameter Framework:
129 | Follow the README in order to compile PFW and the plugin.
130 |
131 | Compile the different modules on the File system with native compilation.
132 |
133 |
134 | ## Test on Board
135 | Go to parameter-framework-samples folder.
136 | Go to omap-tutorial folder.
137 | ```
138 | # Use the path set during Cmake build of PFW core.
139 | export LD_LIBRARY_PATH=/usr/local/lib
140 |
141 | test-platform ./PandaBoardES.xml
142 | remote-process localhost 5001 start
143 | remote-process localhost 5000 listParameters /Audio
144 | remote-process localhost 5000 help
145 | ```
146 | Exemple for Headset Playback on Media port.
147 | ```
148 | # Enable Tuning mode (just need once)
149 | remote-process localhost 5000 setTuningMode on
150 | # Configure Codec
151 | remote-process localhost 5000 setParameter /Audio/omapabe/twl6040/output/headset/volume 12
152 | remote-process localhost 5000 setParameter /Audio/omapabe/twl6040/output/headset/enable/right hs_dac
153 | remote-process localhost 5000 setParameter /Audio/omapabe/twl6040/output/headset/enable/left hs_dac
154 | # Configure ABE/AESS
155 | remote-process localhost 5000 setParameter /Audio/omapabe/abe/output/headset/dl1/media_playback 120
156 | remote-process localhost 5000 setParameter /Audio/omapabe/abe/output/headset/dl1/mixer_media 1
157 | remote-process localhost 5000 setParameter /Audio/omapabe/abe/output/headset/sdt_dl 1
158 | remote-process localhost 5000 setParameter /Audio/omapabe/abe/output/headset/sdt_dl_volume/volume 120
159 | remote-process localhost 5000 setParameter /Audio/omapabe/abe/output/pdm 1
160 | # Test playback
161 | aplay -Dplughw:0,0 test.wav
162 | ```
163 |
164 | # TODO:
165 |
166 | Create some PFW file for the setting of the different Path.
167 | For Pandaboard:
168 | - Modem/VoiceCall is not supported
169 | - Earpiece and IHF are not supported
170 | - DMICs are not supported
171 |
172 | Capture ports:
173 | - Media => MM_UL2
174 | - MultiChannel => MM_UL2
175 | - Voice => VX_UL
176 | - Modem => VX_UL (dummy FE)
177 | Playback ports:
178 | - Media => MM_DL
179 | - Tones => TONES_DL
180 | - Voice => VX_DL
181 | - Modem => VX_DL (dummy FE)
182 | - DeepMedia => PingPong port Low Power.
183 |
184 |
185 | List of criterions for OMAP ABE:
186 | -------------------------------
187 | ```
188 | ExclusiveCriterion Mode : InCsvCall InVoipCall Normal
189 | InclusiveCriterion RoutageState : Configure Flow Path
190 | InclusiveCriterion ClosingCaptureRoutes : Media Modem Voice MultiChannel
191 | InclusiveCriterion ClosingPlaybackRoutes : Media Modem Voice Tones DeepMedia
192 | InclusiveCriterion OpenedCaptureRoutes : Media Modem Voice MultiChannel
193 | InclusiveCriterion OpenedPlaybackRoutes : Media Modem Voice Tones DeepMedia
194 | InclusiveCriterion SelectedInputDevice : SubMic Headset MainMic Dmic1 Dmic2 Dmic1
195 | InclusiveCriterion SelectedOutputDevice : Earpiece Headset Ihf
196 | InclusiveCriterion AudioSource : Default Mic None VoiceCall VoiceCommunication VoiceDownlink VoiceUplink
197 | ExclusiveCriterion BandType : NB SuperWB Unknown WB
198 | ExclusiveCriterion ScreenState : Off On
199 | ```
200 |
201 | Link:
202 | ====
203 | http://www.omappedia.com/wiki/Audio_Drive_Arch
204 |
205 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/AudioConfigurableDomainsRealtek564x-Tuning.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 31
42 |
43 |
44 | 31
45 |
46 |
47 | g-2x
48 |
49 |
50 | 165 165
51 |
52 |
53 | 31
54 |
55 |
56 | 31
57 |
58 |
59 | 130 130
60 |
61 |
62 |
63 |
64 | 31
65 |
66 |
67 | 31
68 |
69 |
70 | g-2x
71 |
72 |
73 | 130 130
74 |
75 |
76 | 31
77 |
78 |
79 | 31
80 |
81 |
82 | 175 175
83 |
84 |
85 |
86 |
87 | 31
88 |
89 |
90 | 31
91 |
92 |
93 | g-2x
94 |
95 |
96 | 132 132
97 |
98 |
99 | 31
100 |
101 |
102 | 31
103 |
104 |
105 | 175 175
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | 1
125 |
126 |
127 |
128 |
129 |
130 |
131 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop2Mdrc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | off
16 |
17 | 0
18 | simple
19 | 2
20 | parallel_arch_5th
21 |
22 |
23 | 0
24 | complementary
25 | 0.8994934558868408203125
26 | -1.8954265117645263671875
27 | 0.9603793621063232421875
28 | -1.9561820030212402343750
29 | -0.9366021156311035156250
30 | 0.0000000000000000000000
31 | 19200
32 | 8960
33 | 5120
34 | 2304
35 | 640
36 | 256
37 | 0
38 | 25
39 | 25
40 | 256
41 | 256
42 |
43 |
44 | 0
45 | complementary
46 | 0.9255115985870361328125
47 | -1.9194989204406738281250
48 | 0.5387456417083740234375
49 | 1.2170753479003906250000
50 | -0.4452285766601562500000
51 | -0.4396698474884033203125
52 | 19200
53 | 6656
54 | 3072
55 | 2816
56 | 640
57 | 256
58 | 13
59 | 25
60 | 25
61 | 256
62 | 256
63 |
64 |
65 | 0
66 | peaking
67 | 0.8588137626647949218750
68 | -1.8353552818298339843750
69 | 0.5445747375488281250000
70 | 1.2181944847106933593750
71 | -0.3989596366882324218750
72 | -0.3747951984405517578125
73 | 19200
74 | 5120
75 | 2560
76 | 1536
77 | 640
78 | 256
79 | 51
80 | 20
81 | 20
82 | 256
83 | 256
84 |
85 |
86 | 0
87 | peaking
88 | 0.7010886669158935546875
89 | -1.5644578933715820312500
90 | 0.5643525123596191406250
91 | 1.2245235443115234375000
92 | -0.2679491043090820312500
93 | -0.1911036968231201171875
94 | 19200
95 | 6400
96 | 3072
97 | 2560
98 | 640
99 | 256
100 | 13
101 | 50
102 | 50
103 | 3
104 | 3
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/README.md:
--------------------------------------------------------------------------------
1 | # Asus T100 tutorial
2 |
3 | This directory contains Asus T100 exemple for Baytrail CR devices.
4 |
5 | ## Asus T100 Environment setup:
6 |
7 | This part is describing Asus T100 environement setup.
8 |
9 | ### UBUNTU Setup
10 | This section is describing how to get Asus T100 under Ubuntu.
11 |
12 | Several Wiki pages are present on the Web. You can find a way to have UBUNTU install at the next Loacation.
13 |
14 | All the tests done under UBUNTU have been validation with UBUNTU 16.10 release amd64 destop release.
15 |
16 | Kernel used for the test is 4.8 release without any patches. You can follow the next link for more detail:
17 | https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
18 |
19 |
20 | ## PFW setup for native compilation:
21 |
22 | ### UBUNTU package install for compilation on board.
23 | Boot the board and install the different package needed.
24 | ```
25 | sudo apt-get install build-essential cmake vim
26 | sudo apt-get install libasound2-dev libxml2-dev libasio-dev
27 | ```
28 |
29 | ### Repository to Clone:
30 | Create a folder intel
31 | Clone the different git tree for PFW.
32 | ```
33 | git clone http://github.com/01org/parameter-framework.git
34 | git clone http://github.com/01org/parameter-framework-plugins-alsa.git
35 | git clone http://github.com/01org/parameter-framework-samples.git
36 | ```
37 |
38 | ### Parameter Framework:
39 | Follow the README in order to compile PFW and the plugin.
40 |
41 | The next tag have been used for the validation:
42 | - v3.2.6 for the Parameter Framework
43 | - v1.1.3 for the ALSA Plugin.
44 |
45 | Compile the different modules on the File system with native compilation.
46 |
47 |
48 | ## Test on Board
49 |
50 | Go to parameter-framework-samples folder.
51 | Go to asus-t100-tutorial folder.
52 | ```
53 | # Use the path set during Cmake build of PFW core.
54 | export LD_LIBRARY_PATH=/usr/local/lib
55 |
56 | # Start test plattform with XML confoiguration.
57 | test-platform ./AudioParameterFramework.xml
58 |
59 |
60 | # Create Criterion
61 | remote-process localhost 5001 createExclusiveSelectionCriterionFromStateList Mode Normal RingTone
62 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList RoutageState Configure Flow Path
63 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList OpenedCaptureRoutes DeepMedia HwCodec0IA Media
64 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList OpenedPlaybackRoutes DeepMedia HwCodec0IA Media
65 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList SelectedInputDevices Back Headset Main
66 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList SelectedOutputDevices Headphones Headset Ihf Hdmi
67 | remote-process localhost 5001 createInclusiveSelectionCriterionFromStateList AudioSource Default Mic None
68 | remote-process localhost 5001 createExclusiveSelectionCriterionFromStateList ScreenState Off On
69 |
70 | # Start remote-process and get some parameters
71 | remote-process localhost 5001 start
72 | remote-process localhost 5000 listParameters /Audio/sst
73 | remote-process localhost 5000 help
74 | ```
75 |
76 | Exemple for Speaker Playback (Ihf) on Media port.
77 |
78 | ```
79 | # Enable Tuning mode (just need once)
80 | remote-process localhost 5000 setTuningMode on
81 |
82 | # Configure Codec
83 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/headphone/analog/volume 0 0
84 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/headphone/analog/switch_l 1
85 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/headphone/analog/switch_r 1
86 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/headphone/switch 0
87 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/speaker/analog/volume 31 31
88 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/speaker/analog/switch_l 1
89 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/speaker/analog/switch_r 1
90 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/speaker/boost 3
91 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/speaker/switch 1
92 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/digital/volume/dac1 165 165
93 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/output/digital/volume/mono_dac 130 130
94 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/output_mixer/right/dac/r1/switch 1
95 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/output_mixer/left/dac/l1/switch 1
96 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/speaker_mixer/right/dac/1/switch 1
97 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/speaker_mixer/left/dac/1/switch 1
98 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/left/switch 1
99 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/spout_mixer/left/spkvol/right/switch 1
100 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/analog/hpout_mixer/dac1/switch 0
101 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/source 0
102 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/adc_mixer/right/stereo/1/switch 0
103 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/adc_mixer/left/stereo/1/switch 0
104 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/right/1/switch 1
105 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/dac_mixer/stereo/left/1/switch 1
106 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/inf/right/inf1_switch 1
107 | remote-process localhost 5000 setParameter /Audio/codec/rt5640/mixer/digital/inf/left/inf1_switch 1
108 |
109 |
110 | # Configure SST (LPE DSP)
111 | remote-process localhost 5000 setParameter /Audio/sst/pipe/pcm_regular/gain/level 0 0
112 | remote-process localhost 5000 setParameter /Audio/sst/pipe/pcm0_in/gain/level 0 0
113 | remote-process localhost 5000 setParameter /Audio/sst/pipe/codec_out/gain/level 0 0
114 | remote-process localhost 5000 setParameter /Audio/sst/pipe/media_loop1/gain/level 0 0
115 | remote-process localhost 5000 setParameter /Audio/sst/pipe/media_loop1/gain/switch 1
116 | remote-process localhost 5000 setParameter /Audio/sst/main_mixer/codec_out/mix/pcm0 0
117 | remote-process localhost 5000 setParameter /Audio/sst/main_mixer/codec_out/mix/media_loop1 1
118 | remote-process localhost 5000 setParameter /Audio/sst/main_mixer/pcm1/mix/pcm0 1
119 | remote-process localhost 5000 setParameter /Audio/sst/main_mixer/media_loop1/mix/pcm0 1
120 | remote-process localhost 5000 setParameter /Audio/sst/media_mixer/media0/mix/regular 1
121 | remote-process localhost 5000 setParameter /Audio/sst/media_mixer/media0/mix/deep 0
122 | remote-process localhost 5000 setParameter /Audio/sst/interleaver/codec_out/slot0/source 1
123 | remote-process localhost 5000 setParameter /Audio/sst/interleaver/codec_out/slot1/source 2
124 | remote-process localhost 5000 setParameter /Audio/sst/pipe/pcm_regular/gain/switch 1
125 | remote-process localhost 5000 setParameter /Audio/sst/pipe/pcm0_in/gain/switch 1
126 | remote-process localhost 5000 setParameter /Audio/sst/pipe/codec_out/gain/switch 1
127 |
128 |
129 | # Test playback
130 | aplay -Dplughw:0,0 test.wav
131 | ```
132 |
133 | # List of criterions:
134 | --------------------
135 | ```
136 | ExclusiveCriterion Mode : Normal RingTone
137 | InclusiveCriterion RoutageState : Configure Flow Path
138 | InclusiveCriterion OpenedCaptureRoutes : DeepMedia HwCodec0IA Media
139 | InclusiveCriterion OpenedPlaybackRoutes : DeepMedia HwCodec0IA Media Hdmi
140 | InclusiveCriterion SelectedInputDevices : Back Headset Main
141 | InclusiveCriterion SelectedOutputDevices : Headphones Headset Ihf
142 | InclusiveCriterion AudioSource : Default Mic None
143 | ExclusiveCriterion ScreenState : Off On
144 | ```
145 |
146 | # TODO:
147 | - Create different configuration for the Processing loop.
148 | - Add all the pipeline supportted by the driver.
149 |
150 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop1Iir.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | off
16 |
17 |
18 | stereo
19 |
20 |
21 |
22 | 2
23 | 0
24 |
25 |
26 | -0.45387792587280273437500
27 | 0.95257067680358886718750
28 | 0.38129699230194091796875
29 | -0.76259398460388183593750
30 | 0.38129699230194091796875
31 | 256
32 |
33 |
34 | -0.48036515712738037109375
35 | 0.97902154922485351562500
36 | 0.30614829063415527343750
37 | -0.61229658126831054687500
38 | 0.30614829063415527343750
39 | 512
40 |
41 |
42 | 0.00000000000000000000000
43 | 0.00000000000000000000000
44 | 0.00000000000000000000000
45 | 0.00000000000000000000000
46 | 0.00000000000000000000000
47 | 0
48 |
49 |
50 | 0.00000000000000000000000
51 | 0.00000000000000000000000
52 | 0.00000000000000000000000
53 | 0.00000000000000000000000
54 | 0.00000000000000000000000
55 | 0
56 |
57 |
58 | 0.00000000000000000000000
59 | 0.00000000000000000000000
60 | 0.00000000000000000000000
61 | 0.00000000000000000000000
62 | 0.00000000000000000000000
63 | 0
64 |
65 |
66 | 0.00000000000000000000000
67 | 0.00000000000000000000000
68 | 0.00000000000000000000000
69 | 0.00000000000000000000000
70 | 0.00000000000000000000000
71 | 0
72 |
73 |
74 |
75 |
76 | 2
77 | 0
78 |
79 |
80 | -0.45387792587280273437500
81 | 0.95257067680358886718750
82 | 0.38129699230194091796875
83 | -0.76259398460388183593750
84 | 0.38129699230194091796875
85 | 256
86 |
87 |
88 | -0.48036515712738037109375
89 | 0.97902154922485351562500
90 | 0.30614829063415527343750
91 | -0.61229658126831054687500
92 | 0.30614829063415527343750
93 | 512
94 |
95 |
96 | 0.00000000000000000000000
97 | 0.00000000000000000000000
98 | 0.00000000000000000000000
99 | 0.00000000000000000000000
100 | 0.00000000000000000000000
101 | 0
102 |
103 |
104 | 0.00000000000000000000000
105 | 0.00000000000000000000000
106 | 0.00000000000000000000000
107 | 0.00000000000000000000000
108 | 0.00000000000000000000000
109 | 0
110 |
111 |
112 | 0.00000000000000000000000
113 | 0.00000000000000000000000
114 | 0.00000000000000000000000
115 | 0.00000000000000000000000
116 | 0.00000000000000000000000
117 | 0
118 |
119 |
120 | 0.00000000000000000000000
121 | 0.00000000000000000000000
122 | 0.00000000000000000000000
123 | 0.00000000000000000000000
124 | 0.00000000000000000000000
125 | 0
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop2Iir.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | off
16 |
17 |
18 | stereo
19 |
20 |
21 |
22 | 2
23 | 0
24 |
25 |
26 | -0.45387792587280273437500
27 | 0.95257067680358886718750
28 | 0.38129699230194091796875
29 | -0.76259398460388183593750
30 | 0.38129699230194091796875
31 | 256
32 |
33 |
34 | -0.48036515712738037109375
35 | 0.97902154922485351562500
36 | 0.30614829063415527343750
37 | -0.61229658126831054687500
38 | 0.30614829063415527343750
39 | 512
40 |
41 |
42 | 0.00000000000000000000000
43 | 0.00000000000000000000000
44 | 0.00000000000000000000000
45 | 0.00000000000000000000000
46 | 0.00000000000000000000000
47 | 0
48 |
49 |
50 | 0.00000000000000000000000
51 | 0.00000000000000000000000
52 | 0.00000000000000000000000
53 | 0.00000000000000000000000
54 | 0.00000000000000000000000
55 | 0
56 |
57 |
58 | 0.00000000000000000000000
59 | 0.00000000000000000000000
60 | 0.00000000000000000000000
61 | 0.00000000000000000000000
62 | 0.00000000000000000000000
63 | 0
64 |
65 |
66 | 0.00000000000000000000000
67 | 0.00000000000000000000000
68 | 0.00000000000000000000000
69 | 0.00000000000000000000000
70 | 0.00000000000000000000000
71 | 0
72 |
73 |
74 |
75 |
76 | 2
77 | 0
78 |
79 |
80 | -0.45387792587280273437500
81 | 0.95257067680358886718750
82 | 0.38129699230194091796875
83 | -0.76259398460388183593750
84 | 0.38129699230194091796875
85 | 256
86 |
87 |
88 | -0.48036515712738037109375
89 | 0.97902154922485351562500
90 | 0.30614829063415527343750
91 | -0.61229658126831054687500
92 | 0.30614829063415527343750
93 | 512
94 |
95 |
96 | 0.00000000000000000000000
97 | 0.00000000000000000000000
98 | 0.00000000000000000000000
99 | 0.00000000000000000000000
100 | 0.00000000000000000000000
101 | 0
102 |
103 |
104 | 0.00000000000000000000000
105 | 0.00000000000000000000000
106 | 0.00000000000000000000000
107 | 0.00000000000000000000000
108 | 0.00000000000000000000000
109 | 0
110 |
111 |
112 | 0.00000000000000000000000
113 | 0.00000000000000000000000
114 | 0.00000000000000000000000
115 | 0.00000000000000000000000
116 | 0.00000000000000000000000
117 | 0
118 |
119 |
120 | 0.00000000000000000000000
121 | 0.00000000000000000000000
122 | 0.00000000000000000000000
123 | 0.00000000000000000000000
124 | 0.00000000000000000000000
125 | 0
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/tuning_topology/layout_types.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/tuning_topology/layout_ui.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
--------------------------------------------------------------------------------
/asus-t100-tutorial/xmlGenetaror/SstMediaLoop1Mdrc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 3
24 |
25 | 0
26 | 0
27 | 2
28 | 3
29 |
30 |
31 | 0
32 | 3
33 | 965823744
34 | -2035198720
35 | 1031199488
36 | -2100434432
37 | -1005668864
38 | 0
39 | 19200
40 | 8960
41 | 5120
42 | 2304
43 | 640
44 | 256
45 | 0
46 | 25
47 | 25
48 | 256
49 | 256
50 |
51 |
52 | 0
53 | 3
54 | 993760512
55 | -2061046272
56 | 578473728
57 | 1306824704
58 | -478060544
59 | -472091904
60 | 19200
61 | 6656
62 | 3072
63 | 2816
64 | 640
65 | 256
66 | 13
67 | 25
68 | 25
69 | 256
70 | 256
71 |
72 |
73 | 0
74 | 0
75 | 922144256
76 | -1970697728
77 | 584732672
78 | 1308026368
79 | -428379648
80 | -402433280
81 | 19200
82 | 5120
83 | 2560
84 | 1536
85 | 640
86 | 256
87 | 51
88 | 20
89 | 20
90 | 256
91 | 256
92 |
93 |
94 | 0
95 | 0
96 | 752788224
97 | -1679823872
98 | 605968896
99 | 1314822144
100 | -287708160
101 | -205196032
102 | 19200
103 | 6400
104 | 3072
105 | 2560
106 | 640
107 | 256
108 | 13
109 | 50
110 | 50
111 | 3
112 | 3
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | 0
123 |
124 | 0
125 | 0
126 | 2
127 | 3
128 |
129 |
130 | 0
131 | 3
132 | 965823744
133 | -2035198720
134 | 1031199488
135 | -2100434432
136 | -1005668864
137 | 0
138 | 19200
139 | 8960
140 | 5120
141 | 2304
142 | 640
143 | 256
144 | 0
145 | 25
146 | 25
147 | 256
148 | 256
149 |
150 |
151 | 0
152 | 3
153 | 993760512
154 | -2061046272
155 | 578473728
156 | 1306824704
157 | -478060544
158 | -472091904
159 | 19200
160 | 6656
161 | 3072
162 | 2816
163 | 640
164 | 256
165 | 13
166 | 25
167 | 25
168 | 256
169 | 256
170 |
171 |
172 | 0
173 | 0
174 | 922144256
175 | -1970697728
176 | 584732672
177 | 1308026368
178 | -428379648
179 | -402433280
180 | 19200
181 | 5120
182 | 2560
183 | 1536
184 | 640
185 | 256
186 | 51
187 | 20
188 | 20
189 | 256
190 | 256
191 |
192 |
193 | 0
194 | 0
195 | 752788224
196 | -1679823872
197 | 605968896
198 | 1314822144
199 | -287708160
200 | -205196032
201 | 19200
202 | 6400
203 | 3072
204 | 2560
205 | 640
206 | 256
207 | 13
208 | 50
209 | 50
210 | 3
211 | 3
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
--------------------------------------------------------------------------------