~smoser/ubuntu/natty/lirc/lp-698208

« back to all changes in this revision

Viewing changes to drivers/lirc_igorplugusb/lirc_igorplugusb.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-05-10 16:07:40 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080510160740-5wyxu9n2iqh33kpt
Tags: 0.8.3-0ubuntu1
* New upstream version.
* Drop 05_fix_cmdir as it's now included in CVS.
* Update 12_pvr150_transmit_support for configure
  script changes.
* Update 13-warning-cleanup to change from whitespace
  changes from CVS.
* Update 16_lirc-gpio for changes from CVS.
* Update 23_pad2keys for changes from CVS.
* Update 24_freecom_dvbt for changes from CVS.
* Drop 25_upstream_2_6_24 as it's now included from CVS.
* Drop 29_macmini_repeat as it's now included from CVS.
* Update 30_medion_md1_remote for changes from CVS.
* Update 33_asus_mycinema_remote for changes from CVS.
* Update 23_pad2keys patch to properly work (LP: #153184)
* Update 21_atiusb.dpatch because it's half upstream now (LP: #213549)
* Add 23_remove_md8800 as the MD8800 remote is causing problems. (LP: #213549)
* debian/modules-source/lirc-modules-source.conf:
  - Default the mode to be w/ soft carrier. (LP: #182530)
* Update 31_hauppauge_hvr_1100 to use the right devinput driver instead. (LP: #206495)
* Add 34_nebula_digitv.dpatch for supporting the Nebula Digitv remote (LP: #164867)
* Add 35_general_devinput.dpatch for generic devinput devices. (LP: #235811)
* Add 36_remove_extra_tekram.dpatch for removing extra option in lirc.hwdb.
  This option was causing lots of failures (LP: #211566)
* debian/{modules-source/Makefile,rules}:
  - Allow the kernel version to be passed as an argument.
    prevents broken upgrades when the kernel ABI revs (LP: #218955)
* debian/lirc-modules-source.prerm:
  - Check for both remove and upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
#define ADDITIONAL_LIRC_BYTES   2
114
114
 
115
115
/* times to poll per second */
116
 
#define SAMPLE_RATE          10
 
116
#define SAMPLE_RATE          100
117
117
 
 
118
static int sample_rate = SAMPLE_RATE;
118
119
 
119
120
/**** Igor's USB Request Codes */
120
121
 
375
376
                        /* 1 Igor-tick = 85.333333 us */
376
377
                        code = (unsigned int)ir->buf_in[i] * 85
377
378
                                + (unsigned int)ir->buf_in[i] / 3;
 
379
                        ir->last_time.tv_usec += code;
378
380
                        if (ir->in_space)
379
381
                                code |= PULSE_BIT;
380
382
                        lirc_buffer_write_n(buf, (unsigned char *)&code, 1);
515
517
        plugin->minor = -1;
516
518
        plugin->code_length = bytes_in_key*8; /* in bits */
517
519
        plugin->features = LIRC_CAN_REC_MODE2;
518
 
        plugin->data = ir; 
 
520
        plugin->data = ir;
519
521
        plugin->rbuf = rbuf;
520
522
        plugin->set_use_inc = &set_use_inc;
521
523
        plugin->set_use_dec = &set_use_dec;
522
 
        plugin->sample_rate = SAMPLE_RATE;    /* per second */
 
524
        plugin->sample_rate = sample_rate;    /* per second */
523
525
        plugin->add_to_buf = &usb_remote_poll;
524
526
#ifdef LIRC_HAVE_SYSFS
525
527
        plugin->dev = &dev->dev;
526
 
#endif  
 
528
#endif
527
529
        plugin->owner = THIS_MODULE;
528
530
 
529
531
        init_MUTEX(&ir->lock);
681
683
MODULE_LICENSE("GPL");
682
684
MODULE_DEVICE_TABLE(usb, usb_remote_id_table);
683
685
 
 
686
module_param(sample_rate, int, 0644);
 
687
MODULE_PARM_DESC(sample_rate, "Sampling rate in Hz (default: 100)");
 
688
 
684
689
EXPORT_NO_SYMBOLS;
685
690
 
686
691
/*