[pulseaudio-commits] r1642 - in /branches/lennart/src/modules: module-alsa-sink.c module-alsa-source.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Aug 11 13:30:22 PDT 2007
Author: lennart
Date: Sat Aug 11 22:30:21 2007
New Revision: 1642
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1642&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Add 'via DMA' to sink/source description if device is accessed with mmap()
Modified:
branches/lennart/src/modules/module-alsa-sink.c
branches/lennart/src/modules/module-alsa-source.c
Modified: branches/lennart/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-alsa-sink.c?rev=3D1642&root=3Dpulseaudio&r1=3D1641&r2=3D1642&view=3Ddi=
ff
=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/module-alsa-sink.c (original)
+++ branches/lennart/src/modules/module-alsa-sink.c Sat Aug 11 22:30:21 2007
@@ -837,9 +837,10 @@
pa_sink_set_module(u->sink, m);
pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq);
pa_sink_set_description(u->sink, t =3D pa_sprintf_malloc(
- "ALSA PCM on %s (%s)",
+ "ALSA PCM on %s (%s)%s",
dev,
- snd_pcm_info_get_name(pcm_info)));
+ snd_pcm_info_get_name(pcm_info),
+ use_mmap ? " via DMA" : ""));
pa_xfree(t);
=
u->sink->is_hardware =3D 1;
Modified: branches/lennart/src/modules/module-alsa-source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-alsa-source.c?rev=3D1642&root=3Dpulseaudio&r1=3D1641&r2=3D1642&view=3D=
diff
=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/module-alsa-source.c (original)
+++ branches/lennart/src/modules/module-alsa-source.c Sat Aug 11 22:30:21 2=
007
@@ -811,9 +811,10 @@
pa_source_set_module(u->source, m);
pa_source_set_asyncmsgq(u->source, u->thread_mq.inq);
pa_source_set_description(u->source, t =3D pa_sprintf_malloc(
- "ALSA PCM on %s (%s)",
+ "ALSA PCM on %s (%s)%s",
dev,
- snd_pcm_info_get_name(pcm_info)));
+ snd_pcm_info_get_name(pcm_info),
+ use_mmap ? " via DMA" : ""));
pa_xfree(t);
=
u->source->is_hardware =3D 1;
More information about the pulseaudio-commits
mailing list