[pulseaudio-commits] r1592 - /branches/lennart/src/modules/alsa-util.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed Aug 8 16:48:26 PDT 2007
Author: lennart
Date: Thu Aug 9 01:48:25 2007
New Revision: 1592
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1592&root=3Dpulseaudio&vi=
ew=3Drev
Log:
be more verbose when device does not support sampling parameters
Modified:
branches/lennart/src/modules/alsa-util.c
Modified: branches/lennart/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/al=
sa-util.c?rev=3D1592&root=3Dpulseaudio&r1=3D1591&r2=3D1592&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/modules/alsa-util.c (original)
+++ branches/lennart/src/modules/alsa-util.c Thu Aug 9 01:48:25 2007
@@ -324,7 +324,7 @@
goto finish;
=
if (ss->rate !=3D 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 (r < ss->rate*.95 || r > ss->rate*1.05)
@@ -332,12 +332,12 @@
}
=
if (ss->channels !=3D 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 =3D c;
}
=
if (ss->format !=3D 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 t=
o %s.", snd_pcm_name(pcm_handle), pa_sample_format_to_string(ss->format), p=
a_sample_format_to_string(f));
ss->format =3D f;
}
=
More information about the pulseaudio-commits
mailing list