From: Abramo Bagnara Date: Tue, 6 Feb 2001 23:48:28 +0000 (+0000) Subject: Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API... X-Git-Tag: v1.0.3~181 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=af4bfca9ea49423069bd5838783c28f89d70d0d4;p=alsa-tools.git Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const. --- diff --git a/envy24control/envy24control.c b/envy24control/envy24control.c index a92f3d0..442a75b 100644 --- a/envy24control/envy24control.c +++ b/envy24control/envy24control.c @@ -21,7 +21,7 @@ int card = 0; snd_ctl_t *card_ctl = NULL; -snd_ctl_hw_info_t hw_info; +snd_ctl_info_t hw_info; ice1712_eeprom_t card_eeprom; GtkWidget *window; @@ -1044,8 +1044,8 @@ int main(int argc, char **argv) fprintf(stderr, "snd_ctl_open: %s\n", snd_strerror(err)); exit(EXIT_FAILURE); } - if ((err = snd_ctl_hw_info(card_ctl, &hw_info)) < 0) { - fprintf(stderr, "snd_ctl_hw_info: %s\n", snd_strerror(err)); + if ((err = snd_ctl_info(card_ctl, &hw_info)) < 0) { + fprintf(stderr, "snd_ctl_info: %s\n", snd_strerror(err)); exit(EXIT_FAILURE); } if (hw_info.type == SND_CARD_TYPE_ICE1712)