Skip to content

Commit 3900623

Browse files
JoshWumchehab
authored andcommitted
[media] media: atmel-isi: add v4l2 async probe support
Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent 47c71bd commit 3900623

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎drivers/media/platform/soc_camera/atmel-isi.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,11 @@ static int atmel_isi_probe(struct platform_device *pdev)
980980
soc_host->v4l2_dev.dev = &pdev->dev;
981981
soc_host->nr = pdev->id;
982982

983+
if (isi->pdata.asd_sizes) {
984+
soc_host->asd = isi->pdata.asd;
985+
soc_host->asd_sizes = isi->pdata.asd_sizes;
986+
}
987+
983988
ret = soc_camera_host_register(soc_host);
984989
if (ret) {
985990
dev_err(&pdev->dev, "Unable to register soc camera host\n");

‎include/media/atmel-isi.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@
106106
#define ISI_DATAWIDTH_8 0x01
107107
#define ISI_DATAWIDTH_10 0x02
108108

109+
struct v4l2_async_subdev;
110+
109111
struct isi_platform_data {
110112
u8 has_emb_sync;
111113
u8 emb_crc_sync;
@@ -118,6 +120,8 @@ struct isi_platform_data {
118120
u32 frate;
119121
/* Using for ISI_MCK */
120122
u32 mck_hz;
123+
struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */
124+
int *asd_sizes; /* 0-terminated array of asd group sizes */
121125
};
122126

123127
#endif /* __ATMEL_ISI_H__ */

0 commit comments

Comments
 (0)