From: Takashi Iwai <tiwai@suse.de>
To: Adel Gadllah <adel.gadllah@gmail.com>
Cc: kernel list <linux-kernel@vger.kernel.org>,
Chuck Ebbert <cebbert@redhat.com>
Subject: Re: [PATCH] snd-hda-intel: don't print using snd_printdd on device open
Date: Mon, 18 Feb 2008 07:54:53 +0100 [thread overview]
Message-ID: <s5hodaevjnm.wl%tiwai@suse.de> (raw)
In-Reply-To: <47B80CED.3060903@gmail.com>
At Sun, 17 Feb 2008 11:31:09 +0100,
Adel Gadllah wrote:
>
> Hi,
>
> When CONFIG_SND_DEBUG_DETECT is set the hda-intel driver prints verbose
> info like this:
>
> ALSA sound/pci/hda/hda_intel.c:1259: azx_pcm_prepare: bufsize=0x4400,
> fragsize=0x1100, format=0x11
> ALSA sound/pci/hda/hda_codec.c:682: hda_codec_setup_stream: NID=0x7,
> stream=0x5, channel=0, format=0x11
> ALSA sound/pci/hda/hda_codec.c:682: hda_codec_setup_stream: NID=0x3,
> stream=0x5, channel=0, format=0x11
> ALSA sound/pci/hda/hda_codec.c:682: hda_codec_setup_stream: NID=0x3,
> stream=0x0, channel=0, format=0x0
> ALSA sound/pci/hda/hda_codec.c:682: hda_codec_setup_stream: NID=0x7,
> stream=0x0, channel=0, format=0x0
> ALSA sound/pci/hda/hda_codec.c:682: hda_codec_setup_stream: NID=0x3,
> stream=0x0, channel=0, format=0x0
>
> Every time when an app opens the sound device.
> This makes it impossible for distribution to enable this config option
> (to get more debug information for bug reports),
Grr... why distrubionts need to set this option blindly at all?
> because its way too noisy.
> SND_DEBUG_DETECT should only print stuff once when loading the driver.
>
> There are some options to fix this:
>
> 1) don't print anything in functions that gets called when the device gets
> opened/prepared for output.
>
> 2) use snd_printd instead of snd_printdd and make
> CONFIG_SND_DEBUG_DETECT not depend on CONFIG_SND_DEBUG (this should be
> done anyway)
>
> 3) introduce a CONFIG_SND_DEBUG_DETECT_VERBOSE and snd_printddv and use
> it in this places (this one should be disabled by distributions then)
CONFIG_SND_DEBUG_DETECT is just a verbose debug option and thus
wrongly named. snd_printdd() there is the exactly intended behavior.
The real fix is to rename CONFIG_SND_DEBUG_DETECT to
CONFIG_SND_DEBUG_VERBOSE or so.
thanks,
Takashi
prev parent reply other threads:[~2008-02-18 6:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-17 10:31 Adel Gadllah
2008-02-18 2:40 ` Chuck Ebbert
2008-02-18 6:48 ` Takashi Iwai
2008-02-18 6:54 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hodaevjnm.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=adel.gadllah@gmail.com \
--cc=cebbert@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome