From: hiranotaka@zng.jp
To: mchehab@infradead.org, linux-media@vger.kernel.org
Cc: tomy@users.sourceforge.jp
Subject: [PATCH 1/2] Add the DTV_ISDB_TS_ID property for ISDB_S
Date: Sun, 23 Aug 2009 12:49:49 +0900 [thread overview]
Message-ID: <87my5r6vfm.fsf@wei.zng.jp> (raw)
Add the DTV_ISDB_TS_ID property for ISDB-S
In ISDB-S, time-devision duplex is used to multiplexing several waves
in the same frequency. Each wave is identified by its own transport
stream ID, or TS ID. We need to provide some way to specify this ID
from user applications to handle ISDB-S frontends.
This code has been tested with the Earthsoft PT1 driver.
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
diff -r 948b12c08e2b -r bc34617eca49 linux/drivers/media/dvb/dvb-core/dvb_frontend.c
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c Sat Aug 22 23:17:30 2009 -0300
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c Sun Aug 23 11:50:35 2009 +0900
@@ -948,6 +948,11 @@
.cmd = DTV_TRANSMISSION_MODE,
.set = 1,
},
+ [DTV_ISDB_TS_ID] = {
+ .name = "DTV_ISDB_TS_ID",
+ .cmd = DTV_ISDB_TS_ID,
+ .set = 1,
+ },
/* Get */
[DTV_DISEQC_SLAVE_REPLY] = {
.name = "DTV_DISEQC_SLAVE_REPLY",
@@ -1356,6 +1361,9 @@
case DTV_HIERARCHY:
tvp->u.data = fe->dtv_property_cache.hierarchy;
break;
+ case DTV_ISDB_TS_ID:
+ tvp->u.data = fe->dtv_property_cache.isdb_ts_id;
+ break;
default:
r = -1;
}
@@ -1462,6 +1470,9 @@
case DTV_HIERARCHY:
fe->dtv_property_cache.hierarchy = tvp->u.data;
break;
+ case DTV_ISDB_TS_ID:
+ fe->dtv_property_cache.isdb_ts_id = tvp->u.data;
+ break;
default:
r = -1;
}
diff -r 948b12c08e2b -r bc34617eca49 linux/drivers/media/dvb/dvb-core/dvb_frontend.h
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.h Sat Aug 22 23:17:30 2009 -0300
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.h Sun Aug 23 11:50:35 2009 +0900
@@ -355,6 +355,7 @@
fe_modulation_t isdb_layerc_modulation;
u32 isdb_layerc_segment_width;
#endif
+ u32 isdb_ts_id;
};
struct dvb_frontend {
diff -r 948b12c08e2b -r bc34617eca49 linux/include/linux/dvb/frontend.h
--- a/linux/include/linux/dvb/frontend.h Sat Aug 22 23:17:30 2009 -0300
+++ b/linux/include/linux/dvb/frontend.h Sun Aug 23 11:50:35 2009 +0900
@@ -307,7 +307,9 @@
#define DTV_TRANSMISSION_MODE 39
#define DTV_HIERARCHY 40
-#define DTV_MAX_COMMAND DTV_HIERARCHY
+#define DTV_ISDB_TS_ID 41
+
+#define DTV_MAX_COMMAND DTV_ISDB_TS_ID
typedef enum fe_pilot {
PILOT_ON,
next reply other threads:[~2009-08-23 3:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 3:49 hiranotaka [this message]
2009-09-18 20:17 ` [PATCH 1/2] Add the DTV_ISDB_TS_ID property for ISDB_S Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87my5r6vfm.fsf@wei.zng.jp \
--to=hiranotaka@zng.jp \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=tomy@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox