<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - tsched disabled when I use module-alsa-sink with 'mmap=0 tsched=1' parameters."
href="https://bugs.freedesktop.org/show_bug.cgi?id=87395">87395</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>tsched disabled when I use module-alsa-sink with 'mmap=0 tsched=1' parameters.
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>see2002@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Dear developers,
I had posted a question to mailing-list before:
<a href="http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-December/022822.html">http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-December/022822.html</a>
When I tried to load 'module-alsa-sink' with 'mmap=0 tsched=1' parameters,
tsched(timer-based scheduling) becomes disabled by default.
Currently, it seems tsched is allowed only mmap supported ALSA devices. But, I
found able to use tsched with 'mmap=0' option.
For instance, unix_write() function is for non-mmap driven function that was
written and regarded to tsched mode together.
Please refer below test patch for supporting tsched mode on non-mmap driven
ALSA configuration.
Thanks in advance,
KimJeongYeon
==========
diff -uNr ./a/alsa-sink.c ./b/alsa-sink.c
--- ./a/alsa-sink.c 2014-12-11 21:41:13.680373375 +0900
+++ ./b/alsa-sink.c 2014-12-11 21:45:50.032371336 +0900
@@ -2210,11 +2210,6 @@
u->use_mmap = use_mmap = false;
}
- if (use_tsched && (!b || !d)) {
- pa_log_info("Cannot enable timer-based scheduling, falling back to
sound IRQ scheduling.");
- u->use_tsched = use_tsched = false;
- }
-
if (u->use_mmap)
pa_log_info("Successfully enabled mmap() mode.");
diff -uNr ./a/alsa-util.c ./b/alsa-util.c
--- ./a/alsa-util.c 2014-12-11 21:41:13.680373375 +0900
+++ ./b/alsa-util.c 2014-12-11 21:46:46.228370922 +0900
@@ -240,9 +240,6 @@
goto finish;
}
- if (!_use_mmap)
- _use_tsched = false;
-
if (!pa_alsa_pcm_is_hw(pcm_handle))
_use_tsched = false;
==========</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>