Skip to contentSkip to conversation

ALSA DMIX support without MMAP ?

DISCUSSION ANISH KUMAR 2 participants 2 messages Jan 13, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I am working on android and and in our device we use ALSA.

I have enabled dmix support for andoid as by default android doesn't have this plugin enabled and soon will post it in android forum however i have run into some problems.Hoping takashi can help me out on this.

Problem is when i am trying to use dmix plugin i am not getting any sound (logs shown below).Is it because i don't have mmap mode support on my device???

If yes then can't dmix work without mmap mode??? Logs shown below:

Entered s3c24xx_pcm_hw_params,
Entered s3c24xx_pcm_hw_params, line 330
Entered s3c24xx_pcm_mmap
Entered s3c24xx_pcm_prepare
Entered s3c24xx_pcm_enqueue
Entered s3c24xx_pcm_trigger
Entered s3c24xx_pcm_pointer
Entered s3c24xx_pcm_pointer res_value[0]
snd_pcm_update_hw_ptr_pos xun: [0]occured XRUN!

Normal playback and recording is fine if i dont use dmix plugin.During my normal playback and recording i don't use mmap as i preallocate DMA memory and use them.

Regards,
anish

#1 lore raw
Quoted 1 line · ANISH KUMAR

Problem is when i am trying to use dmix plugin i am not getting any sound (logs shown below).Is it because i don't have mmap mode support on my device???

mmap is supported by the Samsung drivers.

Quoted 11 lines

If yes then can't dmix work without mmap mode??? Logs shown below:

Entered s3c24xx_pcm_hw_params,
Entered s3c24xx_pcm_hw_params, line 330
Entered s3c24xx_pcm_mmap
Entered s3c24xx_pcm_prepare
Entered s3c24xx_pcm_enqueue
Entered s3c24xx_pcm_trigger
Entered s3c24xx_pcm_pointer
Entered s3c24xx_pcm_pointer res_value[0]
snd_pcm_update_hw_ptr_pos xun: [0]occured XRUN!

This looks like the dmix data rates are getting out of sync with what the hardware is doing. Enabling CONFIG_SND_PCM_XRUN_DEBUG will produce more diagnostic information from the driver side.