[alsa-devel] [PATCH 0/6] ALSA: pcm: check parameter on snd_pcm_running()

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Nov 9 03:11:11 CET 2017


Hi Takashi-san, Mark

snd_pcm_running() is using "substream" and "substream->runtime"
pointer, no check.
These patches adds its check in function,
and removes duplicate checks from each drivers.

Not super important, but can be cleanup

Kuninori Morimoto (6):
  ALSA: pcm: check parameter on snd_pcm_running()
  ALSA: pdaudiocf: remove unneeded check for snd_pcm_running()
  ASoC: dwc: remove unneeded check for snd_pcm_running()
  ASoC: omap-hdmi-audio: remove unneeded check for snd_pcm_running()
  ASoC: xtfpga-i2s: remove unneeded check for snd_pcm_running()
  ASoC: rsnd: remove unneeded check for snd_pcm_running()

 include/sound/pcm.h                    | 3 +++
 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c | 2 +-
 sound/soc/dwc/dwc-pcm.c                | 2 +-
 sound/soc/omap/omap-hdmi-audio.c       | 3 +--
 sound/soc/sh/rcar/core.c               | 5 +----
 sound/soc/xtensa/xtfpga-i2s.c          | 4 ++--
 6 files changed, 9 insertions(+), 10 deletions(-)

-- 
1.9.1



More information about the Alsa-devel mailing list