All of lore.kernel.org
 help / color / mirror / Atom feed
* Trigger Callback
@ 2006-08-01 19:48 Julien Bramary
  2006-08-01 19:55 ` Lee Revell
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Bramary @ 2006-08-01 19:48 UTC (permalink / raw)
  To: alsa-devel

I'm an Alsa beginner and I'm trying to write an alsa driver for an embedded dac on ARM.

>From Iwai's doc:

/* trigger callback */
static int snd_mychip_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
{
    switch (cmd) {
    case SNDRV_PCM_TRIGGER_START:
            // do something to start the PCM engine
            break;
    case SNDRV_PCM_TRIGGER_STOP:
            // do something to stop the PCM engine
            break;
    default:
            return -EINVAL;
    }
}

My question here is,
What are we supposed to do to start the PCM engine?
Because, I'm currently doing nothing, and yet it starts anyway...
I'd like to understand to have more control.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-02 12:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01 19:48 Trigger Callback Julien Bramary
2006-08-01 19:55 ` Lee Revell
2006-08-01 20:14   ` Julien Bramary
2006-08-02 11:29     ` Takashi Iwai
2006-08-02 12:16       ` Julien Bramary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.