Skip to content

Commit

Permalink
media: zoran: device support only 32bit DMA address
Browse files Browse the repository at this point in the history
The zoran device only supports 32bit DMA address.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
montjoie authored and mchehab committed Oct 1, 2020
1 parent b8fb0a4 commit d4ae368
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/media/zoran/zoran_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,12 @@ static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
int card_num;
const char *codec_name, *vfe_name;
unsigned int nr;
int err;

err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
if (err)
return -ENODEV;
vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));

nr = zoran_num++;
if (nr >= BUZ_MAX) {
Expand Down

0 comments on commit d4ae368

Please sign in to comment.