summaryrefslogtreecommitdiff
path: root/src/control/control_ext.c
Commit message (Collapse)AuthorAgeFilesLines
* pcm: add SND_CTL_EINTR open modeJaroslav Kysela2023-05-031-1/+1
| | | | | | | | Add possibility to return -EINTR instead waiting for the event. The applications may want to handle -EINTR condition themselves. BugLink: https://github.com/alsa-project/alsa-lib/issues/228 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* control ext: fix the default .rawmidi_next_device callbackJaroslav Kysela2018-03-271-1/+1
| | | | | | The previous default settings caused an endless loop. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Change FSF address (Franklin Street)Jaroslav Kysela2017-11-141-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ctl: ext: Fail with error code if snd_ctl_ext_callback::read_event() ↵Timo Wischer2017-10-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | callback is not defined The snd_ctl_ext_callback::read_event() callback is only optional if no poll descriptor was given via snd_ctl_ext_t::poll_fd or snd_ctl_ext_callback::snd_ctl_ext_poll_descriptors(). If a poll descriptor is given the snd_ctl_ext_callback::read_event() callback has also to be defined because there is no minigful default behavior. This callback will be called when ever the poll() on the file descriptor indicates that there is an event pending. Therefore returning a 0 which indicates that there is no event makes no sense. Signed-off-by: Timo Wischer <twischer@de.adit-jv.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Fix the binary compatibility of ext-ctl plugin with protocol 1.0.0Takashi Iwai2012-06-251-1/+2
| | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* control_external: Add ability to specify TLV data.Dylan Reid2012-04-161-0/+46
| | | | | | | | | | | | | | | | Allow external control plugins to provide TLV data. This allows user-space pcms to specify dB ranges for controls. This follows the same model as the ALSA drivers for accessing the data. The code is based on that implementation. The control can provide static data or a callback. The data is accessed or modified in the new snd_ctl_ext_elem_tlv callback. Rev bump the protocol version to enable checking if an external control supports TLV. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* fix doc errorsClemens Ladisch2009-08-041-1/+1
| | | | | | Fix various errors in the documentation that make doxygen complain. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Change numid properly with external ctl pluginsTakashi Iwai2009-02-171-3/+15
| | | | | | | | | | | | So far, external ctl plugins don't change numid. Some apps expect the non-zero numids with list, and the plugin doesn't work for them. This patch adds a fake numid to each control based on the offset number. The lookup with non-zero numid is supported but is pretty inefficient. Eventually the plugin side may be optimized to look at the numid, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Make all the remaining ops structure constants.Diego E. 'Flameeyes' Pettenò2008-11-211-1/+1
| | | | | | | This excludes the mixer for now since it requires a change to the public headers. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
* Fix cast warningTakashi Iwai2008-06-061-1/+2
| | | | | | | int64_t and long long isn't strictly identical, and thus gcc gives us a heartful warning. Suppress the warning by a pointer cast. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Add missing control_ext entryTakashi Iwai2007-03-281-0/+5
| | | | Added missing entry for control_ext.c for static symbol table.
* revert back one diff from changeset 2219 (fix various warnings)Jaroslav Kysela2006-10-061-3/+3
|
* fix various warningsJaroslav Kysela2006-10-061-4/+4
| | | | See also ALSA bug#1689
* Fix compile warningsTakashi Iwai2006-02-201-3/+10
| | | | Fix compile warnings on 64bit architectures.
* Add detailed documentation for external control plugin SDKTakashi Iwai2005-06-131-0/+207
| | | | Added the detailed documentation for external control plugin SDK.
* Add external control plugin SDKTakashi Iwai2005-06-091-0/+459
Added external control plugin SDK.