diff options
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl index 1faf76383bab..db557f91ab79 100644 --- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl +++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | |||
@@ -5333,7 +5333,7 @@ struct _snd_pcm_runtime { | |||
5333 | <informalexample> | 5333 | <informalexample> |
5334 | <programlisting> | 5334 | <programlisting> |
5335 | <![CDATA[ | 5335 | <![CDATA[ |
5336 | snd_info_set_text_ops(entry, chip, read_size, my_proc_read); | 5336 | snd_info_set_text_ops(entry, chip, my_proc_read); |
5337 | ]]> | 5337 | ]]> |
5338 | </programlisting> | 5338 | </programlisting> |
5339 | </informalexample> | 5339 | </informalexample> |
@@ -5394,7 +5394,6 @@ struct _snd_pcm_runtime { | |||
5394 | <informalexample> | 5394 | <informalexample> |
5395 | <programlisting> | 5395 | <programlisting> |
5396 | <![CDATA[ | 5396 | <![CDATA[ |
5397 | entry->c.text.write_size = 256; | ||
5398 | entry->c.text.write = my_proc_write; | 5397 | entry->c.text.write = my_proc_write; |
5399 | ]]> | 5398 | ]]> |
5400 | </programlisting> | 5399 | </programlisting> |
@@ -5402,22 +5401,6 @@ struct _snd_pcm_runtime { | |||
5402 | </para> | 5401 | </para> |
5403 | 5402 | ||
5404 | <para> | 5403 | <para> |
5405 | The buffer size for read is set to 1024 implicitly by | ||
5406 | <function>snd_info_set_text_ops()</function>. It should suffice | ||
5407 | in most cases (the size will be aligned to | ||
5408 | <constant>PAGE_SIZE</constant> anyway), but if you need to handle | ||
5409 | very large text files, you can set it explicitly, too. | ||
5410 | |||
5411 | <informalexample> | ||
5412 | <programlisting> | ||
5413 | <![CDATA[ | ||
5414 | entry->c.text.read_size = 65536; | ||
5415 | ]]> | ||
5416 | </programlisting> | ||
5417 | </informalexample> | ||
5418 | </para> | ||
5419 | |||
5420 | <para> | ||
5421 | For the write callback, you can use | 5404 | For the write callback, you can use |
5422 | <function>snd_info_get_line()</function> to get a text line, and | 5405 | <function>snd_info_get_line()</function> to get a text line, and |
5423 | <function>snd_info_get_str()</function> to retrieve a string from | 5406 | <function>snd_info_get_str()</function> to retrieve a string from |