dvbの方のpt1ドライバーは#include <linux...をすべて後ろにまとめないと
コンパイルが通らない。
{   1, "NHK-G   総合 GENERAL  ",    485142857 }の142857はどのチャンネルも共通である。
  
$ cat tune.c
    
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <linux/dvb/frontend.h>
#include <linux/dvb/dmx.h>
#include <linux/dvb/audio.h>
#include <linux/dvb/version.h>
    
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
    
struct channel {
        int id;
        const char *name;
        unsigned int frequency;
        unsigned int ts_id;
};
    
static struct channel isdbt_channels[] = {
        {   1, "NHK-G   総合 GENERAL  ",    485142857 },
        {   2, "NHK-E   教育 EDUCATION",    479142857 },
        {   8, "FTV     福島テレビ",        545142857 },
        {   4, "FCT     福島中央テレビ",    557142857 },
        {   5, "KFB     福島放送",          569142857 },
        {   6, "TUF     テレビユー福島",    551142857 },
};
    
static struct channel isdbs_channels[] = {
        {   1, "NHK BS-1",          1318000, 0x40f1 },
        {   2, "NHK BS-2",          1318000, 0x40f1 },
        {   3, "NHK BS-Hi",         1318000, 0x40f2 },
        {   4, "BS日テレ",          1279640, 0x40d0 },
        {   5, "BS朝日",            1049480, 0x4010 },
        {   6, "BS-i",              1049480, 0x4011 },
        {   7, "BSジャパン",        1087840, 0x4031 },
        {   8, "BSフジ",            1279640, 0x40d1 },
        {   9, "WOWOW",             1087840, 0x4030 },
        {  10, "STAR CHANNEL HV",   1202920, 0x4091 },
        {  11, "BS11",              1202920, 0x4090 },
        {  12, "TwellV",            1202920, 0x4092 },
};
  

 RSS2.0
 RSS2.0














 Y:
 Y:



Comments