Skip to contentSkip to conversation

Typo in Writing-an-ALSA-Driver

DISCUSSION Martin Langer 1 participant 2 messages Dec 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

two small typos in the docs on
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x494.htm

There are *playback* labeled functions for open and close:

static snd_pcm_ops_t snd_mychip_playback_ops = {
.open = snd_mychip_playback_open,
.close = snd_mychip_playback_close,
[...]
};

But OTOH they were called *pcm* instead of *playback*:

static int snd_mychip_pcm_open(snd_pcm_substream_t *subs) {} static int snd_mychip_pcm_close(snd_pcm_substream_t *substream) {}

martin

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

#1 lore raw
Quoted 14 lines · Martin Langer

Hi,

two small typos in the docs on
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x494.htm

There are *playback* labeled functions for open and close:

static snd_pcm_ops_t snd_mychip_playback_ops = {
.open = snd_mychip_playback_open,
.close = snd_mychip_playback_close,
[...]
};

Quoted 3 lines

But OTOH they were called *pcm* instead of *playback*:

static int snd_mychip_pcm_open(snd_pcm_substream_t *subs) {}

another typo: subs has to be substream.

martin

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click