diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-09-13 19:00:05 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-13 12:03:15 +0200 |
commit | 0052b7dcf9d9ec6be4fc3fe815a2ceda623bb9d1 (patch) | |
tree | 77f72d8866c2384c0756e44a8ce2a164cf245cc9 /sound/core | |
parent | 29d28c5060023e661965c51c7e8f53bc9eb44fc4 (diff) | |
download | op-kernel-dev-0052b7dcf9d9ec6be4fc3fe815a2ceda623bb9d1.zip op-kernel-dev-0052b7dcf9d9ec6be4fc3fe815a2ceda623bb9d1.tar.gz |
ALSA: pcm: remove structure member of 'struct snd_pcm_hwptr_log *' type because this structure had been removed
This structure was added by 4d96eb255c53 ('ALSA: pcm_lib - add possibility
to log last 10 DMA ring buffer positions') to store PCM pointers
information of latest 10 pointer movements (=XRUN_LOG_CNT). When
CONFIG_SND_PCM_XRUN_DEBUG is configured, 'struct snd_pcm_runtime' has
'hwptr_log' member with a pointer to the structure. When calling
xrun_log() in pcm_lib.c, the structure was allocated to the pointer.
When calling snd_pcm_detach_substream() in pcm.c, the allocated pointer
is released.
In f5914908a5b7 ('ALSA: pcm: Replace PCM hwptr tracking with tracepoints'),
the pointer logging is replaced with using Linux Kernel Tracepoints. The
structure was also removed, while it's just declared. The member and kfree
still remains.
This commit removes the member and related codes. I think this was
overlooked because it brings no errors/warnings to C compilers.
Fixes: f5914908a5b7 ('ALSA: pcm: Replace PCM hwptr tracking with tracepoints')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 02bd969..308c9ec 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c @@ -1014,9 +1014,6 @@ void snd_pcm_detach_substream(struct snd_pcm_substream *substream) snd_free_pages((void*)runtime->control, PAGE_ALIGN(sizeof(struct snd_pcm_mmap_control))); kfree(runtime->hw_constraints.rules); -#ifdef CONFIG_SND_PCM_XRUN_DEBUG - kfree(runtime->hwptr_log); -#endif kfree(runtime); substream->runtime = NULL; put_pid(substream->pid); |