ALSA: pcm: tracepoints for refining PCM parameters
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 6 Jun 2017 23:46:43 +0000 (08:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Jun 2017 08:48:56 +0000 (10:48 +0200)
commitbe4e31dab0e14c1f6fa5c03b33056058b93316e2
treeb959f6ae7e69de8948fa1c2536d6aea6bd2a57ed
parentd7f910bfedd863d13ea320030fe98e42d0938ed5
ALSA: pcm: tracepoints for refining PCM parameters

When working for devices which support configurable modes for its data
transmission or which consists of several components, developers are
likely to use rules of parameters of PCM substream. However, there's no
infrastructure to assist their work.

In old days, ALSA PCM core got a local 'RULES_DEBUG' macro to debug
refinement of parameters for PCM substream. Although this is merely a
makeshift. With some modifications, we get the infrastructure.

This commit is for the purpose. Refinement of mask/interval type of
PCM parameters is probed as tracepoint events as 'hw_mask_param' and
'hw_interval_param' on existent 'snd_pcm' subsystem.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/Makefile
sound/core/pcm_native.c
sound/core/pcm_param_trace.h [new file with mode: 0644]