[pulseaudio-commits] 2 commits - src/modules src/pulse
Arun Raghavan
arun at kemper.freedesktop.org
Fri Jan 13 20:51:11 PST 2012
src/modules/alsa/mixer/paths/analog-output.conf.common | 3 +++
src/pulse/stream.h | 14 +++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
New commits:
commit 177cfb1f1c24ad2a6efe36eadc59750b4e3193d6
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Sat Jan 14 10:14:01 2012 +0530
stream: Clarify the sign of error return codes
The returned error values are all negative, but the documentation did
not explicitly mention this. Thanks to Vincent Penquerc'h for pointing
this out.
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 6e6d34a..b4464fa 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -258,7 +258,7 @@
* by pa_stream_get_timing_info(). Hence the same rules for keeping
* the timing data up-to-date apply here. In case the write or read
* index is corrupted, these two functions will fail with
- * PA_ERR_NODATA set.
+ * -PA_ERR_NODATA set.
*
* Since updating the timing info structure usually requires a full
* network round trip and some applications monitor the timing very
@@ -393,7 +393,7 @@ uint32_t pa_stream_get_index(pa_stream *s);
*
* Please note that streams may be moved between sinks/sources and thus
* it is recommended to use pa_stream_set_moved_callback() to be notified
- * about this. This function will return with PA_ERR_NOTSUPPORTED when the
+ * about this. This function will return with -PA_ERR_NOTSUPPORTED when the
* server is older than 0.9.8. \since 0.9.8 */
uint32_t pa_stream_get_device_index(pa_stream *s);
@@ -404,13 +404,13 @@ uint32_t pa_stream_get_device_index(pa_stream *s);
*
* Please note that streams may be moved between sinks/sources and thus
* it is recommended to use pa_stream_set_moved_callback() to be notified
- * about this. This function will return with PA_ERR_NOTSUPPORTED when the
+ * about this. This function will return with -PA_ERR_NOTSUPPORTED when the
* server is older than 0.9.8. \since 0.9.8 */
const char *pa_stream_get_device_name(pa_stream *s);
/** Return 1 if the sink or source this stream is connected to has
* been suspended. This will return 0 if not, and a negative value on
- * error. This function will return with PA_ERR_NOTSUPPORTED when the
+ * error. This function will return with -PA_ERR_NOTSUPPORTED when the
* server is older than 0.9.8. \since 0.9.8 */
int pa_stream_is_suspended(pa_stream *s);
@@ -687,7 +687,7 @@ pa_operation* pa_stream_set_name(pa_stream *s, const char *name, pa_stream_succe
* pa_stream_update_timing_info().
*
* If no timing information has been
- * received yet this call will return PA_ERR_NODATA. For more details
+ * received yet this call will return -PA_ERR_NODATA. For more details
* see pa_stream_get_timing_info(). */
int pa_stream_get_time(pa_stream *s, pa_usec_t *r_usec);
@@ -699,7 +699,7 @@ int pa_stream_get_time(pa_stream *s, pa_usec_t *r_usec);
* samples are not yet played. In this case \a *negative is set to 1.
*
* If no timing information has been received yet, this call will
- * return PA_ERR_NODATA. On success, it will return 0.
+ * return -PA_ERR_NODATA. On success, it will return 0.
*
* For more details see pa_stream_get_timing_info() and
* pa_stream_get_time(). */
@@ -714,7 +714,7 @@ int pa_stream_get_latency(pa_stream *s, pa_usec_t *r_usec, int *negative);
* If no timing information has been received before (i.e. by
* requesting pa_stream_update_timing_info() or by using
* PA_STREAM_AUTO_TIMING_UPDATE), this function will fail with
- * PA_ERR_NODATA.
+ * -PA_ERR_NODATA.
*
* Please note that the write_index member field (and only this field)
* is updated on each pa_stream_write() call, not just when a timing
commit 42ebc01ee9388f27ed62162190a7966a44c2aa64
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Fri Jan 13 09:40:04 2012 +0530
alsa-mixer: Turn off the IEC958 element for analog outputs
This is needed for the Creative Audigy CA0106 to work. Also makes sure
that the LED for optical out is shut down in analog modes on MacBooks
(these share a port for analog and digital output).
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44741
diff --git a/src/modules/alsa/mixer/paths/analog-output.conf.common b/src/modules/alsa/mixer/paths/analog-output.conf.common
index db6b473..9333800 100644
--- a/src/modules/alsa/mixer/paths/analog-output.conf.common
+++ b/src/modules/alsa/mixer/paths/analog-output.conf.common
@@ -129,6 +129,9 @@ priority = 0
name = output-bass-boost-off
priority = 10
+[Element IEC958]
+switch = off
+
[Element IEC958 Optical Raw]
switch = off
More information about the pulseaudio-commits
mailing list