Commit 8e7daf31 authored by Bixuan Cui's avatar Bixuan Cui Committed by Takashi Iwai

ALSA: oss: fix compile error when OSS_DEBUG is enabled

Fix compile error when OSS_DEBUG is enabled:
    sound/core/oss/pcm_oss.c: In function 'snd_pcm_oss_set_trigger':
    sound/core/oss/pcm_oss.c:2055:10: error: 'substream' undeclared (first
    use in this function); did you mean 'csubstream'?
      pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger);
              ^

Fixes: 61efcee8 ("ALSA: oss: Use standard printk helpers")
Signed-off-by: default avatarBixuan Cui <cuibixuan@linux.alibaba.com>
Link: https://lore.kernel.org/r/1638349134-110369-1-git-send-email-cuibixuan@linux.alibaba.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 322fa431
...@@ -2052,7 +2052,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr ...@@ -2052,7 +2052,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr
int err, cmd; int err, cmd;
#ifdef OSS_DEBUG #ifdef OSS_DEBUG
pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger); pr_debug("pcm_oss: trigger = 0x%x\n", trigger);
#endif #endif
psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment