23 #include <linux/kernel.h>
24 #include <linux/slab.h>
53 if (cx->
vbi.sliced_mpeg_data[0] ==
NULL) {
57 cx->
vbi.sliced_mpeg_data[
i] =
59 if (cx->
vbi.sliced_mpeg_data[i] ==
NULL) {
66 CX18_WARN(
"Unable to allocate buffers for "
67 "sliced VBI data insertion\n");
74 CX18_DEBUG_INFO(
"enabled insertion of sliced VBI data into the MPEG PS,"
75 "when sliced VBI is enabled\n");
83 cx->
vbi.sliced_in->service_set =
96 struct v4l2_mbus_framefmt fmt;
99 fmt.width = cxhdl->
width / (is_mpeg1 ? 2 : 1);
100 fmt.height = cxhdl->
height;
108 static const u32 freqs[3] = { 44100, 48000, 32000 };
127 .s_audio_mode = cx18_s_audio_mode,
128 .s_audio_sampling_freq = cx18_s_audio_sampling_freq,
129 .s_video_encoding = cx18_s_video_encoding,
130 .s_stream_vbi_fmt = cx18_s_stream_vbi_fmt,