| # |
| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| base-config: &base_config |
| name: "{{$device-name}}" |
| identity: &identity_common |
| platform-name: "Hatch" |
| smbios-name-match: "{{$fw-name}}" |
| sku-id: "{{$sku-id}}" |
| firmware: |
| no-firmware: True |
| test-label: "{{$device-name}}" |
| power: &power_common |
| charging-ports: | |
| CROS_USBPD_CHARGER0 LEFT |
| CROS_USBPD_CHARGER1 RIGHT |
| low-battery-shutdown-percent: "4.0" |
| suspend-to-idle: "1" |
| touchpad-wakeup: "1" |
| $has-keyboard-backlight: "1" |
| has-keyboard-backlight: "{{$has-keyboard-backlight}}" |
| $has-ambient-light-sensor: "1" |
| has-ambient-light-sensor: "{{$has-ambient-light-sensor}}" |
| $internal-backlight-als-steps: |- |
| 80.0 55.0 -1 400 |
| 100.0 80.0 100 -1 |
| internal-backlight-als-steps: "{{$internal-backlight-als-steps}}" |
| $internal-backlight-no-als-battery-brightness: "63.0" |
| internal-backlight-no-als-battery-brightness: "{{$internal-backlight-no-als-battery-brightness}}" |
| disable-dark-resume: "0" |
| $keyboard-backlight-user-steps: |- |
| 0.0 |
| 10.0 |
| 20.0 |
| 40.0 |
| 60.0 |
| 100.0 |
| keyboard-backlight-user-steps: "{{$keyboard-backlight-user-steps}}" |
| $keyboard-backlight-als-steps: |- |
| 40.0 -1 20 |
| 0.0 15 -1 |
| keyboard-backlight-als-steps: "{{$keyboard-backlight-als-steps}}" |
| $als-smoothing-constant: "1" |
| als-smoothing-constant: "{{$als-smoothing-constant}}" |
| audio: |
| main: |
| $cras_root: "/etc/cras" |
| $ucm_root: "/usr/share/alsa/ucm" |
| # Variables to be overridden by chromeos/devices/... For example, |
| # to add a volume curve specific for mushu: |
| # 1. Add chromeos-base/chromeos-bsp-hatch/files/mushu/cras-config/card_settings |
| # 2. Add chromeos: |
| # devices: |
| # - $device-name: "mushu" |
| # $cras_card_config: "{{$device-name}}" |
| $alsa_card: "sof-sof_rt5682" |
| $cras_card_config: "common" |
| $cras_dsp_config: "common" |
| $sub_cras_config: "" |
| $cras-source-config-dir: "cras-config{{$sub_cras_config}}" |
| # Variables passed to adhd/init/cras.sh for starting CRAS |
| cras-config-dir: "{{$device-name}}{{$sub_cras_config}}" |
| files: |
| # ALSA module config |
| - source: "common/audio/alsa-module-config/alsa-mushu.conf" |
| destination: "/etc/modprobe.d/alsa-mushu.conf" |
| # ALSA UCM config |
| - source: "common/audio/ucm-config/{{$alsa_card}}/{{$alsa_card}}.conf" |
| destination: "{{$ucm_root}}/{{$alsa_card}}/{{$alsa_card}}.conf" |
| - source: "common/audio/ucm-config/{{$alsa_card}}/HiFi.conf" |
| destination: "{{$ucm_root}}/{{$alsa_card}}/HiFi.conf" |
| # CRAS card config (Volume Curve) |
| - source: "{{$cras_card_config}}/audio/{{$cras-source-config-dir}}/card_settings" |
| destination: "{{$cras_root}}/{{cras-config-dir}}/{{$alsa_card}}" |
| # EQ/DRC DSP config |
| - source: "{{$cras_dsp_config}}/audio/{{$cras-source-config-dir}}/dsp.ini" |
| destination: "{{$cras_root}}/{{cras-config-dir}}/dsp.ini" |
| |
| chromeos: |
| devices: |
| - $device-name: "unprovisioned_mushu" |
| skus: |
| - $sku-id: 255 |
| $fw-name: "Mushu" |
| config: *base_config |
| - $device-name: "mushu" |
| $fw-name: "Mushu" |
| skus: |
| - $sku-id: 1 |
| config: *base_config |