···36583658 </para>3659365936603660 <para>36613661+ The above callback can be simplified with a helper function,36623662+ <function>snd_ctl_enum_info</function>. The final code36633663+ looks like below.36643664+ (You can pass ARRAY_SIZE(texts) instead of 4 in the third36653665+ argument; it's a matter of taste.)36663666+36673667+ <informalexample>36683668+ <programlisting>36693669+<![CDATA[36703670+ static int snd_myctl_enum_info(struct snd_kcontrol *kcontrol,36713671+ struct snd_ctl_elem_info *uinfo)36723672+ {36733673+ static char *texts[4] = {36743674+ "First", "Second", "Third", "Fourth"36753675+ };36763676+ return snd_ctl_enum_info(uinfo, 1, 4, texts);36773677+ }36783678+]]>36793679+ </programlisting>36803680+ </informalexample>36813681+ </para>36823682+36833683+ <para>36613684 Some common info callbacks are available for your convenience:36623685 <function>snd_ctl_boolean_mono_info()</function> and36633686 <function>snd_ctl_boolean_stereo_info()</function>.