From: Oleksandr Grytsov Date: Fri, 15 Jun 2018 10:15:18 +0000 (+0300) Subject: docs: add PV sound device config X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3642 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f5f4c68733c9ed7d795ec79445a00053de7a94ae;p=xen.git docs: add PV sound device config Update documentation with virtual sound device Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in index ea66d867da..099a28dc7a 100644 --- a/docs/man/xl.cfg.pod.5.in +++ b/docs/man/xl.cfg.pod.5.in @@ -1414,6 +1414,155 @@ we may break backward compatibility. =back +=item B + +Specifies the virtual sound cards to be provided to the guest. +Each B is a list, which has a form of +"[VSND_ITEM_SPEC, VSND_ITEM_SPEC, ... ]" (without the quotes). +The virtual sound card has hierarchical structure. +Every card has a set of PCM devices and streams, each could be individually +configured. + +B describes individual item parameters. +B is a string of comma separated item parameters +headed by item identifier. Each item parameter is C pair: + +=over 4 + +"identifier, param = value, ...". + +=back + +Identifier shall be one of following values: "CARD", "PCM", "STREAM". +The child item treated as belonging to the previously defined parent item. + +All parameters are optional. + +There are group of parameters which are common for all items. +This group can be defined at higher level of the hierarchy and be fully or +partially re-used by the underlying layers. These parameters are: + +=over 4 + +* number of channels (min/max) + +* supported sample rates + +* supported sample formats + +=back + +E.g. one can define these values for the whole card, device or stream. +Every underlying layer in turn can re-define some or all of them to better +fit its needs. For example, card may define number of channels to be +in [1; 8] range, and some particular stream may be limited to [1; 2] only. +The rule is that the underlying layer must be a subset of the upper layer +range. + +I + +=over 4 + +=over 4 + +=item B + +List of integer values separated by semicolon: sample-rates=8000;22050;44100 + +=item B + +List of string values separated by semicolon: sample-formats=s16_le;s8;u32_be + +Supported formats: s8, u8, s16_le, s16_be, u16_le, u16_be, s24_le, s24_be, +u24_le, u24_be, s32_le, s32_be, u32_le, u32_be, float_le, float_be, +float64_le, float64_be, iec958_subframe_le, iec958_subframe_be, +mu_law, a_law, ima_adpcm, mpeg, gsm + +=item B + +The minimum amount of channels. + +=item B + +The maximum amount of channels. + +=item B + +The maximum size in octets of the buffer to allocate per stream. + +=back + +=back + +I + +=over 4 + +=over 4 + +=item B + +Specify the backend domain name or id, defaults to dom0. + +=item B + +Short name of the virtual sound card. + +=item B + +Long name of the virtual sound card. + +=back + +=back + +I + +=over 4 + +=over 4 + +=item B + +Name of the PCM sound device within the virtual sound card. + +=back + +=back + +I + +=over 4 + +=over 4 + +=item B + +Unique stream identifier. + +=item B + +Stream type: "p" - playback stream, "c" - capture stream. + +=back + +=back + +I + + vsnd = [ + ['CARD, short-name=Main, sample-formats=s16_le;s8;u32_be', + 'PCM, name=Main', + 'STREAM, id=0, type=p', + 'STREAM, id=1, type=c, channels-max=2' + ], + ['CARD, short-name=Second', + 'PCM, name=Second, buffer-size=1024', + 'STREAM, id=2, type=p', + 'STREAM, id=3, type=c' + ] + ] + =back =head2 Paravirtualised (PV) Guest Specific Options diff --git a/docs/man/xl.pod.1.in b/docs/man/xl.pod.1.in index 48da2052cc..90423bf3df 100644 --- a/docs/man/xl.pod.1.in +++ b/docs/man/xl.pod.1.in @@ -1492,6 +1492,36 @@ List virtual displays for a domain. =back +=head2 VSND DEVICES + +=over 4 + +=item B I I I ... + +Creates a new vsnd device in the domain specified by I. +I's describe the vsnd device to attach, using the same format as the +B string in the domain config file. See L for +more information. + +B + +=over 4 + +xl vsnd-attach DomU 'CARD, short-name=Main, sample-formats=s16_le;s8;u32_be' +'PCM, name=Main' 'STREAM, id=0, type=p' 'STREAM, id=1, type=c, channels-max=2' + +=back + +=item B I I + +Removes the vsnd device specified by I from the domain specified by I. + +=item B I + +List vsnd devices for a domain. + +=back + =head1 PCI PASS-THROUGH =over 4