Chell: Update EQ/DRC/Volume tuning files
BUG=chrome-os-partner:50848
TEST=verified dsp.ini and sklnau8825adi are in /etc/cras
CQ-DEPEND=CL:332293
Change-Id: Ia92e06df3fccb00a76e65f0c25de0c4a84d929c1
Signed-off-by: Ryan Lin <ryan.lin@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/331943
Commit-Ready: Ben Zhang <benzh@google.com>
Tested-by: Ben Zhang <benzh@google.com>
Reviewed-by: Ben Zhang <benzh@google.com>
Reviewed-by: Yomyung Leem <yungleem@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit f1db0f4b8307a9ca00aebbdd93ba4cc8bce09fc9)
Signed-off-by: Ben Zhang <benzh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/332204
diff --git a/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1-r8.ebuild b/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1-r9.ebuild
similarity index 100%
rename from overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1-r8.ebuild
rename to overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1-r9.ebuild
diff --git a/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1.ebuild b/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1.ebuild
index a25700c..95755cc 100644
--- a/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1.ebuild
+++ b/overlay-chell/chromeos-base/chromeos-bsp-chell/chromeos-bsp-chell-0.0.1.ebuild
@@ -3,7 +3,7 @@
EAPI=4
-inherit appid
+inherit appid cros-audio-configs
DESCRIPTION="Ebuild which pulls in any necessary ebuilds as dependencies
or portage actions."
@@ -34,4 +34,8 @@
# Battery cut-off
dosbin "${FILESDIR}/board_factory_reset.sh"
+
+ # Install audio configs.
+ local audio_config_dir="${FILESDIR}/audio-config"
+ install_audio_configs chell "${audio_config_dir}"
}
diff --git a/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/dsp.ini b/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/dsp.ini
new file mode 100644
index 0000000..c477df2
--- /dev/null
+++ b/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/dsp.ini
@@ -0,0 +1,87 @@
+[output_source]
+library=builtin
+label=source
+purpose=playback
+disable=(not (equal? dsp_name "speaker_eq"))
+output_0={src:0}
+output_1={src:1}
+
+[output_sink]
+library=builtin
+label=sink
+purpose=playback
+input_0={dst:0}
+input_1={dst:1}
+
+[drc]
+library=builtin
+label=drc
+input_0={src:0}
+input_1={src:1}
+output_2={intermediate:0}
+output_3={intermediate:1}
+input_4=1 ; emphasis_disabled
+input_5=0 ; f
+input_6=0 ; enable
+input_7=-28 ; threshold
+input_8=30 ; knee
+input_9=12 ; ratio
+input_10=0.003 ; attack
+input_11=0.25 ; release
+input_12=0 ; boost
+input_13=200 ; f
+input_14=1 ; enable
+input_15=-28 ; threshold
+input_16=30 ; knee
+input_17=12 ; ratio
+input_18=0.003 ; attack
+input_19=0.25 ; release
+input_20=3 ; boost
+input_21=2000 ; f
+input_22=0 ; enable
+input_23=-24 ; threshold
+input_24=30 ; knee
+input_25=12 ; ratio
+input_26=0.003 ; attack
+input_27=0.25 ; release
+input_28=0 ; boost
+
+[eq2]
+library=builtin
+label=eq2
+input_0={intermediate:0}
+input_1={intermediate:1}
+output_2={dst:0}
+output_3={dst:1}
+input_4=2 ; highpass
+input_5=250 ; freq
+input_6=0 ; Q
+input_7=0 ; gain
+input_8=2 ; highpass
+input_9=250 ; freq
+input_10=0 ; Q
+input_11=0 ; gain
+input_12=6 ; peaking
+input_13=1000 ; freq
+input_14=4 ; Q
+input_15=-6 ; gain
+input_16=6 ; peaking
+input_17=850 ; freq
+input_18=4 ; Q
+input_19=-6 ; gain
+input_20=6 ; peaking
+input_21=7000 ; freq
+input_22=1 ; Q
+input_23=3 ; gain
+input_24=6 ; peaking
+input_25=7000 ; freq
+input_26=1 ; Q
+input_27=3 ; gain
+input_28=6 ; peaking
+input_29=15000 ; freq
+input_30=2 ; Q
+input_31=-5 ; gain
+input_32=6 ; peaking
+input_33=15000 ; freq
+input_34=2 ; Q
+input_35=-5 ; gain
diff --git a/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/sklnau8825adi b/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/sklnau8825adi
new file mode 100644
index 0000000..add822c
--- /dev/null
+++ b/overlay-chell/chromeos-base/chromeos-bsp-chell/files/audio-config/cras-config/sklnau8825adi
@@ -0,0 +1,107 @@
+[Speaker]
+ volume_curve = explicit
+ db_at_100 = -2000
+ db_at_99 = -2000
+ db_at_98 = -2000
+ db_at_97 = -2100
+ db_at_96 = -2100
+ db_at_95 = -2100
+ db_at_94 = -2100
+ db_at_93 = -2200
+ db_at_92 = -2200
+ db_at_91 = -2200
+ db_at_90 = -2200
+ db_at_89 = -2300
+ db_at_88 = -2300
+ db_at_87 = -2300
+ db_at_86 = -2300
+ db_at_85 = -2400
+ db_at_84 = -2400
+ db_at_83 = -2400
+ db_at_82 = -2400
+ db_at_81 = -2500
+ db_at_80 = -2500
+ db_at_79 = -2500
+ db_at_78 = -2600
+ db_at_77 = -2600
+ db_at_76 = -2700
+ db_at_75 = -2700
+ db_at_74 = -2800
+ db_at_73 = -2800
+ db_at_72 = -2900
+ db_at_71 = -2900
+ db_at_70 = -3000
+ db_at_69 = -3000
+ db_at_68 = -3100
+ db_at_67 = -3100
+ db_at_66 = -3200
+ db_at_65 = -3200
+ db_at_64 = -3300
+ db_at_63 = -3300
+ db_at_62 = -3400
+ db_at_61 = -3400
+ db_at_60 = -3500
+ db_at_59 = -3600
+ db_at_58 = -3600
+ db_at_57 = -3700
+ db_at_56 = -3800
+ db_at_55 = -3900
+ db_at_54 = -3900
+ db_at_53 = -4000
+ db_at_52 = -4100
+ db_at_51 = -4200
+ db_at_50 = -4200
+ db_at_49 = -4300
+ db_at_48 = -4400
+ db_at_47 = -4500
+ db_at_46 = -4500
+ db_at_45 = -4600
+ db_at_44 = -4700
+ db_at_43 = -4800
+ db_at_42 = -4800
+ db_at_41 = -4900
+ db_at_40 = -5000
+ db_at_39 = -5100
+ db_at_38 = -5200
+ db_at_37 = -5300
+ db_at_36 = -5400
+ db_at_35 = -5500
+ db_at_34 = -5600
+ db_at_33 = -5700
+ db_at_32 = -5800
+ db_at_31 = -5900
+ db_at_30 = -6000
+ db_at_29 = -6100
+ db_at_28 = -6200
+ db_at_27 = -6300
+ db_at_26 = -6400
+ db_at_25 = -6500
+ db_at_24 = -6600
+ db_at_23 = -6700
+ db_at_22 = -6800
+ db_at_21 = -6900
+ db_at_20 = -7000
+ db_at_19 = -7100
+ db_at_18 = -7200
+ db_at_17 = -7400
+ db_at_16 = -7500
+ db_at_15 = -7600
+ db_at_14 = -7700
+ db_at_13 = -7900
+ db_at_12 = -8000
+ db_at_11 = -8100
+ db_at_10 = -8200
+ db_at_9 = -8400
+ db_at_8 = -8500
+ db_at_7 = -8600
+ db_at_6 = -8700
+ db_at_5 = -8900
+ db_at_4 = -9000
+ db_at_3 = -9100
+ db_at_2 = -9200
+ db_at_1 = -9400
+ db_at_0 = -9500
+[Headphone]
+ volume_curve = simple_step
+ volume_step = 70
+ max_volume = -0750