blob: 74adf4208fd38e11987491c90678f8b46c612e62 [file] [log] [blame]
Paul Keith0ab516d2020-01-27 20:19:37 -06001/*
2 * Copyright (C) 2016 The CyanogenMod Project
Paul Keithb43a8d52020-01-27 20:19:45 -06003 * Copyright (C) 2020 The LineageOS Project
Paul Keith0ab516d2020-01-27 20:19:37 -06004 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef SAMSUNG_CONSUMERIR_H
19#define SAMSUNG_CONSUMERIR_H
20
Paul Keithb43a8d52020-01-27 20:19:45 -060021#include <android/hardware/ir/1.0/IConsumerIr.h>
22
23using android::hardware::ir::V1_0::ConsumerIrFreqRange;
24
Paul Keith0ab516d2020-01-27 20:19:37 -060025/*
26 * Board specific nodes
27 *
28 * If your kernel exposes these controls in another place, you can either
29 * symlink to the locations given here, or override this header in your
30 * device tree.
31 */
32#define IR_PATH "/sys/class/sec/sec_ir/ir_send"
33
34/*
35 * Board specific configs
36 *
37 * If your device needs a different configuration, you
38 * can override this header in your device tree
39 */
40// Some devices need MS_IR_SIGNAL to avoid ms to pulses conversionn
41//#define MS_IR_SIGNAL
42
Paul Keithb43a8d52020-01-27 20:19:45 -060043static const std::vector<ConsumerIrFreqRange> consumerirFreqs = {
Paul Keith0ab516d2020-01-27 20:19:37 -060044 {.min = 30000, .max = 30000},
45 {.min = 33000, .max = 33000},
46 {.min = 36000, .max = 36000},
47 {.min = 38000, .max = 38000},
48 {.min = 40000, .max = 40000},
49 {.min = 56000, .max = 56000},
50};
51
52#endif // SAMSUNG_CONSUMERIR_H