ALSA: Replace 0 with NULL in writing-an-alsa-driver.tmpl
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2013 13:23:53 +0000 (14:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2013 13:23:53 +0000 (14:23 +0100)
Spotted while correcting the sentences.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/DocBook/writing-an-alsa-driver.tmpl

index c564faab981c0974ae4c3ede2197490121bfb074..bd6fee22c4dd0ee8d9ad982e42f6301ff48fd1ee 100644 (file)
@@ -3278,8 +3278,8 @@ struct _snd_pcm_runtime {
         <programlisting>
 <![CDATA[
   snd_pcm_hw_rule_add(substream->runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
-                      hw_rule_channels_by_format, 0, SNDRV_PCM_HW_PARAM_FORMAT,
-                      -1);
+                      hw_rule_channels_by_format, NULL,
+                      SNDRV_PCM_HW_PARAM_FORMAT, -1);
 ]]>
           </programlisting>
         </informalexample>
@@ -3321,8 +3321,8 @@ struct _snd_pcm_runtime {
         <programlisting>
 <![CDATA[
   snd_pcm_hw_rule_add(substream->runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT,
-                      hw_rule_format_by_channels, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
-                      -1);
+                      hw_rule_format_by_channels, NULL,
+                      SNDRV_PCM_HW_PARAM_CHANNELS, -1);
 ]]>
           </programlisting>
         </informalexample>