Commit 44275f18 authored by Giuliano Pochini's avatar Giuliano Pochini Committed by Jaroslav Kysela

[ALSA] fix typos in writing-an-alsa-driver

Modules: Documentation

Fixed typos in writing-an-alsa-driver document.
Signed-off-by: default avatarGiuliano Pochini <pochini@shiny.it>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 869264c4
...@@ -5206,14 +5206,14 @@ struct _snd_pcm_runtime { ...@@ -5206,14 +5206,14 @@ struct _snd_pcm_runtime {
You need to pass the <function>snd_dma_pci_data(pci)</function>, You need to pass the <function>snd_dma_pci_data(pci)</function>,
where pci is the struct <structname>pci_dev</structname> pointer where pci is the struct <structname>pci_dev</structname> pointer
of the chip as well. of the chip as well.
The <type>snd_sg_buf_t</type> instance is created as The <type>struct snd_sg_buf</type> instance is created as
substream-&gt;dma_private. You can cast substream-&gt;dma_private. You can cast
the pointer like: the pointer like:
<informalexample> <informalexample>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
struct snd_sg_buf *sgbuf = (struct snd_sg_buf_t*)substream->dma_private; struct snd_sg_buf *sgbuf = (struct snd_sg_buf *)substream->dma_private;
]]> ]]>
</programlisting> </programlisting>
</informalexample> </informalexample>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment