Laser: add new SKU_ID to support the dmic setting
Laser share the phaser360's config,only has 1 dmic,the sku_id=5,
Laser14 has a new device-name,only has 1 dmic,and the sku_id=6.
Add the cras and dptf.dv.
BUG=b:121457617
TEST=re-build packages,check the building environment,the /chroot/build/octopus/etc/crac/laser14
and /chroot/build/octopus/etc/dptf/laser14 exist
Change-Id: Ia8526a01c59debc90b392499e1d8b878aab5bae5
Reviewed-on: https://chromium-review.googlesource.com/1400323
Commit-Ready: Xingyu Wu <wuxy@bitland.corp-partner.google.com>
Tested-by: Xingyu Wu <wuxy@bitland.corp-partner.google.com>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
(cherry picked from commit 22e83d84cc0e8e7f1266022de0dcb81b733a4796)
Reviewed-on: https://chromium-review.googlesource.com/c/1408476
Commit-Queue: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Trybot-Ready: Justin TerAvest <teravest@chromium.org>
diff --git a/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/card_settings b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/card_settings
new file mode 100644
index 0000000..397fc91
--- /dev/null
+++ b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/card_settings
@@ -0,0 +1,108 @@
+;Shared between phaser and phaser360 via soft link
+[Default]
+ volume_curve = explicit
+ db_at_100 = -300
+ db_at_99 = -300
+ db_at_98 = -300
+ db_at_97 = -450
+ db_at_96 = -450
+ db_at_95 = -450
+ db_at_94 = -450
+ db_at_93 = -450
+ db_at_92 = -600
+ db_at_91 = -600
+ db_at_90 = -600
+ db_at_89 = -600
+ db_at_88 = -600
+ db_at_87 = -750
+ db_at_86 = -750
+ db_at_85 = -750
+ db_at_84 = -750
+ db_at_83 = -750
+ db_at_82 = -900
+ db_at_81 = -900
+ db_at_80 = -900
+ db_at_79 = -900
+ db_at_78 = -900
+ db_at_77 = -1050
+ db_at_76 = -1050
+ db_at_75 = -1050
+ db_at_74 = -1050
+ db_at_73 = -1050
+ db_at_72 = -1200
+ db_at_71 = -1200
+ db_at_70 = -1200
+ db_at_69 = -1200
+ db_at_68 = -1200
+ db_at_67 = -1350
+ db_at_66 = -1350
+ db_at_65 = -1350
+ db_at_64 = -1350
+ db_at_63 = -1350
+ db_at_62 = -1500
+ db_at_61 = -1500
+ db_at_60 = -1500
+ db_at_59 = -1500
+ db_at_58 = -1500
+ db_at_57 = -1650
+ db_at_56 = -1650
+ db_at_55 = -1650
+ db_at_54 = -1650
+ db_at_53 = -1800
+ db_at_52 = -1800
+ db_at_51 = -1800
+ db_at_50 = -1800
+ db_at_49 = -1800
+ db_at_48 = -1950
+ db_at_47 = -1950
+ db_at_46 = -1950
+ db_at_45 = -1950
+ db_at_44 = -1950
+ db_at_43 = -2100
+ db_at_42 = -2100
+ db_at_41 = -2100
+ db_at_40 = -2250
+ db_at_39 = -2250
+ db_at_38 = -2400
+ db_at_37 = -2400
+ db_at_36 = -2400
+ db_at_35 = -2550
+ db_at_34 = -2550
+ db_at_33 = -2550
+ db_at_32 = -2700
+ db_at_31 = -2700
+ db_at_30 = -2850
+ db_at_29 = -2850
+ db_at_28 = -2850
+ db_at_27 = -3000
+ db_at_26 = -3000
+ db_at_25 = -3150
+ db_at_24 = -3150
+ db_at_23 = -3150
+ db_at_22 = -3300
+ db_at_21 = -3300
+ db_at_20 = -3300
+ db_at_19 = -3450
+ db_at_18 = -3450
+ db_at_17 = -3600
+ db_at_16 = -3600
+ db_at_15 = -3600
+ db_at_14 = -3750
+ db_at_13 = -3750
+ db_at_12 = -3750
+ db_at_11 = -3900
+ db_at_10 = -3900
+ db_at_9 = -4050
+ db_at_8 = -4050
+ db_at_7 = -4050
+ db_at_6 = -4200
+ db_at_5 = -4200
+ db_at_4 = -4200
+ db_at_3 = -4350
+ db_at_2 = -4350
+ db_at_1 = -4500
+ db_at_0 = -4500
+[Headphone]
+ volume_curve = simple_step
+ volume_step = 70
+ max_volume = -1200
diff --git a/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/dsp.ini b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/dsp.ini
new file mode 100644
index 0000000..e2f2194
--- /dev/null
+++ b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/audio/cras-config/dsp.ini
@@ -0,0 +1,119 @@
+[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=1 ; enable
+input_7=-24 ; 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=-24 ; threshold
+input_16=30 ; knee
+input_17=12 ; ratio
+input_18=0.003 ; attack
+input_19=0.25 ; release
+input_20=0 ; boost
+input_21=2000 ; f
+input_22=1 ; 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=400 ; freq
+input_6=0 ; Q
+input_7=0 ; gain
+input_8=2 ; highpass
+input_9=400 ; freq
+input_10=0 ; Q
+input_11=0 ; gain
+input_12=6 ; peaking
+input_13=900 ; freq
+input_14=1 ; Q
+input_15=-5 ; gain
+input_16=6 ; peaking
+input_17=900 ; freq
+input_18=1 ; Q
+input_19=-5 ; gain
+input_20=6 ; peaking
+input_21=2000 ; freq
+input_22=1 ; Q
+input_23=-1 ; gain
+input_24=6 ; peaking
+input_25=2000 ; freq
+input_26=1 ; Q
+input_27=-1 ; gain
+input_28=6 ; peaking
+input_29=2800 ; freq
+input_30=1 ; Q
+input_31=1 ; gain
+input_32=6 ; peaking
+input_33=2800 ; freq
+input_34=1 ; Q
+input_35=1 ; gain
+input_36=6 ; peaking
+input_37=4500 ; freq
+input_38=2 ; Q
+input_39=2 ; gain
+input_40=6 ; peaking
+input_41=4500 ; freq
+input_42=2 ; Q
+input_43=2 ; gain
+input_44=6 ; peaking
+input_45=5200 ; freq
+input_46=1 ; Q
+input_47=-3 ; gain
+input_48=6 ; peaking
+input_49=5200 ; freq
+input_50=1 ; Q
+input_51=-3 ; gain
+input_52=6 ; peaking
+input_53=8000 ; freq
+input_54=2 ; Q
+input_55=3 ; gain
+input_56=6 ; peaking
+input_57=8000 ; freq
+input_58=2 ; Q
+input_59=3 ; gain
+input_60=6 ; peaking
+input_61=9500 ; freq
+input_62=2 ; Q
+input_63=1 ; gain
+input_64=6 ; peaking
+input_65=9500 ; freq
+input_66=2 ; Q
+input_67=1 ; gain
diff --git a/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/thermal/dptf.dv b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/thermal/dptf.dv
new file mode 100644
index 0000000..079357f
--- /dev/null
+++ b/overlay-octopus/chromeos-base/chromeos-bsp-octopus/files/laser14/thermal/dptf.dv
Binary files differ
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r13.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r13.ebuild
deleted file mode 120000
index 060ccad..0000000
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r13.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-chromeos-config-bsp-octopus-0.0.1.ebuild
\ No newline at end of file
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r14.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r14.ebuild
deleted file mode 120000
index 060ccad..0000000
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r14.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-chromeos-config-bsp-octopus-0.0.1.ebuild
\ No newline at end of file
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r16.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r16.ebuild
deleted file mode 120000
index 060ccad..0000000
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r16.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-chromeos-config-bsp-octopus-0.0.1.ebuild
\ No newline at end of file
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r18.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r18.ebuild
deleted file mode 120000
index 060ccad..0000000
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r18.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-chromeos-config-bsp-octopus-0.0.1.ebuild
\ No newline at end of file
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r11.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r20.ebuild
similarity index 100%
rename from overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r11.ebuild
rename to overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r20.ebuild
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r9.ebuild b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r9.ebuild
deleted file mode 120000
index 060ccad..0000000
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/chromeos-config-bsp-octopus-0.0.1-r9.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-chromeos-config-bsp-octopus-0.0.1.ebuild
\ No newline at end of file
diff --git a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/files/model.yaml b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/files/model.yaml
index cfaf408..92a86fa 100644
--- a/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/files/model.yaml
+++ b/overlay-octopus/chromeos-base/chromeos-config-bsp-octopus/files/model.yaml
@@ -103,6 +103,15 @@
- $sku-id-val: 4
$num-mic-locations: 2
config: *device_config
+ - $sku-id-val: 5
+ $num-mic-locations: 1
+ config: *device_config
+ - $device-name: "laser14"
+ $fw-name: "Phaser"
+ skus:
+ - $sku-id-val: 6
+ $num-mic-locations: 1
+ config: *device_config
# This is a temporary model with SKU ID - 255 which is expected to be
# provisioned with correct SKU ID in the factory flow. And HWID verification
# will also catch the DUT still with 255 and report error.