Skip to contentSkip to conversation

Question about TW686X driver

DISCUSSION Ezequiel Garcia 1 participant 2 messages Jul 23, 2019 2 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hey Mark,

I'm glad you are having fun with the driver.

Quoted 7 lines · Mark Balançian

Hello all,

My name is Mark and I am working on contributing to the open-source Linux project.

I would please like to know more about the TW686X driver. In particular, when running concurrency tests on the driver, it seems like there is no evidence of interrupt handling/calling before tw686x_memcpy_dma_free(), which could be problematic. Am I missing something? I would highly appreciate your explanation for educational purposes.

Not necesarily, as the code explains:

/*
* We can call this even when alloc_dma failed for the given channel */
static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc,
unsigned int pb)

Are you having any specific issue ?

Thanks,
Ezequiel

#3 lore raw
In reply to a message not in the archive
Quoted 3 lines · Mark Balançian

I see. I guess then my issue would be help in seeing how tw686x_memcpy_dma_free alone does any required interrupt handling, since there are also functions tw686x_irq and tw686x_audio_irq for interrupt handling as well? However, in my analysis, they were called after tw686x_memcpy_dma_free.

What are you trying to do? and what is exactly not working?

PS: Don't drop linux-media from the Cc list, and please don't top-post.

Thanks,
Eze