/* * libdvbnet - a DVB network support library * * Copyright (C) 2005 Andrew de Quincey (adq_dvb@lidskialf.net) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include #include #include #include #include #include #include #include #include #include "dvbvideo.h" int dvbvideo_open(int adapter, int videodeviceid) { char filename[PATH_MAX+1]; int fd; sprintf(filename, "/dev/dvb/adapter%i/video%i", adapter, videodeviceid); if ((fd = open(filename, O_RDWR)) < 0) { // if that failed, try a flat /dev structure sprintf(filename, "/dev/dvb%i.video%i", adapter, videodeviceid); fd = open(filename, O_RDWR); } return fd; } 3a3e5b3a6f80c4650c8f5&follow=1'>commitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-04-18X11 driver: correctly handle key releasesmzuther2-17/+28
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1117 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-03-12changed hardcoded pixel resolution to configuration; usb_*_np functions only ↵volker1-21/+30
if available; try to get USB vendor name git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1116 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-23'Fix the huawei e220 at commands' by Jarmichael1-12/+9
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1115 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-15drv_picoLCDGraphic.c: minimum USB read timeout is now 1 msmzuther1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1114 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-14drv_picoLCDGraphic.c: added configuration for USB read timeoutmzuther1-1/+9
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1113 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-14indent.sh runmichael1-172/+171
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1112 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-14plugin_huawei-fix-interval-check_V2.patch from Jarmichael1-35/+35
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1111 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-12Improved config behavior.mjona1-9/+32
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1110 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-12Fixed a segmentation fault bug in cfg_get().mjona1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1109 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-11All static memory allocations were turned into dynamical ones.mjona1-128/+200
Improved configuration parameters: - FifoPath to specify the fifo path (if absent, a built in replacement is used) - FifoBufSize to specify the size of the internal buffer (this parameter is optional as the plugin will try to match the number of display columns; if it fails and no FifoBufSize parameter is supplied then a built in replacement is used) Simplified and rationalized init and exit functions: most global variables have been localized. Fixed several off-by-one overflows memory bugs. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1108 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)mzuther1-7/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1107 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07added grouping of widgets by update interval (new file "timer_group.c")mzuther13-168/+441
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1106 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04According to its man page, timercmp() is broken on some systems -- applied ↵mzuther1-1/+1
the recommended (and equivalent) change. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04small warning removedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1099 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04clear errno after creating the FIFO by Claas Hilbrechtmichael1-0/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f