mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: Add MSBITS subformat options
Improve granularity of format selection for S32/U32 formats by adding masks representing 20, 24 and 32 most significant bits. Closes: https://github.com/alsa-project/alsa-lib/pull/342 Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f33284e85e
commit
d8000f57fc
4 changed files with 21 additions and 3 deletions
|
|
@ -286,7 +286,13 @@ typedef enum _snd_pcm_subformat {
|
|||
SND_PCM_SUBFORMAT_UNKNOWN = -1,
|
||||
/** Standard */
|
||||
SND_PCM_SUBFORMAT_STD = 0,
|
||||
SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_STD
|
||||
/** Maximum bits based on PCM format */
|
||||
SND_PCM_SUBFORMAT_MSBITS_MAX = 1,
|
||||
/** 20 most significant bits */
|
||||
SND_PCM_SUBFORMAT_MSBITS_20 = 2,
|
||||
/** 24 most significant bits */
|
||||
SND_PCM_SUBFORMAT_MSBITS_24 = 3,
|
||||
SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_MSBITS_24
|
||||
} snd_pcm_subformat_t;
|
||||
|
||||
/** PCM state */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue