2005-04-17 00:20:36 +02:00
|
|
|
#
|
|
|
|
# Makefile for ALSA
|
2007-10-15 09:50:19 +02:00
|
|
|
# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz>
|
2005-04-17 00:20:36 +02:00
|
|
|
#
|
|
|
|
|
2015-04-23 10:34:34 +02:00
|
|
|
snd-y := sound.o init.o memory.o control.o misc.o device.o
|
2015-05-27 13:45:45 +02:00
|
|
|
ifneq ($(CONFIG_SND_PROC_FS),)
|
2015-04-23 10:34:34 +02:00
|
|
|
snd-y += info.o
|
|
|
|
snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
|
|
|
|
endif
|
2007-07-26 19:10:47 +02:00
|
|
|
snd-$(CONFIG_ISA_DMA_API) += isadma.o
|
2015-04-23 10:34:34 +02:00
|
|
|
snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
|
2008-02-18 13:03:13 +01:00
|
|
|
snd-$(CONFIG_SND_VMASTER) += vmaster.o
|
2015-04-27 15:20:56 +02:00
|
|
|
snd-$(CONFIG_SND_JACK) += ctljack.o jack.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2015-10-16 11:57:46 +02:00
|
|
|
snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \
|
2014-01-09 07:48:12 +01:00
|
|
|
pcm_memory.o memalloc.o
|
2015-10-16 11:57:46 +02:00
|
|
|
snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o
|
2014-01-09 07:48:12 +01:00
|
|
|
snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
|
2015-05-09 12:26:42 +02:00
|
|
|
snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
|
2015-05-09 12:26:47 +02:00
|
|
|
snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
ALSA: pcm: Replace PCM hwptr tracking with tracepoints
ALSA PCM core has a mechanism tracking the PCM hwptr updates for
analyzing XRUNs. But its log is limited (up to 10) and its log output
is a kernel message, which is hard to handle.
In this patch, the hwptr logging is moved to the tracing
infrastructure instead of its own. Not only the hwptr updates but
also XRUN and hwptr errors are recorded on the trace log, so that user
can see such events at the exact timing.
The new "snd_pcm" entry will appear in the tracing events:
# ls -F /sys/kernel/debug/tracing/events/snd_pcm
enable filter hw_ptr_error/ hwptr/ xrun/
The hwptr is for the regular hwptr update events. An event trace
looks like:
aplay-26187 [004] d..3 4012.834761: hwptr: pcmC0D0p/sub0: POS: pos=488, old=0, base=0, period=1024, buf=16384
"POS" shows the hwptr update by the explicit position update call and
"IRQ" means the hwptr update by the interrupt,
i.e. snd_pcm_period_elapsed() call. The "pos" is the passed
ring-buffer offset by the caller, "old" is the previous hwptr, "base"
is the hwptr base position, "period" and "buf" are period- and
buffer-size of the target PCM substream.
(Note that the hwptr position displayed here isn't the ring-buffer
offset. It increments up to the PCM position boundary.)
The XRUN event appears similarly, but without "pos" field.
The hwptr error events appear with the PCM identifier and its reason
string, such as "Lost interrupt?".
The XRUN and hwptr error reports on kernel message are still left, can
be turned on/off via xrun_debug proc like before. But the bit 3, 4, 5
and 6 bits of xrun_debug proc are dropped by this patch. Also, along
with the change, the message strings have been reformatted to be a bit
more consistent.
Last but not least, the hwptr reporting is enabled only when
CONFIG_SND_PCM_XRUN_DEBUG is set.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-11-04 12:45:59 +01:00
|
|
|
# for trace-points
|
|
|
|
CFLAGS_pcm_lib.o := -I$(src)
|
|
|
|
|
2013-08-12 10:42:37 +02:00
|
|
|
snd-pcm-dmaengine-objs := pcm_dmaengine.o
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
snd-rawmidi-objs := rawmidi.o
|
|
|
|
snd-timer-objs := timer.o
|
2008-10-24 18:16:50 +02:00
|
|
|
snd-hrtimer-objs := hrtimer.o
|
2005-04-17 00:20:36 +02:00
|
|
|
snd-rtctimer-objs := rtctimer.o
|
|
|
|
snd-hwdep-objs := hwdep.o
|
|
|
|
|
2011-12-23 06:06:40 +01:00
|
|
|
snd-compress-objs := compress_offload.o
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_SND) += snd.o
|
|
|
|
obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
|
|
|
|
obj-$(CONFIG_SND_TIMER) += snd-timer.o
|
2008-10-24 18:16:50 +02:00
|
|
|
obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
|
2014-01-09 07:48:12 +01:00
|
|
|
obj-$(CONFIG_SND_PCM) += snd-pcm.o
|
2013-08-12 10:42:37 +02:00
|
|
|
obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_SND_RAWMIDI) += snd-rawmidi.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_SND_OSSEMUL) += oss/
|
|
|
|
obj-$(CONFIG_SND_SEQUENCER) += seq/
|
2011-12-23 06:06:40 +01:00
|
|
|
|
|
|
|
obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += snd-compress.o
|