acrn-kernel/tools
Jaroslav Kysela b3cf9bddf3 ALSA: pcm: Introduce MSBITS subformat interface
commit 2112aa034907c428785e1a5730927181276ee45b upstream.

Improve granularity of format selection for S32/U32 formats by adding
constants representing 20, 24 and MAX most significant bits.

The MAX means the maximum number of significant bits which can
the physical format hold. For 32-bit formats, MAX is related
to 32 bits. For 8-bit formats, MAX is related to 8 bits etc.

As there is only one user currently (format S32_LE), subformat is
represented by a simple u32 and stores flags only for that one user
alone. The approach of subformat being part of struct snd_pcm_hardware
is a compromise between ALSA and ASoC allowing for
hw_params-intersection code to be alloc/free-less while not adding any
new responsibilities to ASoC runtime structures.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Co-developed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20231117120610.1755254-2-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-04-24 22:20:29 +02:00
..
accounting
arch work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:12:28 +01:00
bootconfig
bpf
build perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present 2024-02-05 20:12:58 +00:00
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include ALSA: pcm: Introduce MSBITS subformat interface 2024-04-24 22:20:29 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib Merge branch 'my/v6.1.77' into lts2022/linux 2024-02-28 13:19:46 +08:00
memory-model
objtool
pci
pcmcia
perf
power
rcu
scripts
spi
testing This is the 6.1.80 stable release 2024-03-22 01:33:06 +08:00
thermal
time
tracing tools/rtla: Fix Makefile compiler options for clang 2024-02-23 09:12:45 +01:00
usb
verification
virtio
vm
wmi
Makefile