Paul Keith | 0ab516d | 2020-01-27 20:19:37 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The CyanogenMod Project |
Paul Keith | b43a8d5 | 2020-01-27 20:19:45 -0600 | [diff] [blame] | 3 | * Copyright (C) 2020 The LineageOS Project |
Paul Keith | 0ab516d | 2020-01-27 20:19:37 -0600 | [diff] [blame] | 4 | * |
| 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 Keith | b43a8d5 | 2020-01-27 20:19:45 -0600 | [diff] [blame] | 21 | #include <android/hardware/ir/1.0/IConsumerIr.h> |
| 22 | |
| 23 | using android::hardware::ir::V1_0::ConsumerIrFreqRange; |
| 24 | |
Paul Keith | 0ab516d | 2020-01-27 20:19:37 -0600 | [diff] [blame] | 25 | /* |
| 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 Keith | b43a8d5 | 2020-01-27 20:19:45 -0600 | [diff] [blame] | 43 | static const std::vector<ConsumerIrFreqRange> consumerirFreqs = { |
Paul Keith | 0ab516d | 2020-01-27 20:19:37 -0600 | [diff] [blame] | 44 | {.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 |