From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754418Ab2DICPU (ORCPT ); Sun, 8 Apr 2012 22:15:20 -0400 Received: from mga02.intel.com ([134.134.136.20]:38871 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160Ab2DICPT (ORCPT ); Sun, 8 Apr 2012 22:15:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="126736504" Date: Mon, 9 Apr 2012 10:15:17 +0800 From: Fengguang Wu To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Nick Bowler , Linux Kernel Mailing List , Keith Packard Subject: [PATCH] alsa: hide HDMI/ELD printks unless in debug kernels Message-ID: <20120409021517.GA14618@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These trivial messages will show up repeatedly on hot plug as well as video mode changes, which could be annoying. Signed-off-by: Wu Fengguang --- sound/pci/hda/hda_eld.c | 6 +++--- sound/pci/hda/patch_hdmi.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) --- linux.orig/sound/pci/hda/hda_eld.c 2011-11-11 19:08:21.000000000 +0800 +++ linux/sound/pci/hda/hda_eld.c 2011-11-11 19:09:35.000000000 +0800 @@ -410,7 +410,7 @@ static void hdmi_show_short_audio_desc(s else buf2[0] = '\0'; - printk(KERN_INFO "HDMI: supports coding type %s:" + snd_printdd("HDMI: supports coding type %s:" " channels = %d, rates =%s%s\n", cea_audio_coding_type_names[a->format], a->channels, @@ -434,14 +434,14 @@ void snd_hdmi_show_eld(struct hdmi_eld * { int i; - printk(KERN_INFO "HDMI: detected monitor %s at connection type %s\n", + snd_printdd("HDMI: detected monitor %s at connection type %s\n", e->monitor_name, eld_connection_type_names[e->conn_type]); if (e->spk_alloc) { char buf[SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE]; snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf)); - printk(KERN_INFO "HDMI: available speakers:%s\n", buf); + snd_printdd("HDMI: available speakers:%s\n", buf); } for (i = 0; i < e->sad_count; i++) --- linux.orig/sound/pci/hda/patch_hdmi.c 2011-11-11 19:07:15.000000000 +0800 +++ linux/sound/pci/hda/patch_hdmi.c 2011-11-11 19:08:16.000000000 +0800 @@ -757,7 +757,7 @@ static void hdmi_intrinsic_event(struct int pin_idx; struct hdmi_eld *eld; - printk(KERN_INFO + snd_printdd( "HDMI hot plug event: Codec=%d Pin=%d Presence_Detect=%d ELD_Valid=%d\n", codec->addr, pin_nid, pd, eldv); @@ -989,7 +989,7 @@ static void hdmi_present_sense(struct hd else eld->eld_valid = 0; - printk(KERN_INFO + snd_printdd( "HDMI status: Codec=%d Pin=%d Presence_Detect=%d ELD_Valid=%d\n", codec->addr, pin_nid, eld->monitor_present, eld->eld_valid);