assert(card >= 0 && card <= 32);
err = open_ctl(card, &ctl);
if (err < 0) {
- SNDERR("could not open control for card %li", card);
+ SNDERR("could not open control for card %i", card);
goto __error;
}
snd_ctl_card_info_alloca(&info);
break;
err = open_ctl(card, &ctl);
if (err < 0) {
- SNDERR("could not open control for card %li", card);
+ SNDERR("could not open control for card %i", card);
goto __out;
}
dev = -1;
while(1) {
err = snd_ctl_pcm_next_device(ctl, &dev);
if (err < 0) {
- SNDERR("could not get next pcm for card %li", card);
+ SNDERR("could not get next pcm for card %i", card);
goto __out;
}
if (dev < 0)
snd_mixer_selem_id_free(id);
}
if (simple->ctls[type].elem) {
- SNDERR("helem (%s,'%s',%li,%li,%li) appears twice or more",
+ SNDERR("helem (%s,'%s',%u,%u,%u) appears twice or more",
snd_ctl_elem_iface_name(snd_hctl_elem_get_interface(helem)),
snd_hctl_elem_get_name(helem),
snd_hctl_elem_get_index(helem),
/* set the count of channels */
err = snd_pcm_hw_params_set_channels(pcm, params, channels);
if (err < 0) {
- SNDERR("Channels count (%i) not available for %s: %s", s, channels, snd_strerror(err));
+ SNDERR("Channels count (%i) not available for %s: %s", channels, s, snd_strerror(err));
return err;
}
/* set the stream rate */
period_time = latency / 4;
err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm, params, &period_time, NULL);
if (err < 0) {
- SNDERR("Unable to set period time %i for %s: %s", s, period_time, snd_strerror(err));
+ SNDERR("Unable to set period time %i for %s: %s", period_time, s, snd_strerror(err));
return err;
}
err = INTERNAL(snd_pcm_hw_params_get_period_size)(params, &period_size, NULL);
}
if (snd_timer_poll_descriptors_count(dmix->timer) != 1) {
- SNDERR("unable to use timer with fd more than one!!!", name);
+ SNDERR("unable to use timer '%s' with more than one fd!", name);
return ret;
}
snd_timer_poll_descriptors(dmix->timer, &dmix->timer_fd, 1);
return -EINVAL;
}
if (schannel < 0 || schannel >= params->channels) {
- SNDERR("invalid slave channel number %d in binding to %d",
+ SNDERR("invalid slave channel number %ld in binding to %ld",
schannel, cchannel);
free(bindings);
return -EINVAL;