Skip to content

Commit bcd5334

Browse files
Bixuan Cuigregkh
authored andcommitted
ALSA: oss: fix compile error when OSS_DEBUG is enabled
[ Upstream commit 8e7daf3 ] 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: 61efcee ("ALSA: oss: Use standard printk helpers") Signed-off-by: Bixuan Cui <cuibixuan@linux.alibaba.com> Link: https://lore.kernel.org/r/1638349134-110369-1-git-send-email-cuibixuan@linux.alibaba.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent fd99aeb commit bcd5334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/core/oss/pcm_oss.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr
20562056
int err, cmd;
20572057

20582058
#ifdef OSS_DEBUG
2059-
pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger);
2059+
pr_debug("pcm_oss: trigger = 0x%x\n", trigger);
20602060
#endif
20612061

20622062
psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];

0 commit comments

Comments
 (0)