Skip to content

Commit 217658f

Browse files
BenGardinertiwai
authored andcommitted
ALSA: sound, core, pcm_lib: fix xrun_log
The xrun_log function was augmented with the in_interrupt parameter whereas the empty macro definition used when xrun logging is disabled was not. Add a third parameter to the empty macro definition so as to not cause compiler errors when xrun logging (CONFIG_SND_PCM_XRUN_DEBUG) is disabled. Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent ec08b14 commit 217658f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/core/pcm_lib.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void xrun_log_show(struct snd_pcm_substream *substream)
266266
#else /* ! CONFIG_SND_PCM_XRUN_DEBUG */
267267

268268
#define hw_ptr_error(substream, fmt, args...) do { } while (0)
269-
#define xrun_log(substream, pos) do { } while (0)
269+
#define xrun_log(substream, pos, in_interrupt) do { } while (0)
270270
#define xrun_log_show(substream) do { } while (0)
271271

272272
#endif

0 commit comments

Comments
 (0)