// SPDX-License-Identifier: GPL-2.0 // cx231xx IR glue driver // // Copyright (c) 2010 Mauro Carvalho Chehab <mchehab@kernel.org> // // Polaris (cx231xx) has its support for IR's with a design close to MCE. // however, a few designs are using an external I2C chip for IR, instead // of using the one provided by the chip. // This driver provides support for those extra devices
/* poll IR chip */
rc = i2c_master_recv(ir->c, &cmd, 1); if (rc < 0) return rc; if (rc != 1) return -EIO;
/* it seems that 0xFE indicates that a button is still hold down, while 0xff indicates that no button is hold
down. 0xfe sequences are sometimes interrupted by 0xFF */
/* * Board-dependent values * * For now, there's just one type of hardware design using * an i2c device.
*/
dev->init_data.get_key = get_key_isdbt;
dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; /* The i2c micro-controller only outputs the cmd part of NEC protocol */
dev->init_data.rc_dev->scancode_mask = 0xff;
dev->init_data.rc_dev->driver_name = "cx231xx";
dev->init_data.type = RC_PROTO_BIT_NEC;
info.addr = 0x30;
/* Load and bind ir-kbd-i2c */
ir_i2c_bus = cx231xx_boards[dev->model].ir_i2c_master;
dev_dbg(dev->dev, "Trying to bind ir at bus %d, addr 0x%02x\n",
ir_i2c_bus, info.addr);
dev->ir_i2c_client = i2c_new_client_device(
cx231xx_get_i2c_adap(dev, ir_i2c_bus), &info);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.