output/alsa: add "allowed_formats" setting

Allows defining a list of supported audio formats, and allows
switching on and off DoP with certain formats.

This is a first rough draft.  The setting syntax and its semantics may
still be redesigned.
This commit is contained in:
Max Kellermann
2017-10-26 09:06:40 +02:00
parent 967d81b782
commit 44c60567dd
5 changed files with 190 additions and 8 deletions

View File

@@ -3457,6 +3457,28 @@ run</programlisting>
option at your own risk.
</entry>
</row>
<row>
<entry>
<varname>allowed_formats</varname>
<parameter>F1 F2 ...</parameter>
</entry>
<entry>
<para>
Specifies a list of allowed audio formats, separated
by a space. All items may contain asterisks as a
wild card, and may be followed by
"<parameter>=dop</parameter>" to enable DoP (DSD
over PCM) for this particular format. The first
matching format is used, and if none matches, MPD
chooses the best fallback of this list.
</para>
<para>
Example: "<parameter>96000:16:* 192000:24:*
dsd64:*=dop *:dsd:*</parameter>".
</para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>