From af4bfca9ea49423069bd5838783c28f89d70d0d4 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Tue, 6 Feb 2001 23:48:28 +0000 Subject: [PATCH] Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const. --- envy24control/envy24control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.47.1