aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/control.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-20ALSA: control: Fix unannotated kfree() cleanupTakashi Iwai1-2/+2
2024-02-28ALSA: control: Use guard() for lockingTakashi Iwai1-260/+171
2024-02-23ALSA: control: Use automatic cleanup of kfree()Takashi Iwai1-15/+8
2023-08-17ALSA: control: Don't embed ctl_devTakashi Iwai1-6/+8
2023-07-20ALSA: control: Take lock in snd_ctl_find_id() and snd_ctl_find_numid()Takashi Iwai1-2/+18
2023-07-20ALSA: control: Introduce unlocked version for snd_ctl_find_*() helpersTakashi Iwai1-19/+50
2023-07-20ALSA: control: Make snd_ctl_find_id() argument constTakashi Iwai1-1/+1
2023-07-20ALSA: control: Add lockdep warning to internal functionsTakashi Iwai1-0/+10
2023-07-20ALSA: control: Take controls_rwsem lock in snd_ctl_remove()Takashi Iwai1-6/+21
2023-07-20ALSA: control: Take card->controls_rwsem in snd_ctl_rename()Takashi Iwai1-1/+3
2023-06-06ALSA: control: Keep the previous numid at snd_ctl_rename_id()Takashi Iwai1-2/+10
2023-01-13ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAFClement Lecigne1-9/+15
2022-10-21ALSA: control: add snd_ctl_rename()Maciej S. Szmigiero1-0/+23
2022-08-26ALSA: control: Re-order bounds checking in get_ctl_id_hash()Dan Carpenter1-1/+1
2022-08-24ALSA: control: Fix an out-of-bounds bug in get_ctl_id_hash()Zheyu Ma1-3/+3
2022-07-29ALSA: control: Use deferred fasync helperTakashi Iwai1-3/+4
2022-07-13ALSA: control: Fix missing return value comments for kernel docsTakashi Iwai1-2/+14
2022-06-15ALSA: control: Add input validationTakashi Iwai1-20/+49
2022-06-15ALSA: control: Drop superfluous ifdef CONFIG_SND_CTL_DEBUGTakashi Iwai1-16/+0
2022-06-15ALSA: control: Rename CONFIG_SND_CTL_VALIDATION to CONFIG_SND_CTL_DEBUGTakashi Iwai1-2/+2
2022-06-15ALSA: control: Use xarray for faster lookupsTakashi Iwai1-32/+148
2021-05-25ALSA: control: Minor optimization for SNDRV_CTL_IOCTL_POWER_STATETakashi Iwai1-4/+0
2021-05-25ALSA: control: Drop superfluous snd_power_wait() callsTakashi Iwai1-11/+0
2021-05-25ALSA: control: Track in-flight control read/write/tlv accessesTakashi Iwai1-5/+18
2021-04-16ALSA: control: Fix racy management of user ctl memory size accountTakashi Iwai1-6/+11
2021-04-08ALSA: control: Add memory consumption limit to user controlsTakashi Sakamoto1-24/+51
2021-04-01ALSA: control - add the missing prev_lops2 initializationJaroslav Kysela1-1/+3
2021-03-30ALSA: control - add generic LED trigger module as the new control layerJaroslav Kysela1-1/+3
2021-03-30ALSA: control - add layer registration routinesJaroslav Kysela1-2/+108
2021-03-30ALSA: control - introduce snd_ctl_notify_one() helperJaroslav Kysela1-23/+45
2021-01-08ALSA: Convert strlcpy to strscpy when return value is unusedJoe Perches1-8/+8
2020-12-25ALSA: core: Use DIV_ROUND_UP() instead of open-coding itLars-Peter Clausen1-2/+2
2020-11-13ALSA: ctl: fix error path at adding user-defined element setTakashi Sakamoto1-1/+1
2020-10-26ALSA: fix kernel-doc markupsMauro Carvalho Chehab1-2/+2
2020-09-22ALSA: ctl: Workaround for lockdep warning wrt card->ctl_files_rwlockTakashi Iwai1-8/+10
2020-09-21ALSA: compat_ioctl: avoid compat_alloc_user_spaceArnd Bergmann1-13/+25
2020-01-08ALSA: control: potential uninitialized return valueDan Carpenter1-1/+1
2020-01-04ALSA: control: Add verification for kctl accessesTakashi Iwai1-37/+246
2020-01-03ALSA: core: Constify snd_device_ops definitionsTakashi Iwai1-1/+1
2019-12-24ALSA: ctl: allow TLV read operation for callback type of element in locked caseTakashi Sakamoto1-2/+3
2019-12-23ALSA: ctl: remove dimen member from elem_info structureTakashi Sakamoto1-32/+0
2019-07-08Merge tag 'asoc-v5.3' of https://git.kernel.org/pub/scm/linux/kernel/git/broo...Takashi Iwai1-16/+1
2019-05-31ALSA: control: Use struct_size()Takashi Iwai1-5/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner1-16/+1
2019-05-06*: convert stream-like files from nonseekable_open -> stream_openKirill Smelkov1-1/+1
2018-11-24ALSA: control: Consolidate helpers for adding and replacing ctl elementsTakashi Iwai1-71/+52
2018-11-24ALSA: control: Fix race between adding and removing a user elementTakashi Iwai1-35/+45
2018-04-23ALSA: control: Fix missing __user annotationTakashi Iwai1-1/+1
2018-02-28ALSA: control: Fix a bunch of whitespace errorsRichard Fitzgerald1-9/+9
2018-02-28ALSA: control: Fix memory corruption risk in snd_ctl_elem_readRichard Fitzgerald1-1/+1
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-1/+1
2018-01-31Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-7/+8
2018-01-19snd_ctl_elem_init_enum_names(): switch to vmemdup_user()Al Viro1-3/+3
2018-01-19replace_user_tlv(): switch to vmemdup_user()Al Viro1-4/+5
2017-11-27sound: annotate ->poll() instancesAl Viro1-2/+2
2017-08-30ALSA: Get rid of card power_lockTakashi Iwai1-27/+31
2017-08-24ALSA: control: TLV data is unavailable at initial state of user-defined eleme...Takashi Sakamoto1-4/+15
2017-08-24ALSA: control: queue TLV event for a set of user-defined elementTakashi Sakamoto1-1/+6
2017-08-24ALSA: control: delegate TLV eventing to each driverTakashi Sakamoto1-9/+3
2017-08-22Merge branch 'for-linus' into for-nextTakashi Iwai1-1/+1
2017-08-22ALSA: core: Fix unexpected error at replacing user TLVTakashi Iwai1-1/+1
2017-08-20ALSA: control: use counting semaphore as write lock for ELEM_WRITE operationTakashi Sakamoto1-2/+2
2017-08-20ALSA: control: code refactoring for ELEM_READ/ELEM_WRITE operationsTakashi Sakamoto1-39/+38
2017-08-20ALSA: control: queue events within locking of controls_rwsem for ELEM_WRITE o...Takashi Sakamoto1-2/+1
2017-08-04ALSA: control: code refactoring for TLV request handler to user element setTakashi Sakamoto1-30/+46
2017-08-04ALSA: control: code refactoring TLV ioctl handlerTakashi Sakamoto1-41/+91
2017-08-04ALSA: control: obsolete user_ctl_lockTakashi Sakamoto1-24/+13
2017-08-04ALSA: control: use counting semaphore as write lock for TLV write/command ope...Takashi Sakamoto1-34/+38
2017-08-04ALSA: control: queue events within locking of controls_rwsem for TLV operationTakashi Sakamoto1-2/+1
2017-07-06Merge tag 'sound-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-45/+25
2017-06-20sched/wait: Rename wait_queue_t => wait_queue_entry_tIngo Molnar1-1/+1
2017-05-24ALSA: control: remove entry limitation for list operationTakashi Sakamoto1-3/+1
2017-05-23ALSA: control: Simplify snd_ctl_elem_list() implementationTakashi Iwai1-42/+24
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2016-07-25Merge branch 'for-next' into for-linusTakashi Iwai1-0/+32
2016-07-08ALSA: ctl: Stop notification after disconnectionTakashi Iwai1-0/+2
2016-07-07ALSA: control: add dimension validator for userspace elementsTakashi Sakamoto1-0/+32
2016-01-18ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0Takashi Iwai1-0/+2
2015-04-13ALSA: ctl: fix to handle several elements added by one operation for userspac...Takashi Sakamoto1-5/+11
2015-04-12ALSA: control: Fix a typo of SNDRV_CTL_ELEM_ACCESS_TLV_* with SNDRV_CTL_TLV_OP_*Takashi Iwai1-1/+1
2015-04-11ALSA: ctl: fill identical information to return value when adding userspace e...Takashi Sakamoto1-1/+21
2015-04-11ALSA: ctl: fix a bug to return no identical information in info operation for...Takashi Sakamoto1-0/+7
2015-04-11ALSA: ctl: confirm to return all identical information in 'activate' eventTakashi Sakamoto1-0/+2
2015-04-10ALSA: ctl: evaluate macro instead of numerical valueTakashi Sakamoto1-5/+8
2015-03-13ALSA: control: Fix breakage of user ctl element additionTakashi Iwai1-0/+1
2015-03-12Merge branch 'for-linus' into for-nextTakashi Iwai1-0/+5
2015-03-12ALSA: control: Add sanity checks for user ctl id name stringTakashi Iwai1-0/+4
2015-03-10ALSA: core: Drop superfluous error/debug messages after malloc failuresTakashi Iwai1-3/+1
2015-03-10ALSA: core: reduce stack usage related to snd_ctl_new()Takashi Sakamoto1-83/+130
2015-03-10ALSA: core: use precomputed table to check userspace control paramsTakashi Sakamoto1-32/+28
2015-02-09ALSA: control: fix failure to return new numerical ID in 'replace' event dataTakashi Sakamoto1-0/+1
2015-02-08ALSA: control: fix failure to return numerical ID in 'add' eventTakashi Sakamoto1-0/+1
2015-02-02ALSA: Simplify snd_device_register() variantsTakashi Iwai1-4/+3
2015-02-02ALSA: control: Embed struct deviceTakashi Iwai1-24/+16
2015-02-02ALSA: control: Provide a helper to look for the preferred subdeviceTakashi Iwai1-3/+24
2014-11-07ALSA: snd_ctl_activate_id(): Fix index look-upLars-Peter Clausen1-1/+1
2014-10-30ALSA: control: Add missing kerneldoc comments to exported functionsTakashi Iwai1-15/+49
2014-10-20ALSA: control: Allow to pass items zero to snd_ctl_enum_info()Takashi Iwai1-0/+2
2014-10-20ALSA: control: Warn if too long string is passed to snd_ctl_enum_info()Takashi Iwai1-0/+3
2014-07-15ALSA: control: Define SNDRV_CTL_TLV_OP_* constantsTakashi Iwai1-3/+3
2014-06-18ALSA: control: Make sure that id->index does not overflowLars-Peter Clausen1-0/+3
2014-06-18ALSA: control: Handle numid overflowLars-Peter Clausen1-0/+4
2014-06-18ALSA: control: Don't access controls outside of protected regionsLars-Peter Clausen1-5/+10
2014-06-18ALSA: control: Fix replacing user controlsLars-Peter Clausen1-16/+9
2014-06-18ALSA: control: Protect user controls against concurrent accessLars-Peter Clausen1-6/+25
2014-02-14ALSA: control: Use standard printk helpersTakashi Iwai1-8/+7
2014-02-10ALSA: Replace with IS_ENABLED()Takashi Iwai1-1/+1
2013-03-12ALSA: add/change some comments describing function return valuesYacine Belkadi1-18/+23
2012-10-30ALSA: Avoid endless sleep after disconnectTakashi Iwai1-0/+2
2012-10-30ALSA: Add a reference counter to card instanceTakashi Iwai1-0/+3
2012-09-06ALSA: control: Fix missing VOLATILE flag at creating controlsTakashi Iwai1-0/+1
2012-03-13ALSA: control - Fixe a trailing white space errorJeffrin Jose1-1/+1
2011-11-06Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+1
2011-11-06ALSA: control: remove compilation warning on 32-bitOlof Johansson1-2/+2
2011-10-31sound: Add module.h to the previously silent sound usersPaul Gortmaker1-0/+1
2011-10-09ALSA: control: add support for ENUMERATED user space controlsClemens Ladisch1-4/+76
2011-08-24ALSA: core: release the constraint check for replace opsLu Guanqun1-1/+1
2011-08-24ALSA: core: trivial code style fixLu Guanqun1-1/+1
2011-05-26ALSA: core: remove unused variables.Luca Tettamanti1-2/+1
2011-03-22ALSA: Add snd_ctl_replace() to dynamically replace a controlDimitris Papastamos1-0/+64
2011-03-18Merge branch 'topic/misc' into for-linusTakashi Iwai1-12/+10
2011-03-11ALSA: Add snd_ctl_activate_id()Takashi Iwai1-0/+46
2011-03-08ALSA: control: clean up snd_ctl_hole_check()Clemens Ladisch1-9/+9
2011-03-08ALSA: control: fix numid conflict check for new controlsClemens Ladisch1-4/+2
2011-01-10ALSA: core, oxygen, virtuoso: add an enum control info helperClemens Ladisch1-1/+27
2010-09-28ALSA: prevent heap corruption in snd_ctl_new()Dan Rosenberg1-0/+5
2010-04-13ALSA: core - Define llseek fopsTakashi Iwai1-0/+5
2010-02-01sound: control: fix minimum TLV lengthClemens Ladisch1-1/+1
2010-02-01sound: control: actually allow TLV command accessClemens Ladisch1-2/+3
2009-12-04Merge branch 'topic/misc' into for-linusTakashi Iwai1-1/+1
2009-11-18ALSA: remove unnecessary null checkDan Carpenter1-1/+1
2009-11-06control: use reference-counted pidClemens Ladisch1-2/+3
2009-11-06control: remove snd_konctrol_volatile::owner_pid fieldClemens Ladisch1-3/+1
2009-08-17sound: snd_ctl_remove_user_ctl: prevent removal of kernel controlsClemens Ladisch1-0/+4
2009-08-17sound: snd_ctl_remove_unlocked_id: simplify user control countingClemens Ladisch1-12/+7
2009-08-17sound: snd_ctl_remove_unlocked_id: simplify error pathsClemens Ladisch1-4/+5
2009-08-17sound: snd_ctl_elem_add: fix value count checkClemens Ladisch1-1/+1
2009-04-14ALSA: sound/core: use memdup_user()Li Zefan1-22/+13
2009-03-16Rationalize fasync return valuesJonathan Corbet1-5/+2
2008-11-01saner FASYNC handling on file closeAl Viro1-1/+0
2008-10-29ALSA: Warn when control names are truncatedMark Brown1-1/+6
2008-09-09ALSA: use correct lock in snd_ctl_dev_disconnect()Takashi Iwai1-2/+2
2008-08-13ALSA: Kill snd_assert() in sound/core/*Takashi Iwai1-19/+31
2008-06-13ALSA: make snd_ctl_elem_read() and snd_ctl_elem_write() staticTakashi Iwai1-3/+4
2008-01-31[ALSA] Remove sound/driver.hTakashi Iwai1-1/+0
2008-01-31[ALSA] Remove indirect control accessTakashi Iwai1-31/+20
2007-10-23[ALSA] sound/core/control.c: hard-irq-safe -> hard-irq-unsafe lock warningBorislav Petkov1-2/+3
2007-10-16[ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.czJaroslav Kysela1-1/+1
2007-10-16[ALSA] unexport snd_ctl_elem_{read,write}Adrian Bunk1-4/+0
2007-10-16[ALSA] Add helper functions for frequently used callbacksTakashi Iwai1-0/+27
2007-05-08header cleaning: don't include smp_lock.h when not usedRandy Dunlap1-1/+0
2007-02-12[PATCH] mark struct file_operations const 9Arjan van de Ven1-1/+1
2007-02-09[ALSA] make sound/core/control.c:snd_ctl_new() staticAdrian Bunk1-3/+2
2007-02-09[ALSA] alsa core: convert to list_for_each_entry*Johannes Berg1-28/+9
2006-12-20[ALSA] sound/core/control.c: remove dead codeAdrian Bunk1-1/+1
2006-10-22[ALSA] Fix addition of user-defined boolean controlsTakashi Iwai1-4/+0
2006-09-23[ALSA] Return error if no user TLV is definedTakashi Iwai1-0/+2
2006-09-23[ALSA] Fix errors with user TLV_WRITETakashi Iwai1-0/+1
2006-09-23[ALSA] Fix substream selection in PCM and rawmidiTakashi Iwai1-0/+2
2006-09-23[ALSA] Control API - more robust TLV implementationJaroslav Kysela1-30/+109
2006-09-23[ALSA] Unregister device files at disconnectionTakashi Iwai1-18/+9
2006-09-23[ALSA] Control API - TLV implementation for additional information like dB scaleJaroslav Kysela1-2/+39
2006-06-22[ALSA] Clean up EXPORT_SYMBOL()s in snd moduleTakashi Iwai1-0/+31
2006-03-31[ALSA] Cleanup unused argument for snd_power_wait()Takashi Iwai1-3/+3
2006-03-22[ALSA] Fix memory leaks in error path of control.cTakashi Iwai1-7/+12
2006-03-22[ALSA] make control.c suspend awareGiuliano Pochini1-3/+17
2006-03-06[PATCH] alsa: fix error paths in snd_ctl_elem_add()Takashi Iwai1-4/+2
2006-01-03[ALSA] dynamic minors (3/6): store device-specific object pointers dynamicallyClemens Ladisch1-4/+3
2006-01-03[ALSA] dynamic minors (1/6): store device type in struct snd_minorClemens Ladisch1-8/+3
2006-01-03[ALSA] Add error messagesTakashi Iwai1-2/+6
2006-01-03[ALSA] Decentralize PM controlTakashi Iwai1-43/+1
2006-01-03[ALSA] Remove xxx_t typedefs: ControlsTakashi Iwai1-126/+148
2005-11-04[ALSA] Remove snd_runtime_check() macroTakashi Iwai1-9/+9
2005-09-12[ALSA] Replace with kzalloc() - core stuffTakashi Iwai1-6/+6
2005-06-22[ALSA] Add const prefixTakashi Iwai1-1/+1
2005-05-29[ALSA] Suppress debug messageTakashi Iwai1-1/+1
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+1375