diff options
author | Mauro Carvalho Chehab | 2020-09-20 09:40:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2020-10-01 09:21:17 +0200 |
commit | 2f217729612c30da28693f92e3a8dd239fc3d0ab (patch) | |
tree | 199bb1d342d84eec38b9452713dea52fb7ceb26b | |
parent | fc4405a5f1077ded3194a38b3af9b2c6b9c69437 (diff) |
media: vidtv: cleanup SDT string identifiers
In order to better test userspace applications, add an encoding
for the strings. The original channel string is also too big.
As we're just playing the first compasses of the 5th Beethoven
Symphony, change the service name to just "Beethoven". Also,
add a provider's name. For such purpose, let's point it to
the Linux media community website.
With such changes, the SDT table now looks more like one got
from a real digital TV channel:
SDT
| table_id 0x42
| section_length 44
| one 2
| zero 1
| syntax 1
| transport_stream_id 1860
| current_next 1
| version 0
| one2 3
| section_number 0
| last_section_number 0
| network_id 65281
| reserved 255
|\
|- service 0x0880
| EIT schedule 0
| EIT present following 0
| free CA mode 0
| running status 4
| descriptor length 27
| 0x48: service_descriptor
| service type 1
| provider 'LinuxTV.org'
| name 'Beethoven'
|_ 1 services
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/media/test-drivers/vidtv/vidtv_channel.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_channel.c b/drivers/media/test-drivers/vidtv/vidtv_channel.c index 0a62b97e6a27..f2b97cf08e87 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_channel.c +++ b/drivers/media/test-drivers/vidtv/vidtv_channel.c @@ -43,6 +43,8 @@ static void vidtv_channel_encoder_destroy(struct vidtv_encoder *e) } } +#define ENCODING_ISO8859_15 "\x0b" + struct vidtv_channel *vidtv_channel_s302m_init(struct vidtv_channel *head, u16 transport_stream_id) { @@ -55,7 +57,8 @@ struct vidtv_channel const u16 s302m_es_pid = 0x111; /* packet id for the ES */ const __be32 s302m_fid = cpu_to_be32(VIDTV_S302M_FORMAT_IDENTIFIER); - char *name = "S302m: Sine Wave PCM Audio"; + char *name = ENCODING_ISO8859_15 "Beethoven"; + char *provider = ENCODING_ISO8859_15 "LinuxTV.org"; struct vidtv_channel *s302m = kzalloc(sizeof(*s302m), GFP_KERNEL); struct vidtv_s302m_encoder_init_args encoder_args = {}; @@ -68,7 +71,7 @@ struct vidtv_channel vidtv_psi_service_desc_init(NULL, DIGITAL_TELEVISION_SERVICE, name, - NULL); + provider); s302m->transport_stream_id = transport_stream_id; |