/* test_stc.c - Test for DMX_GET_STC. * usage: DEMUX=/dev/dvb/adapterX/demuxX test_stc * * Copyright (C) 2003 convergence GmbH * Johannes Stezenbach * * This program 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 program 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 General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include void usage(void) { fprintf(stderr, "usage: test_stc\n"); fprintf(stderr, " The default demux device used can be changed\n"); fprintf(stderr, " using the DEMUX environment variable;\n"); fprintf(stderr, "\n"); exit(1); } int main(int argc, char *argv[]) { int dmxfd; char * dmxdev = "/dev/dvb/adapter0/demux0"; struct dmx_stc stc; if (argc != 1 || argv[1]) usage(); if (getenv("DEMUX")) dmxdev = getenv("DEMUX"); fprintf(stderr, "test_stc: using '%s'\n", dmxdev); if ((dmxfd = open(dmxdev, O_RDWR)) < 0) { perror("open"); return 1; } stc.num = 0; if (ioctl(dmxfd, DMX_GET_STC, &stc) == -1) { perror("DMX_GET_STC"); return 1; } printf("STC = %llu (%llu / %u)\n", stc.stc / stc.base, stc.stc, stc.base); close(dmxfd); return 0; } e5'/>
AgeCommit message (Expand)AuthorFilesLines
2024-01-31isdb-t: Update Brazil channel listsMauro Carvalho Chehab1935-11312/+70605
2024-01-30dvb-s: drop transponders that aren't there at Lyngsat anymoreMauro Carvalho Chehab50-20357/+0
2024-01-30dvb-s: update from today's Lyngsat reportMauro Carvalho Chehab196-15543/+15859
2024-01-30dtv-scan-tables: full uk transmitter updateSimon Liddicott81-500/+163
2022-11-25dtv-scan-tables: hu-Digikabel changesHrotkó Gábor1-1/+26
2022-04-30pt-All: fix modulationMauro Carvalho Chehab1-10/+10
2022-04-30pt-All: Update Portugal channelsMauro Carvalho Chehab1-34/+70
2022-03-07Update Brazilian ISDB-T tablesMauro Carvalho Chehab549-2923/+13860
2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326
2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24
2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312
2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0
2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721
2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182
2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666