// SPDX-License-Identifier: GPL-2.0+ // // Siano Mobile Silicon, Inc. // MDTV receiver kernel modules. // Copyright (C) 2006-2009, Uri Shkolnik // // Copyright (c) 2010 - Mauro Carvalho Chehab // - Ported the driver to use rc-core // - IR raw event decoding is now done at rc-core // - Code almost re-written
#include"smscoreapi.h"
#include <linux/types.h> #include <linux/input.h>
#include"smsir.h" #include"sms-cards.h"
#define MODULE_NAME "smsmdtv"
void sms_ir_event(struct smscore_device_t *coredev, constchar *buf, int len)
{ int i; const s32 *samples = (constvoid *)buf;
for (i = 0; i < len >> 2; i++) { struct ir_raw_event ev = {
.duration = abs(samples[i]),
.pulse = (samples[i] > 0) ? false : true
};
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.