You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] V4L: soc-camera: add helper functions for new bus configuration type
Add helper functions to process the new media bus configuration type similar to soc_camera_apply_sensor_flags() and soc_camera_bus_param_compatible(). Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
7cd74ffb04
commit
32c69fcc78
@@ -300,8 +300,10 @@ static inline void soc_camera_limit_side(int *start, int *length,
|
||||
*start = start_min + length_max - *length;
|
||||
}
|
||||
|
||||
extern unsigned long soc_camera_apply_sensor_flags(struct soc_camera_link *icl,
|
||||
unsigned long flags);
|
||||
unsigned long soc_camera_apply_sensor_flags(struct soc_camera_link *icl,
|
||||
unsigned long flags);
|
||||
unsigned long soc_camera_apply_board_flags(struct soc_camera_link *icl,
|
||||
const struct v4l2_mbus_config *cfg);
|
||||
|
||||
/* This is only temporary here - until v4l2-subdev begins to link to video_device */
|
||||
#include <linux/i2c.h>
|
||||
|
||||
@@ -82,5 +82,7 @@ const struct soc_mbus_pixelfmt *soc_mbus_get_fmtdesc(
|
||||
s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf);
|
||||
int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf,
|
||||
unsigned int *numerator, unsigned int *denominator);
|
||||
unsigned int soc_mbus_config_compatible(const struct v4l2_mbus_config *cfg,
|
||||
unsigned int flags);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user