alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
345 stars 176 forks source link

pcm: Add MSBITS subformat options #342

Closed crojewsk-intel closed 7 months ago

crojewsk-intel commented 12 months ago

Improve granularity of format selection for S32/U32 formats by adding masks representing 20, 24 and 32 most significant bits. As a preparation step introduce snd_pcm_subformat_value() for easy name-to-subformat conversions.

While at it, fix few warnings that pop up in subformat-related code during compilation.

crojewsk-intel commented 12 months ago

Related alsa-utils PR: aplay: Add option for specifying subformat.

crojewsk-intel commented 12 months ago

This will be paired with relevant kernel updates, posting as RFC for now. Will link the alsa-devel thread once the patchset is there.

The patchset ALSA/ASoC: hda: Address format selection limitations and ambiguity has been posted on alsa-devel.

crojewsk-intel commented 11 months ago

Changes in v2:

crojewsk-intel commented 7 months ago

Bumping the subject.

Dropping [RFC] as the kernel series [PATCH v5 00/16] ALSA/ASoC: hda: Address format selection limitations and ambiguity has been merged into Takashi's for-next.