[ALSA] fix typos in writing-an-alsa-driver
Modules: Documentation Fixed typos in writing-an-alsa-driver document. Signed-off-by: Giuliano Pochini <pochini@shiny.it> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
869264c45a
commit
44275f18ec
1 changed files with 2 additions and 2 deletions
|
@ -5206,14 +5206,14 @@ struct _snd_pcm_runtime {
|
|||
You need to pass the <function>snd_dma_pci_data(pci)</function>,
|
||||
where pci is the struct <structname>pci_dev</structname> pointer
|
||||
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->dma_private. You can cast
|
||||
the pointer like:
|
||||
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<![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>
|
||||
</informalexample>
|
||||
|
|
Loading…
Reference in a new issue