Skip to contentSkip to conversation

how to disable mmap and allow .copy function to be called

DISCUSSION Harsha priya gupta 1 participant 2 messages Apr 24, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

Can anyone help me - I need to modify an existing driver such that a new .copy function is invoked. how to make sure that mmap is diabled?

Thanks,
Harsha

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Thank you. I tried that but on starting a playback it gives me an error that the device is in use and does not playback. Should i be enabling anything else for my .copy function to be invoked and successful playback to happen?

Quoted 18 lines · Eliot Blennerhassett
Quoted 5 lines · Harsha priya gupta

Hi,

Can anyone help me - I need to modify an existing driver such that a new .copy function is invoked. how to make sure that mmap is diabled?

Remove SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID

from the struct snd_pcm_hardware.info initialisation.

--
Eliot

Signature · 1 line
-Harsha