summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release v1.2.2v1.2.2Jaroslav Kysela2020-02-191-1/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* github build.yml: cosmetic changesJaroslav Kysela2020-02-181-3/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* alsa.m4: another fix to not link all binaries with -latopologyJaroslav Kysela2020-02-181-0/+2
| | | | | | Preserve LIBS when the -latopology is tested. It's added later. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* README.md: add build status badgeJaroslav Kysela2020-02-181-0/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* github: create test workflow for fedora and ubuntuJaroslav Kysela2020-02-181-0/+97
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* do not set close-on-exec flag on descriptor if it was already setRolf Eike Beer2020-02-111-0/+2
| | | | | | | There is no need to set this again if O_CLOEXEC is supported. Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: parser - add error message to verb_dev_list_add()Jaroslav Kysela2020-02-111-0/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* uapi: Sync with 5.6 kernel ABITakashi Iwai2020-02-107-131/+235
| | | | | | | This is a sync with 5.6-rc1 kernel headers. The copy is performed from the sanitized headers installed via make headers_install. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: Drop SNDRV_CTL_ELEM_ACCESS_TIMESTAMP accessTakashi Iwai2020-02-101-1/+0
| | | | | | | | SNDRV_CTL_ELEM_ACCESS_TIMESTAMP is removed from 5.6 kernel ABI as the ctl timestamp field has been never used and deprecated. Drop the corresponding access from the topology code, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* control: Remove access to the deprecated dimen fieldsTakashi Iwai2020-02-101-4/+20
| | | | | | | | | | | The dimen fields of control element has been deprecated, and it's finally dropped in kernel 5.6 ABI definition. Remove the corresponding accesses in alsa-lib code. As of this patch, it's disabled via ifdef, just to be sure. The disabled code should be removed in a later stage as a cleanup. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ucm: fill missing device entries (conflicting / supported)Jaroslav Kysela2020-02-073-1/+75
| | | | | | | It is not necessary to maintain this information in sync in the configuration files. Fill the missing entries to the complementary devices. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: implement RenameDevice and RemoveDevice verb managementJaroslav Kysela2020-02-073-13/+254
| | | | | | | | | | With the conditionals, it may be useful to define the devices in the included configuration files. To satisfy the specification requirements (device naming) those device names might require to be renamed or deleted wrong references from the conflicting or supported lists. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: the ucm2/ subdirectory is driver name basedJaroslav Kysela2020-02-031-5/+7
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: parser - use correct filename in parser_master_file()Jaroslav Kysela2020-02-031-3/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* configure.ac: remove an unnecessary libtool fixTanu Kaskinen2020-01-241-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This code was added in commit 75d393a563efb578c79364a277087c6326267f52 without explaining why. I assume it was a mistake, since it looks like the libtool problem should have gone away a long time ago. The referenced wiki page https://wiki.debian.org/RpathIssue says: Since libtool 1.5.2 (released 2004-01-25), on Linux libtool no longer sets RPATH for any directories in the dynamic linker search path, so this should no longer be an issue unless upstream used a really old version of libtool when creating their distribution tarball. This code caused problems in OpenEmbedded, where the libtool script is named "x86_64-oe-linux-libtool" or similar rather than just "libtool", so the sed command failed with a file not found error. Rather than adapting the code to OpenEmbedded's peculiarities, it seems best to just remove the unnecessary code altogether. Note: The rpath is set (hardcoded) for 'make' but it is corrected for 'make install' by libtool. Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: parser - cosmetic fixes in the commentsJaroslav Kysela2020-01-171-32/+31
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: remove MAX_FILE definition and use correct PATH_MAXJaroslav Kysela2020-01-152-2/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: remove MAX_FILE definition and use correct PATH_MAXJaroslav Kysela2020-01-152-4/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: split conf_file_name and conf_dir_nameJaroslav Kysela2020-01-155-17/+37
| | | | | | | With ucm2, the file name might differ from the directory name. Also, allocate those fields. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ucm: fix the configuration directory (longname) for ucm2Jaroslav Kysela2020-01-151-1/+3
| | | | | | | The new ucm2 expects that the longname directory is shared with the driver directory. Fix that for 'Syntax 2'. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Quote strings containing [ or ] when saving an alsa configBertware2020-01-131-0/+2
| | | | | Signed-off-by: Bert Marcelis <bert.marcelis@outlook.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* mixer: Fix memory leak for more than 16 file descriptor caseDavid Fries2020-01-071-1/+1
| | | | | | Signed-off-by: David Fries <David@Fries.net> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: cosmetic changes (functions)Jaroslav Kysela2020-01-035-21/+24
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: tplg_dbg() cleanupsJaroslav Kysela2020-01-037-85/+91
| | | | | | - remove newline at the end Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: unify the log mechanismJaroslav Kysela2020-01-039-116/+138
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: move the elem->list delete to tplg_elem_free()Jaroslav Kysela2020-01-031-1/+2
| | | | | | | | The tplg_elem_free() is called in the error path from many places and it is expected that the element object will be unregistered from the tplg structure, too. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: implement snd_tplg_decodeJaroslav Kysela2020-01-0311-139/+1727
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: fix the wrong memory access (object realloc)Jaroslav Kysela2020-01-031-2/+3
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: fix the ops parser (accept integer/hexa values)Jaroslav Kysela2020-01-031-11/+25
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: fix the TPLG_DEBUG compilationJaroslav Kysela2020-01-033-3/+6
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: implement shorter hexa uuid 00:00 parserJaroslav Kysela2020-01-031-6/+31
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: fix the unitialized tuplesJaroslav Kysela2020-01-031-0/+1
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: dapm - fix the SNDERR() - UndefinedJaroslav Kysela2020-01-031-2/+2
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: cleanup the SNDERR() callsJaroslav Kysela2020-01-038-112/+99
| | | | | | | - remove the wrong new lines - remove error/warning prefixes (error is error) Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add snd_tplg_version() functionJaroslav Kysela2020-01-032-0/+11
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add snd_tplg_create() with flagsJaroslav Kysela2020-01-034-2/+24
| | | | | | | Add SND_TPLG_CREATE_VERBOSE and SND_TPLG_CREATE_DAPM_NOSORT flags for the special operations. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add snd_tplg_save()Jaroslav Kysela2020-01-0314-257/+2162
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add parser to the tplg_tableJaroslav Kysela2020-01-033-81/+47
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: move the topology element table from builder to elemJaroslav Kysela2020-01-034-153/+199
| | | | | | | | - use offsetof() for the lists - add other info to describe the elements - use the table in the element constructor Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add snd_tplg_load() remove snd_tplg_build_bin_file()Jaroslav Kysela2020-01-032-71/+41
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: parser - recode tplg_parse_config()Jaroslav Kysela2020-01-032-184/+108
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add binary output from the builderJaroslav Kysela2020-01-032-14/+87
| | | | | | | - snd_tplg_build_bin() - snd_tplg_build_bin_file() Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: convert builder to use the mallocated memoryJaroslav Kysela2020-01-033-64/+103
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: add tplg_get_unsigned() functionJaroslav Kysela2020-01-034-25/+55
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: fix tplg_get_integer() - handle errno == ERANGEJaroslav Kysela2020-01-031-1/+6
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: use snd_config_get_bool() instead own implementationJaroslav Kysela2020-01-034-28/+34
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* topology: avoid to use the atoi() directly when expectedJaroslav Kysela2020-01-039-133/+150
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* Update the attributes.m4 macro file from xineDavid Ward2020-01-031-13/+20
| | | | | | | | | | This file was imported from the xine project. Update it to the current revision, which resolves the "no AC_LANG_SOURCE call detected in body" warnings with Autoconf 2.68 or later. Cc: Diego Pettenò <flameeyes@gmail.com> Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* uapi: Move typedefs from uapi to sound/*Takashi Iwai2019-12-207-27/+31
| | | | | | For keeping uapi/*.h cleaner. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* type_compat: Add missing __s64 and __u64 definitions for non-LinuxTakashi Iwai2019-12-201-0/+2
| | | | | | Just for the case without Linux-compatible definitions. Signed-off-by: Takashi Iwai <tiwai@suse.de>