1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/include/uapi/sound
Pierre-Louis Bossart b456abe63f
ALSA: pcm: introduce INFO_NO_REWINDS flag
When the hardware can only deal with a monotonically increasing
appl_ptr, this flag can be set.

In case the application requests a rewind, be it with a
snd_pcm_rewind() or with a direct change of a mmap'ed pointer followed
by a SNDRV_PCM_IOCTL_SYNC_PTR, this patch checks if a rewind
occurred and returns an error.

Credits to Takashi Iwai for identifying the path with SYNC_PTR and
suggesting the pointer checks.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211119230852.206310-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-11-24 12:57:18 +00:00
..
sof ASoC: SOF: tokens: add token for Mediatek AFE 2021-11-18 13:57:36 +00:00
asequencer.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
asoc.h treewide: Replace open-coded flex arrays in unions 2021-10-18 12:28:53 -07:00
asound.h ALSA: pcm: introduce INFO_NO_REWINDS flag 2021-11-24 12:57:18 +00:00
asound_fm.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
compress_offload.h ALSA: fix kernel-doc markups 2020-10-26 15:26:31 +01:00
compress_params.h ALSA: compress: add alac & ape decoder params 2020-03-16 17:52:09 +00:00
emu10k1.h ALSA: uapi: Add linux/types.h include back (but carefully) 2019-12-30 22:28:59 +01:00
firewire.h ALSA: firewire-motu: export meter information to userspace as float value 2021-10-28 09:10:41 +02:00
hdsp.h ALSA: uapi: Add linux/types.h include back (but carefully) 2019-12-30 22:28:59 +01:00
hdspm.h ALSA: uapi: Add linux/types.h include back (but carefully) 2019-12-30 22:28:59 +01:00
sb16_csp.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
sfnt_info.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
skl-tplg-interface.h ASoC: Intel: Skylake: Automatic DMIC format configuration according to information from NHLT 2020-04-27 16:02:26 +01:00
snd_ar_tokens.h ASoC: qdsp6: audioreach: add topology support 2021-10-26 13:50:07 +01:00
snd_sst_tokens.h ASoC: Intel: Skylake: Support multiple format configs 2021-08-23 16:40:02 +01:00
tlv.h ALSA: control: complement TLV macro for db-minmax and db-linear types 2018-05-14 17:47:37 +02:00
usb_stream.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00