aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/aloop.c
Commit message (Collapse)AuthorAgeFilesLines
* remove compat from include, get new scripts workingWolfgang Wiedmeyer2015-10-231-8/+12
| | | | | further update code, especially sound remove initramfs files for galaxys2 and d710 and a busybox binary
* ALSA: aloop - add locking to timer accessOmair Mohammed Abdullah2012-10-131-0/+6
| | | | | | | | | | | | | | | | | | | commit d4f1e48bd11e3df6a26811f7a1f06c4225d92f7d upstream. When the loopback timer handler is running, calling del_timer() (for STOP trigger) will not wait for the handler to complete before deactivating the timer. The timer gets rescheduled in the handler as usual. Then a subsequent START trigger will try to start the timer using add_timer() with a timer pending leading to a kernel panic. Serialize the calls to add_timer() and del_timer() using a spin lock to avoid this. Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ALSA: aloop - Fix possible IRQ lock inversionTakashi Iwai2011-03-181-10/+9
| | | | | | | | | | loopback_pos_update() can be called in the timer callback, thus the lock held should be irq-safe. Otherwise you'll get AB/BA deadlock together with substream->self_group.lock. Reported-and-tested-by: Knut Petersen <Knut_Petersen@t-online.de> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: snd-aloop - add pause supportJaroslav Kysela2010-10-201-5/+22
| | | | Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop - fix locking issues (running flag updates)Jaroslav Kysela2010-10-201-13/+19
| | | | | | | On SMP machines, the cable->running update must be atomic, otherwise stream is not started correctly sometimes. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop: add cable#0 and cable#1 files to proc card treeJaroslav Kysela2010-10-181-0/+84
| | | | | | Show some useful runtime information using procfs. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop - fix issue in the timer start functionJaroslav Kysela2010-10-141-1/+7
| | | | | | | | | | In some circumstances (the rate shift value was changed), the irq_pos value may be higher than the fraction value in the timer start function. Check for it. Also, to avoid value overflow, decrease maximum period size. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop: Fix hw_params restrictions and checkingJaroslav Kysela2010-10-111-18/+106
| | | | | | | | This patch fixes the hw_params restrictions when first (or playback) stream sets the final hardware parameters. Also, fix the hw_params checking in the trigger callback. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop - fix "PCM Slave Active" element read valueJaroslav Kysela2010-10-021-1/+1
| | | | | | Simple coding fix. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop - fix capture buffer silenceJaroslav Kysela2010-09-301-2/+4
| | | | | | | In a special case, some old samples are left in the capture ring buffer. Fix it. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: snd-aloop - fix the "PCM Playback Channels" kcontrolJaroslav Kysela2010-09-151-1/+1
| | | | | | Obvious copy-and-paste error. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* ALSA: introduce the snd-aloop module for the PCM loopbackJaroslav Kysela2010-08-091-0/+1055
The snd-aloop module allows redirecting of the PCM playback in the kernel back to the user space using the standard ALSA PCM capture API. The module also allows time synchronization with another timing source and notifications of playback stream parameter changes. Signed-off-by: Jaroslav Kysela <perex@perex.cz>