]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix compile warning with internal function
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Jan 2007 15:39:26 +0000 (16:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jan 2007 15:39:26 +0000 (16:39 +0100)
Fixed the compile warning refering to the internal function
snd_pcm_hw_params_set_format_first.

src/pcm/pcm_direct.c

index 34742f1f72cd22643cfa5859f218cf8aebc04d28..9f98080ae15200def121fbf5880df481a6e4109e 100644 (file)
@@ -895,7 +895,7 @@ int snd_pcm_direct_initialize_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, str
                }
                if (ret < 0 && dmix->type != SND_PCM_TYPE_DMIX) {
                        /* TODO: try to choose a good format */
-                       ret = snd_pcm_hw_params_set_format_first(spcm, hw_params, &format);
+                       ret = INTERNAL(snd_pcm_hw_params_set_format_first)(spcm, hw_params, &format);
                }
                if (ret < 0) {
                        SNDERR("requested or auto-format is not available");