1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 16:53:58 -05:00
linux/include/uapi/sound
Jaroslav Kysela 85df6b5a66 ALSA: pcm: clarify and fix default msbits value for all formats
Return used most significant bits from sample bit-width rather than the whole
physical sample word size. The starting bit offset is defined in the format
itself.

The behaviour is not changed for 32-bit formats like S32_LE. But with this
change - msbits value 24 instead 32 is returned for 24-bit formats like S24_LE
etc.

Also, commit 2112aa0349 ("ALSA: pcm: Introduce MSBITS subformat interface")
compares sample bit-width not physical sample bit-width to reset MSBITS_MAX bit
from the subformat bitmask.

Probably no applications are using msbits value for other than S32_LE/U32_LE
formats, because no drivers are reducing msbits value for other formats (with
the msb offset) at the moment.

For sanity, increase PCM protocol version, letting the user space to detect
the changed behaviour.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20240222173649.1447549-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-02-23 09:44:46 +01:00
..
intel/avs
sof ASoC: SOF: Wire up buffer flags 2023-12-04 21:49:22 +00:00
asequencer.h ALSA: seq: Replace with __packed attribute 2023-10-26 09:43:28 +02:00
asoc.h
asound.h ALSA: pcm: clarify and fix default msbits value for all formats 2024-02-23 09:44:46 +01:00
asound_fm.h
compress_offload.h
compress_params.h
emu10k1.h ALSA: emu10k1: enable bit-exact playback, part 1: DSP attenuation 2023-05-15 22:06:21 +02:00
firewire.h
hdsp.h
hdspm.h
sb16_csp.h
scarlett2.h ALSA: scarlett2: Add support for Solo, 2i2, and 4i4 Gen 4 2023-12-29 15:52:14 +01:00
sfnt_info.h
skl-tplg-interface.h ASoC: Intel: Skylake: Fix declaration of enum skl_ch_cfg 2023-05-22 11:18:22 +01:00
snd_ar_tokens.h
snd_sst_tokens.h
tlv.h
usb_stream.h