embedded OSS sound driver

From: Jacky Cheung (jackylb_at_yahoo.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 18:57:20 +0800

Hi all,

Currently I am working an embedded OSS sound driver, my sound IC is
controlled by i2c and with ssi channels.

Due to my i2c is really heavy loaded, so I need to disable the dma
before access the the sound IC register (e.g. volume control)via i2c.

I use the following two scripts to disable the dma.

dmaflags = claim_dma_lock();
disable_dma(ssi_dma);

And I use these lines to enable the dma.

enable_dma(ssi_dma);
release_dma_lock(dmaflags);

However, I find that when I tune the volume very frequently, the sound
play faster than normal. I am very sure that it caused by stopping dma,
but I don't know how to fix it. Any idea?

Many thanks.

Regards,
Jacky



Relevant Pages

  • Re: Reading audio samples immediately
    ... driver assembly code for my particular soundcard and set up, ... stopped the card and the DMA controller myself. ... wishing some special mode would be created for use of real-time sound. ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: [SLE] 9.0 small video problem
    ... I jumped into YaST and looked at DMA and ... >> there is no sound with the video. ... > applications and not just mplayer. ... > Unless someone else posts with the answer, my own suggestion is that you ...
    (SuSE)
  • Compaq Armada 1750 und Sound
    ... snd_es18xx Treiber beide DMA auf den selben Wert gesetzt, ... Wenn ich die auf verschiedene Werte stelle, und einen Sound abspiele, ... | Module for ESS AudioDrive ES-1688 and ES-688 sound cards. ...
    (de.comp.os.unix.linux.misc)
  • Re: For hardware engineer types re: sound controlers and/or codec chips ??
    ... Sound, like most everything else electronic is becoming more and more ... transmission, and that part may be handled by DMA, although using DMA ... whether slow speed processes like audio are handled by DMA or polled ... difference between the power rail and ground), all contribute noise. ...
    (Fedora)
  • Re: [SLE] 9.0 small video problem
    ... I jumped into YaST and looked at DMA and ... > in the buffer" which seems odd since there was no sound provided. ... applications and not just mplayer. ... Unless someone else posts with the answer, my own suggestion is that you ...
    (SuSE)