mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-02 09:01:48 -05:00
Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const.
This commit is contained in:
parent
9518a4581f
commit
af4bfca9ea
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
int card = 0;
|
int card = 0;
|
||||||
snd_ctl_t *card_ctl = NULL;
|
snd_ctl_t *card_ctl = NULL;
|
||||||
snd_ctl_hw_info_t hw_info;
|
snd_ctl_info_t hw_info;
|
||||||
ice1712_eeprom_t card_eeprom;
|
ice1712_eeprom_t card_eeprom;
|
||||||
|
|
||||||
GtkWidget *window;
|
GtkWidget *window;
|
||||||
|
|
@ -1044,8 +1044,8 @@ int main(int argc, char **argv)
|
||||||
fprintf(stderr, "snd_ctl_open: %s\n", snd_strerror(err));
|
fprintf(stderr, "snd_ctl_open: %s\n", snd_strerror(err));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if ((err = snd_ctl_hw_info(card_ctl, &hw_info)) < 0) {
|
if ((err = snd_ctl_info(card_ctl, &hw_info)) < 0) {
|
||||||
fprintf(stderr, "snd_ctl_hw_info: %s\n", snd_strerror(err));
|
fprintf(stderr, "snd_ctl_info: %s\n", snd_strerror(err));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (hw_info.type == SND_CARD_TYPE_ICE1712)
|
if (hw_info.type == SND_CARD_TYPE_ICE1712)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue