Lines Matching refs:err
47 int err;
59 err = snd_pcm_open(&pcm, ALSA_DEFAULT_DEVICE_NAME,
61 if (err < 0) {
63 err = snd_pcm_open(&pcm, ALSA_DEFAULT_DEVICE_NAME,
66 if (err < 0) {
67 ERROR1("ERROR: snd_pcm_open (\"default\"): %s\n", snd_strerror(err));
69 err = snd_pcm_info(pcm, pcminfo);
71 if (err < 0) {
73 snd_strerror(err));
106 err = snd_ctl_open(&handle, devname, SND_CTL_NONBLOCK);
107 if (err < 0) {
109 card, snd_strerror(err));
111 err = snd_ctl_card_info(handle, cardinfo);
112 if (err < 0) {
114 card, snd_strerror(err));
127 err = snd_ctl_pcm_info(handle, pcminfo);
128 if (err == -ENOENT) {
131 err = snd_ctl_pcm_info(handle, pcminfo);
133 if (err < 0) {
134 if (err != -ENOENT) {
136 card, snd_strerror(err));