ADV7842—adc芯片linux驱动

此项目是ADV7842—abc芯片linux驱动。 支持hdmi/vga自适应分辨率(在海思sdk中需要自己根据芯片返回的时序调整VI)

应用介绍

此项目是ADV7842—abc芯片linux驱动。

支持hdmi/vga自适应分辨率(在海思sdk中需要自己根据芯片返回的时序调整VI)

#ifndef ADV7842_H_
#define ADV7842_H_
typedef enum ADV7842_CTRL_CMD_E
{
 CMD_DEVICE_INIT,
 CMD_QUERY_TIMINGS,
} ADV7842_CTRL_CMD;
typedef enum ADV7842_CMODE_E
{
 MODE_HDMI,
 MODE_VGA
} ADV7842_MODE;
typedef enum ADV7842_HDMI_PORT_E
{
 HDMI_PORT_A,
 HDMI_PORT_B
} ADV7842_HDMI_PORT;
/** struct bt_timings - BT.656/BT.1120 timing data
* @width: total width of the active video in pixels
* @height: total height of the active video in lines
* @interlaced: Interlaced or progressive
* @polarities: Positive or negative polarities
* @pixelclock: Pixel clock in HZ. Ex. 74.25MHz->74250000
* @hfrontporch:Horizontal front porch in pixels
* @hsync: Horizontal Sync length in pixels
* @hbackporch: Horizontal back porch in pixels
* @vfrontporch:Vertical front porch in lines
* @vsync: Vertical Sync length in lines
* @vbackporch: Vertical back porch in lines
* @il_vfrontporch:Vertical front porch for the even field
*  (aka field 2) of interlaced field formats
* @il_vsync: Vertical Sync length for the even field
*  (aka field 2) of interlaced field formats
* @il_vbackporch:Vertical back porch for the even field
*  (aka field 2) of interlaced field formats
* @standards: Standards the timing belongs to
*
* A note regarding vertical interlaced timings: height refers to the total
* height of the active video frame (= two fields). The blanking timings refer
* to the blanking of each field. So the height of the total frame is
* calculated as follows:
*
* tot_height = height + vfrontporch + vsync + vbackporch +
*                       il_vfrontporch + il_vsync + il_vbackporch
*
* The active height of each field is height / 2.
*/
struct bt_timings
{
 unsigned int width;
 unsigned int height;
 unsigned int interlaced;
 unsigned int polarities;
 unsigned int pixelclock;
 unsigned int hfrontporch;
 unsigned int hsync;
 unsigned int hbackporch;
 unsigned int vfrontporch;
 unsigned int vsync;
 unsigned int vbackporch;
 unsigned int il_vfrontporch;
 unsigned int il_vsync;
 unsigned int il_vbackporch;
 unsigned int standards;
 unsigned int flags;
 unsigned int hdmi_colorspace;
};
#define SYSTEM_CLOCK_PERIOD 28636363
#endif /* ADV7842_H_ */

了解详情请下载附件查看。

文件列表(部分)

名称 大小 修改日期
adv7842.c1.33 KB2020-01-19
adv7842.h0.77 KB2020-01-19
adv7842_3routes_i2c.h0.24 KB2020-01-19
adv7842_define.h0.23 KB2020-01-19
gpio_i2c.h0.27 KB2020-01-19
Makefile0.28 KB2020-01-19
private_i2c.h0.96 KB2020-01-19
rx_detect.c3.62 KB2020-01-19
rx_detect.h0.11 KB2020-01-19
rx_detect_define.h1.89 KB2020-01-19
v4l2-dv-timings.h2.80 KB2020-01-19
adv78420.00 KB2020-08-02

立即下载

相关下载

[ADV7842—adc芯片linux驱动] 此项目是ADV7842—abc芯片linux驱动。 支持hdmi/vga自适应分辨率(在海思sdk中需要自己根据芯片返回的时序调整VI)

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部