summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-05ucm: improve jack configuration documentationHEADmasterTanu Kaskinen1-6/+18
Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-05ucm: reformat snd_use_case_get() docTanu Kaskinen1-46/+65
Doxygen doesn't preserve formatting that relies only on indentation. This fixes it by using lists more liberally. There are probably more places to fix than just snd_use_case_get_list(), but I only have motivation for fixing this function's documentation formatting (the next patch will add some more content to the function's documentation). Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-05conf/ucm: Add Makefile.am for broadwell-rt286 ucm configTakashi Iwai3-1/+6
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-05conf/ucm: broadwell-rt286: add ucm configBard Liao2-0/+136
The configure should apply to all Broadwell-rt286 boards from Intel, like Wilson Beach SDS Ultrabook. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-05ucm: document some standard valuesLu, Han1-0/+4
add standard value JackDev, JackControl and JackHWMute for speaker mute control on jack insertion. These values will be applied on pulseaudio. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-26Release v1.0.29v1.0.29Jaroslav Kysela1-1/+1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2015-02-17ucm: fix some variable constness issuesTanu Kaskinen2-16/+18
I submitted earlier a patch that made the value parameter of snd_use_case_get() non-const, but as that changed the public API, the patch couldn't be accepted. This is the same patch, modifying the internal code so that there are fewer issues with constness, but the public API is left alone (a comment was added to the function documentation, though, so that hopefully nobody else will try to fix the same unfixable problem). Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-17ucm: fix the logic of choosing the default cdevTanu Kaskinen1-11/+23
If the cdev has not been configured explicitly, use the PlaybackCTL or CaptureCTL value if one of them is set. If neither are set, or if both are set to different values, then there's no sensible default, so executing the sequence should fail. The previous code probably tried to implement this logic, but it was buggy. Also use more descriptive variable names than "cdev1" and "cdev2". Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-17ucm: fix incorrect error code signTanu Kaskinen1-2/+2
Reported-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-16.gitignore: add test-driverTanu Kaskinen1-0/+1
Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-11ucm: fix variable mixupTanu Kaskinen1-1/+1
I assume the intention was to use cdev1 for PlaybackCTL and cdev2 for CaptureCTL, but cdev1 was being used for both and cdev2 was not used for anything. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-09control: complement comment for subscribe APITakashi Sakamoto1-1/+1
When minus value is given as a parameter, the API returns whether the caller has already subscribed or not. This commit adds a comment about this so as better documentation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-01conf: add support for USB AudioSport Quattro (tm)Alexander E. Patrakov1-0/+1
This patch resulted from discussion with redlion_ on #alsa IRC channel on Freenode. 4-channel playback now works. 4-channel capture works too, but not simultaneously with playback (hardware limitation). Alsa-info before the fix: http://www.alsa-project.org/db/?f=a3673622074b88a1abf4ccc6e7f37d0b5b72f34a Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-28Remove unused hostname resolution in shm plugins and aserverTakashi Iwai5-175/+6
PCM and control shm plugins and aserver have some codes to resolve the host address and check whether it's a local host although the given address is never used. In addition, the code contains gethostbyname() that is known to be obsoleted. So, let's get rid of all these unused codes. The host configuration item is still accepted (but just ignored) for keeping the compatibility. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-23ucm: add binary configure file parseLu, Han3-3/+73
with cset command, UCM set kcontrol parameters directly: cset "name='<KCONTROL_NAME>' 1<,2,3,...>" This patch enables UCM to set kcontrol with parameters from configure file: cset-bin-file "name='<KCONTROL_NAME>' <path/to/file>" where "cset-bin-file" is a newly added keyword alongside of "cset", to indicate cset with binary data in file. The binary data in file is parameter for audio DSPs, and it's just passed by UCM/ALSA as raw data. The data type of parameter elements must be byte, and the count must matches driver definition. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-19conf/ucm: GoogleNyan: Add configurationTomeu Vizoso5-1/+88
Taken from the ChromeOS sources, this configuration should apply to all Nyan boards from Google, so far HP Chromebook 14 (nyan-blaze) and Acer Chromebook 13 (nyan-big). Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-14autotools: fix ucm partial buildMatthieu Crapet1-2/+6
When --disable-ucm configure option is specified, don't install related include file. Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-14control: enable octal and hexadecimal parseLu, Han1-2/+2
Use zero-base for strtol(), so get_integer() and get_integer64() can parse decimal, octal and hexadecimal data from input string. Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-12-31pcm: fix buffer overflow in snd_pcm_chmap_print()Anssi Hannula1-1/+1
The size argument is wrong for one of the snprintf() calls in snd_pcm_chmap_print(), allowing an overflow to happen (the user-provided buffer may be written data up to 2x its actual size). Seen in an user report here: http://trac.kodi.tv/ticket/15641 Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-12-10hwdep: add OXFW driver supportTakashi Sakamoto2-2/+4
Linux 3.19 newly support this driver. By hardware dependent interface, userspace applications can get hardware information, lock/unlock kernel streaming and receive lock status event. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-25pcm: Fix assorted tstamp_type bugs/omissions.Tim Cussins1-2/+3
Just a couple of quick fixes related to tstamp_type. - snd_pcm_sw_params(): copy tstamp_type field - snd_pcm_tstamp_type_name(): fix argument type - snd_pcm_dump_sw_setup(): fix dumping of tstamp_type field Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-21ucm: Fix uninitialized err in snd_use_case_set()Takashi Iwai1-2/+2
The compiler warns like: main.c:1664:9: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] and actually there are slight code paths that slip. This patch adds the proper initializations to 0 to return the success code in these code paths. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-21mixer: Fix unused parameter warningsTakashi Iwai1-3/+3
mixer_simple.h:35:64: warning: unused parameter 'mixer' [-Wunused-parameter] static inline int snd_mixer_simple_basic_register(snd_mixer_t *mixer, ^ mixer_simple.h:36:40: warning: unused parameter 'options' [-Wunused-parameter] struct snd_mixer_selem_regopt *options, ^ mixer_simple.h:37:29: warning: unused parameter 'classp' [-Wunused-parameter] snd_mixer_class_t **classp) ^ Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-21mixer: Fix inclusion of config.hTakashi Iwai2-1/+2
config.h wasn't read or read too late in some files in src/mixer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-21pcm: Fix DSD sample format endianess and add big-endian formatJussi Laako4-5/+26
This patch adds big-endian DSD sample format and fixes return value of DSD formats for snd_pcm_format_little_endian(). Signed-off-by: Jussi Laako <jussi@sonarnerd.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-17USB-audio: Add five more cards to IEC958 blacklistDavid Henningsson1-0/+5
These devices do not have any IEC958 outputs, so prevent them from being opened. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-16dlmisc: Remove unused labelTakashi Iwai1-1/+0
Fix a compile warning dlmisc.c:329:2: warning: label 'unlock' defined but not used [-Wunused-label] Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-16snd_dlsym: only do versioning checks if built --with-versioningJohn Spencer1-0/+2
a combination of some of the following garbage collecting LD/CFLAGS -Os -g0 -fdata-sections -ffunction-sections -s -Wl,--gc-sections -fno-unwind-tables -fno-asynchronous-unwind-tables causes the symbol versioning marker symbols to be removed from BSS since they're otherwise unreferenced. this causes dlsym failing to find them which results in runtime breakage: $ alsamixer ALSA lib dlmisc.c:142:(snd_dlsym_verify) unable to verify version for symbol snd_config_hook_load ALSA lib conf.c:3328:(snd_config_hooks_call) symbol snd_config_hook_load is not defined inside (null) ALSA lib conf.c:3788:(snd_config_update_r) hooks failed, removing configuration cannot open mixer: No such device or address correct DSO: $ objdump -T libasound.so.2.strip | grep _snd_config_hook_load_dlsym_config_hook_001 001196bc g DO .bss 00000001 _snd_config_hook_load_dlsym_config_hook_001 incorrect DSO: $ objdump -T libs/libasound.so.2 | grep _snd_config_hook_load_dlsym_config_hook_001 00000000 g DO *ABS* 00000001 _snd_config_hook_load_dlsym_config_hook_001 since alsa was built with --without-versioning, doing those versioning checks at all is unnecessary and harmful and thus now disabled in this case. Signed-off-by: John Spencer <maillist-alsa@barfooze.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-06pcm: dmix: Don't ignore SND_TIMER_EVENT_MSTOPTakashi Iwai1-0/+1
When a slave PCM gets an error like XRUN, it stops and notifies with SND_TIMER_EVENT_MSTOP event. But the current code filters out this type and eventually hang due to the empty timer queue. The fix is to just add this event type to the filter bit mask. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-03snd_user_file: fix memory leakAndreas Schwab1-2/+3
Call wordfree if and only if wordfree returns zero or WRDE_NOSPACE Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-03USB-Audio: Add Scarlett 2i4 USB to S/PDIF blacklistPanu Matilainen1-0/+1
Like Scarlett 2i2, the 2i4 does not have any S/PDIF connections. Signed-off-by: Panu Matilainen <pmatilai@laiskiainen.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-10-07conf/ucm: PAZ00: add Toshiba AC100/Dynabook AZ new configzombah6-1/+155
Recent mainline kernels threat Toshiba AC100 audio hardware as hw:PAZ00 vs old hw:tegraalc5632. This patch adds config files for new hw name and include them to makefiles. Signed-off-by: zombah <zombah@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23mixer: Fix missing hctl handle free in snd_mixer_attach_hctl()Takashi Iwai1-1/+5
Yet another missing piece. Also, update the function document to warn about the behavior at error. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23pcm: return negative value in case of errorRenu Tyagi1-0/+1
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23control: return negative value in case of errorRenu Tyagi1-0/+1
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23conf: return negative value in case of errorRenu Tyagi1-0/+1
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23pcm_hooks: null check for hRenu Tyagi1-1/+2
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23socket: missing socket closeRenu Tyagi1-2/+7
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23simple_abst: null check for libRenu Tyagi1-0/+2
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23pcm_share: fixing missing mutex unlockRenu Tyagi1-0/+2
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23rawmidi: close handle hRenu Tyagi1-1/+4
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23sbase: fixed missing freeRenu Tyagi1-0/+1
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23pcm_file: fixed missing freeRenu Tyagi1-0/+2
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23mixer: fixed double freeRenu Tyagi1-3/+1
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-17hwdep: add missing declaration for snd_hwdep_poll_descriptors_count()Takashi Sakamoto1-0/+1
The alsa-lib has 'snd_hwdep_poll_descriptors_count()' but hwdep.h has no declaration for the function. No applications can call the function just by including the header. This commit adds a line to the file for this function. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-16pcm, rate: hw_avail must not be negative before starting the streamAlexander E. Patrakov1-1/+4
If it is, then it means most likely the driver problem, so we should return error immediately instead. Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-09-16pcm route: Fix the bad condition (always false)Jaroslav Kysela1-1/+1
2014-09-14Revert "pcm: rewindable, forwardable: don't return stale data"Jaroslav Kysela6-32/+0
This reverts commit 6db0fe495ef1db1fd8f0ed791996f834665a926b.
2014-09-13pcm, file: don't recurse in the rewindable and forwardable callbacksAlexander E. Patrakov1-2/+2
Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2014-09-13pcm: rewindable, forwardable: don't return stale dataAlexander E. Patrakov6-0/+32
The current behavior of snd_pcm_rewindable and snd_pcm_forwardable means that the returned value is only accurate to one period. Or maybe even meaningless if period interrupts are off. Fetch the up-to-date position of the hardware pointer, as that's what is wanted by callers. Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>