linux/sound/drivers/vx
Takashi Iwai 86b2723725 ALSA: Make snd_printd() and snd_printdd() inline
Because currently snd_printd() and snd_printdd() macros are expanded
to empty when CONFIG_SND_DEBUG=n, a compile warning like below
appears sometimes, and we had to covert it by ugly ifdefs:
  sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’:
  sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable]

For "fixing" these issues better, this patch replaces snd_printd() and
snd_printdd() definitions with empty inline functions instead of
macros.  This should have the same effect but shut up warnings like
above.

But since we had already put ifdefs, changing to inline functions
would trigger compile errors.  So, such ifdefs is removed in this
patch.

In addition, snd_pci_quirk name field is defined only when
CONFIG_SND_DEBUG_VERBOSE is set, and the reference to it in
snd_printdd() argument triggers the build errors, too.  For avoiding
these errors, introduce a new macro snd_pci_quirk_name() that is
defined no matter how the debug option is set.

Reported-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-25 18:32:14 +01:00
..
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
vx_cmd.c ALSA: Kill snd_assert() in other places 2008-08-13 11:46:40 +02:00
vx_cmd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vx_core.c ALSA: Make snd_printd() and snd_printdd() inline 2013-01-25 18:32:14 +01:00
vx_hwdep.c ALSA: vx: hard dependency on the standard fw loader 2012-11-22 17:48:01 +01:00
vx_mixer.c ALSA: Kill snd_assert() in other places 2008-08-13 11:46:40 +02:00
vx_pcm.c sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
vx_uer.c ALSA: sound/drivers/vx: fix sparse warning: different signedness 2009-02-26 09:57:21 +01:00