mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
be more verbose when device does not support sampling parameters
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1592 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
fedca91468
commit
e4e9a06307
1 changed files with 3 additions and 3 deletions
|
|
@ -324,7 +324,7 @@ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
if (ss->rate != r) {
|
if (ss->rate != r) {
|
||||||
pa_log_warn("device doesn't support %u Hz, changed to %u Hz.", ss->rate, r);
|
pa_log_warn("Device %s doesn't support %u Hz, changed to %u Hz.", snd_pcm_name(pcm_handle), ss->rate, r);
|
||||||
|
|
||||||
/* If the sample rate deviates too much, we need to resample */
|
/* If the sample rate deviates too much, we need to resample */
|
||||||
if (r < ss->rate*.95 || r > ss->rate*1.05)
|
if (r < ss->rate*.95 || r > ss->rate*1.05)
|
||||||
|
|
@ -332,12 +332,12 @@ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ss->channels != c) {
|
if (ss->channels != c) {
|
||||||
pa_log_warn("device doesn't support %u channels, changed to %u.", ss->channels, c);
|
pa_log_warn("Device %s doesn't support %u channels, changed to %u.", snd_pcm_name(pcm_handle), ss->channels, c);
|
||||||
ss->channels = c;
|
ss->channels = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ss->format != f) {
|
if (ss->format != f) {
|
||||||
pa_log_warn("device doesn't support sample format %s, changed to %s.", pa_sample_format_to_string(ss->format), pa_sample_format_to_string(f));
|
pa_log_warn("Device %s doesn't support sample format %s, changed to %s.", snd_pcm_name(pcm_handle), pa_sample_format_to_string(ss->format), pa_sample_format_to_string(f));
|
||||||
ss->format = f;
|
ss->format = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue