[alsa-devel] [PATCH - oss plugin update revised 1/2] oss: Add support of 32-bit and other formats

Alex Wiggins alex.d.wiggins at gmail.com
Sun Jun 30 10:03:35 CEST 2013


This part of the patch (oss plugin update revised 1/2) allows OSS emulation
to work with audio formats other than 8-bit and 16-bit. Specifically, it
allows this OSS emulation plugin to play 24-bit and 32-bit hires audio
(provided that the OSS driver / soundcard supports it).

The other part of the patch (oss plugin update revised 2/2) allows the user
to set the OSS buffer / period size config via the ALSA conf file. This was
found to be useful during testing to improve performance (without setting
this the default chosen values caused occasional empty buffer glitches, by
choosing more optimal values these glitches were removed). The previous
default behaviour (restrict to period size of power of 2) can be reinstated
by setting period_size to negative. The new default behaviour is to query
this period_size from OSS (and also check if it is a power of 2). Finally
the user is able to force the period_size, periods and buffer_size (to any
value) by specifying the variables in the ALSA conf file.



On 30 June 2013 02:13, Raymond Yau <superquad.vortex2 at gmail.com> wrote:

> >
> > Added support of 32-bit and other audio formats via 3 changes:
> >
> >  - Additional audio format definitions
> >    at the top of the file (if required);
> >
> >  - Additional audio formats in oss_hw_params
> >    (to allow as input to pass to OSS);
> >
> >  - Additional audio formats in oss_hw_constraint
> >    (to allow to report to ALSA).
> >
> > Signed-off-by: Alex Wiggins <alex.d.wiggins at gmail.com>
> >
>
> Do you mean that this patch allow  OSS 4.0 enumlation if period size other
> than power 2 is supported ?
>


More information about the Alsa-devel mailing list