]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41fdd55e15029dd0c4ea771a608eb086dc29e199
treeb959f6ae7e69de8948fa1c2536d6aea6bd2a57ed
parente5ec210359bf14f597469bf61b3f096be2b34678
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]