linux-stable/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 ASoC: Intel: avs: Parse control tuples 2022-12-25 23:33:03 +00:00
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 ASoC: uapi: Replace zero-length arrays with __DECLARE_FLEX_ARRAY() helper 2023-03-05 23:41:25 -06:00
asound.h ALSA: pcm: clarify and fix default msbits value for all formats 2024-02-23 09:44:46 +01:00
asound_fm.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
compress_offload.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
compress_params.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
emu10k1.h ALSA: emu10k1: enable bit-exact playback, part 1: DSP attenuation 2023-05-15 22:06:21 +02:00
firewire.h ALSA: fireface: add field for the number of messages copied to user space 2023-02-04 09:35:17 +01:00
hdsp.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
hdspm.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
sb16_csp.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
scarlett2.h ALSA: scarlett2: Add support for Solo, 2i2, and 4i4 Gen 4 2023-12-29 15:52:14 +01:00
sfnt_info.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
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 ASoC: qdsp6: audioreach: add support for more port connections 2022-10-28 17:19:22 +01:00
snd_sst_tokens.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
tlv.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
usb_stream.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00