From 86467853b0e6887685b7c5020ef9c49bda789659 Mon Sep 17 00:00:00 2001 From: Philip Junker Date: Tue, 16 Feb 2021 18:47:21 +0100 Subject: [PATCH] Map reference remote control to a single key-layout file For early prototypes of the reference remote control, the VID/PID is reported as 248a/8266 instead of 0957/0001 due to corrupt memory. Instead of having redundant *.kl files we map both to the same file. Removed keyboard.characterMap from *.idc files because no *.kcm files are provided. Test: Verified in code that idc kl-mapping is used Bug: 173100313 Change-Id: Ie22711b8dae1f0d7489ac5591c503126318f6309 --- data/keyboards/Vendor_0957_Product_0001.idc | 1 - data/keyboards/Vendor_248a_Product_8266.idc | 24 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 data/keyboards/Vendor_248a_Product_8266.idc diff --git a/data/keyboards/Vendor_0957_Product_0001.idc b/data/keyboards/Vendor_0957_Product_0001.idc index e1f4346369f3f..39479ce725e1b 100644 --- a/data/keyboards/Vendor_0957_Product_0001.idc +++ b/data/keyboards/Vendor_0957_Product_0001.idc @@ -19,5 +19,4 @@ # Basic Parameters keyboard.layout = Vendor_0957_Product_0001 -keyboard.characterMap = Vendor_0957_Product_0001 audio.mic = 1 \ No newline at end of file diff --git a/data/keyboards/Vendor_248a_Product_8266.idc b/data/keyboards/Vendor_248a_Product_8266.idc new file mode 100644 index 0000000000000..3021655c286e2 --- /dev/null +++ b/data/keyboards/Vendor_248a_Product_8266.idc @@ -0,0 +1,24 @@ +# Copyright (C) 2021 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# Input Device Configuration file for Google Reference RCU Remote. +# +# + +# Basic Parameters +# Due to a memory error on early prototypes of the reference remote control +# the VID/PID is mapped to 248a/8266 instead of 0957/0001 +keyboard.layout = Vendor_0957_Product_0001 +audio.mic = 1 \ No newline at end of file