summaryrefslogtreecommitdiffstats
path: root/sound/core
Commit message (Collapse)AuthorAgeFilesLines
* [ALSA] sound/core Fix the sparse warning 'implicit cast to nocast type'Victor Fusco2005-07-285-10/+14
| | | | | | | | | | | Memalloc module,ALSA Core,Instrument layer Fix the sparse warning 'implicit cast to nocast type' File/Subsystem:sound/core Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] seq-midi - silently ignore non-MIDI eventsClemens Ladisch2005-07-281-10/+6
| | | | | | | | | ALSA sequencer When non-MIDI sequencer events are sent to a RawMIDI port, silently ignore them instead of returning a confusing error code which may upset the sequencer and abort the current write() to /dev/snd/seq. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] typo-fix and snd_assert()-expression-splitHenrik Kretzschmar2005-07-281-2/+3
| | | | | | | | | | ALSA Core This patch corrects a typo in the kerneldocs of snd_info_get_str(). It also splits the expressions of snd_assert() in snd_info_unregister() into one-expression-per-call for better debugging. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Fix dependency of GUS driverTakashi Iwai2005-07-281-1/+1
| | | | | | | ALSA sequencer Add the missing snd-seq-midi-emul to SND_GUS_SYNTH list. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Fix two typos and changes on snd_assert()Henrik Kretzschmar2005-07-281-6/+9
| | | | | | | | | | | ALSA Core Both typos were in the kerneldocs. I splitted the snd_assert() calls in one-expression-per-call for better debugging. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [PATCH] clean up inline static vs static inlineJesper Juhl2005-07-273-6/+6
| | | | | | | | | | | | | | | `gcc -W' likes to complain if the static keyword is not at the beginning of the declaration. This patch fixes all remaining occurrences of "inline static" up with "static inline" in the entire kernel tree (140 occurrences in 47 files). While making this change I came across a few lines with trailing whitespace that I also fixed up, I have also added or removed a blank line or two here and there, but there are no functional changes in the patch. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] create a kstrdup library functionPaulo Marques2005-06-237-33/+25
| | | | | | | | | | | | | | | | This patch creates a new kstrdup library function and changes the "local" implementations in several places to use this function. Most of the changes come from the sound and net subsystems. The sound part had already been acknowledged by Takashi Iwai and the net part by David S. Miller. I left UML alone for now because I would need more time to read the code carefully before making changes there. Signed-off-by: Paulo Marques <pmarques@grupopie.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [ALSA] Add const prefixTakashi Iwai2005-06-221-1/+1
| | | | | | | Control Midlevel Add const prefix to snd_kcontrol_new_t pointer for better protection. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] OSS PCM emulation - The 2nd final fix for SNDCTL_DSP_GETOPTR problemJaroslav Kysela2005-06-221-4/+4
| | | | | | | | ALSA<-OSS emulation The problem was negative/wrong result (info.bytes) in a specific condition at playback startup. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] OSS PCM emulation - The final fix for SNDCTL_DSP_GETOPTR problemJaroslav Kysela2005-06-221-2/+5
| | | | | | | | ALSA<-OSS emulation The problem was negative result (info.bytes) in a specific condition at playback startup. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] Fix races between PCM drain and other opsTakashi Iwai2005-06-221-34/+36
| | | | | | | PCM Midlevel Fix semaphore races between PCM drain and other ops. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Add write support to snd-page-alloc proc fileTakashi Iwai2005-06-221-92/+109
| | | | | | | | Documentation,Memalloc module,RME HDSP driver,RME9652 driver Add the write support to snd-page-alloc proc file for buffer pre-allocation. Removed the pre-allocation codes via module options. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Remove redundant NULL checks before kfreeJesper Juhl2005-06-223-28/+13
| | | | | | | | | | | | | | | | Timer Midlevel,ALSA sequencer,ALSA<-OSS sequencer,Digigram VX core I2C tea6330t,GUS Library,VIA82xx driver,VIA82xx-modem driver CA0106 driver,CS46xx driver,EMU10K1/EMU10K2 driver,YMFPCI driver Digigram VX Pocket driver,Common EMU synth,USB generic driver,USB USX2Y Checking a pointer for NULL before calling kfree() on it is redundant, kfree() deals with NULL pointers just fine. This patch removes such checks from sound/ This patch also makes another, but closely related, change. It avoids casting pointers about to be kfree()'ed. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitJaroslav Kysela2005-06-211-3/+3
|\
| * [PATCH] class: convert sound/* to use the new class api instead of class_simplegregkh@suse.de2005-06-201-3/+3
| | | | | | | | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | [ALSA] Fix compilation on 32bit archTakashi Iwai2005-05-291-1/+10
| | | | | | | | | | | | | | ALSA<-OSS emulation Fix the division with int64 for 32bit architectures. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] alsa-oss - 2nd - improved readabilityJaroslav Kysela2005-05-291-2/+2
| | | | | | | | | | | | | | ALSA<-OSS emulation Use 'long' for byte counters in snd_pcm_oss_bytes() snd_pcm_alsa_bytes(). Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* | [ALSA] alsa-oss - improve readability of snd_pcm_oss_bytes() functionJaroslav Kysela2005-05-291-3/+3
| | | | | | | | | | | | | | | | ALSA<-OSS emulation Added bytes variable and do not use the frames argument as a temporaly storage for the byte counter. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* | [ALSA] Reverted last patch for SNDCTL_DSP_GETOPTR fix & possible overflow fixJaroslav Kysela2005-05-291-4/+3
| | | | | | | | | | | | | | | | | | ALSA<-OSS emulation This reverts the last patch which wrongly mixes bytes and frames. The real culprit might be the 32-bit overflow, so the return expression uses 64-bit values now in snd_pcm_oss_bytes(). Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* | [ALSA] pcm_oss - fix SNDCTL_DSP_GETOPTR not working correctlyRoger Mach2005-05-291-2/+3
| | | | | | | | | | | | | | | | | | | | ALSA<-OSS emulation This patch changes snd_pcm_oss_bytes() by adding a local variable for the frames -> bytes conversion, which means that the frame count is no longer corrupted by this conversion. Signed-off-by: Roger Mach <bigmach@us.ibm.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* | [ALSA] Make docproc happyTakashi Iwai2005-05-291-3/+3
| | | | | | | | | | | | | | PCM Midlevel Make docproc happy by moving '#if 0' before comments. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] sound/core/: possible cleanupsAdrian Bunk2005-05-2911-43/+42
| | | | | | | | | | | | | | | | | | | | | | PCM Midlevel,ALSA Core,Timer Midlevel,ALSA sequencer,Virtual Midi This patch contains the following possible cleanups: - make needlessly global code static - #if 0 the following unused global functions - remove the following unneeded EXPORT_SYMBOL's Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] Export missing snd_pcm_format_*()Takashi Iwai2005-05-292-16/+1
| | | | | | | | | | | | | | | | | | | | PCM Midlevel Export snd_pcm_format_size(). This function is used by some out-of-kernel drivers. Make snd_pcm_format_cpu_endian() macro for optimization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] fixed PAUSE ioctl for user space interfaceJaroslav Kysela2005-05-291-1/+1
| | | | | | | | | | | | | | Timer Midlevel - fixed traditional cut-n-paste error Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* | [ALSA] Change some timer ioctls due to conflictionTakashi Iwai2005-05-292-0/+15
| | | | | | | | | | | | | | | | Timer Midlevel,ALSA Core Change values of some timer ioctls to avoid confliction with FIO* ioctls. The protocol version is increased to indicate this change. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] Add missing PAUSE ioctlTakashi Iwai2005-05-292-0/+13
| | | | | | | | | | | | | | Timer Midlevel Added the missing implemenation of TIMER PAUSE ioctl. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] Suppress debug messageTakashi Iwai2005-05-291-1/+1
| | | | | | | | | | | | | | Control Midlevel Suppress 'unknown ioctl' debug message (replaced with snd_printdd). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] Fix capture on OSS emulationTakashi Iwai2005-05-291-1/+2
| | | | | | | | | | | | | | | | ALSA<-OSS emulation Fix the noisy capture on some hardwares over OSS emulation. Change back to avail_min = period_size for capture direction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] Fix permissions in some /proc filesTakashi Iwai2005-05-292-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | PCM Midlevel,CA0106 driver,EMU10K1/EMU10K2 driver Fix by Guillaume Chazarain <guichaz@yahoo.fr>: Some tunables in /proc have a write() function, but as their permission does not reflect it, it can be confusing to the user. So here is a patch that corrects the mode of those files. Note that I have only tested the 'xrun_debug' entry. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] virmidi - fix ioctl parameter passing when setting client nameClemens Ladisch2005-05-291-1/+1
| | | | | | | | | | | | | | | | | | ALSA sequencer The last change to reduce stack usage did not adjust the parameter to SNDRV_SEQ_IOCTL_SET_CLIENT_IOCTL which resulted in passing the address of the pointer instead of the structure. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* | [ALSA] virmidi - fix ioctl parameter passing when creating seq portClemens Ladisch2005-05-291-1/+1
| | | | | | | | | | | | | | | | | | ALSA sequencer The last change to reduce stack usage did not adjust the parameter to SNDRV_SEQ_IOCTL_CREATE_PORT which resulted in passing the address of the pointer instead of the structure. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* | [ALSA] timer - added tread semaphoreJaroslav Kysela2005-05-291-20/+37
| | | | | | | | | | | | | | Timer Midlevel Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* | [ALSA] Fix memory leakTakashi Iwai2005-05-291-0/+2
| | | | | | | | | | | | | | ALSA sequencer Fixed memory leak by the last change of stack reduction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | [ALSA] kill dead codeAdrian Bunk2005-05-291-4/+1
|/ | | | | | | | | | | ALSA<-OSS emulation The Coverity checker found this obviously dead code. I'm not sure which of the if (plugin == NULL) is correct - this patch removes the one that couldn't be true. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [PATCH] fix pm_message_t vs. u32 in alsaPavel Machek2005-04-161-2/+2
| | | | | | | | | | I thought I'm done with fixing u32 vs. pm_message_t ... unfortunately that turned out not to be the case as Russel King pointed out. This fixes last few bits in alsa. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-1695-0/+43314
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
OpenPOWER on IntegriCloud