18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _AV7110_AV_H_
38c2ecf20Sopenharmony_ci#define _AV7110_AV_H_
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_cistruct av7110;
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciextern int av7110_set_vidmode(struct av7110 *av7110,
88c2ecf20Sopenharmony_ci			      enum av7110_video_mode mode);
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciextern int av7110_record_cb(struct dvb_filter_pes2ts *p2t, u8 *buf, size_t len);
118c2ecf20Sopenharmony_ciextern int av7110_pes_play(void *dest, struct dvb_ringbuffer *buf, int dlen);
128c2ecf20Sopenharmony_ciextern int av7110_write_to_decoder(struct dvb_demux_feed *feed, const u8 *buf, size_t len);
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciextern int av7110_set_volume(struct av7110 *av7110, unsigned int volleft,
158c2ecf20Sopenharmony_ci			     unsigned int volright);
168c2ecf20Sopenharmony_ciextern int av7110_av_stop(struct av7110 *av7110, int av);
178c2ecf20Sopenharmony_ciextern int av7110_av_start_record(struct av7110 *av7110, int av,
188c2ecf20Sopenharmony_ci			  struct dvb_demux_feed *dvbdmxfeed);
198c2ecf20Sopenharmony_ciextern int av7110_av_start_play(struct av7110 *av7110, int av);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciextern void dvb_video_add_event(struct av7110 *av7110, struct video_event *event);
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern void av7110_p2t_init(struct av7110_p2t *p, struct dvb_demux_feed *feed);
248c2ecf20Sopenharmony_ciextern void av7110_p2t_write(u8 const *buf, long int length, u16 pid, struct av7110_p2t *p);
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciextern int av7110_av_register(struct av7110 *av7110);
278c2ecf20Sopenharmony_ciextern void av7110_av_unregister(struct av7110 *av7110);
288c2ecf20Sopenharmony_ciextern int av7110_av_init(struct av7110 *av7110);
298c2ecf20Sopenharmony_ciextern void av7110_av_exit(struct av7110 *av7110);
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* _AV7110_AV_H_ */
33