scripts: Add webpage source code for audio tuning

Initial commit for source code at http://audio-tuning.appspot.com/

BUG=chrome-os-partner:25940
TEST=serve audio.html webpage and connect to it to generate a config
  file.

Change-Id: Id05f08c300aec70dc502281a0f26b3135d68f60b
Reviewed-on: https://chromium-review.googlesource.com/186865
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
scripts: Modify audio.js for emphasis_disabled in drc

There is a new parameter "emphasis_disabled" in drc. This patch modifies
audio.js file in audio_tuning webpage such that it will check if
emphasis/disemphasis is disabled in chrome, then determine
drc.emphasis_disabled config value.

BUG=chrome-os-partner:25940
TEST=run audio_tuning webpage with modified audio.js. Checks that the
output config contains "drc.emphasis_disabled": 0 for chrome without
https://codereview.chromium.org/152333003/, and contains
"drc.emphasis_disabled": 1 for chrome with
https://codereview.chromium.org/152333003/.

Change-Id: I6ef355a1d7cd6a4ac340f711d4270a6a88d42b27
Reviewed-on: https://chromium-review.googlesource.com/186857
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
scripts: Modify conf2ini2.py script for emphasis_disabled in drc

There is a new parameter emphasis_disabled in drc. This patch modifies
conf2ini2.py script so it honors the "drc.emphasis_disabled" in config
file generated by new http://audio-tuning.appspot.com/ and generate
dsp.ini file containing emphasis_disabled in input_4 of [drc].

BUG=chrome-os-partner:25940
TEST=run conf2ini2 file on config file with "drc.emphasis_disabled": 0,
check output contains "intput_4=0      ; emphasis_disabled" in [drc]
section.

Change-Id: I12347f9a7215c2fbcdb65588a32f327cd29737e5
Reviewed-on: https://chromium-review.googlesource.com/186858
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
script: Add init_editor to edit ini files.

This patch adds a script ini_editor.py to ease the editing of dsp.ini
files. Now user can use this tool to inspect and edit dsp.ini file
content. Specifically, this tool can add a port into a section at
certain port index.
E.g. The command
"ini_editor.py -b all -n 'input_4=0 ; emphasis_disabled' -s drc -o
None" can insert "input_4=0 ; emphasis_disabled" to every dsp.ini file
under cras-config directory that has drc section, also the ports after
index 4 are shifted by one index.

BUG=None
TEST=run ini_editor_unittest.py.
     run ini_editor command to show/edit config files.
     ini_editor.py -i <dsp.ini file>   (show content of one file)
     ini_editor.py -b daisy_spring     (show content of one file)
     ini_editor.py -b daisy_spring -s drc (show one section)
     ini_editor.py -b all -s drc -n 'input_4=0 ; emphasis_disabled'
       (modify dsp.ini files for all boards)

Change-Id: I475b4e41adbd86ae018c320db8fec61549239120
Reviewed-on: https://chromium-review.googlesource.com/186074
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>