From mboxrd@z Thu Jan 1 00:00:00 1970 From: Risto Suominen Subject: [PATCH - powermac] Add debug log Date: Sun, 4 Apr 2010 08:00:29 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by alsa0.perex.cz (Postfix) with ESMTP id B1D9724404 for ; Sun, 4 Apr 2010 07:00:30 +0200 (CEST) Received: by mail-bw0-f220.google.com with SMTP id 20so3454515bwz.32 for ; Sat, 03 Apr 2010 22:00:30 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel , "Risto.Suominen" List-Id: alsa-devel@alsa-project.org From: Risto Suominen Add some debug log in tumbler.c. Signed-off-by: Risto Suominen --- Kernel version 2.6.32.9 (probably any 2.6), ALSA 1.0.22.1. This patch is available here, too: http://ristosu.wippiespace.com/pub/alsa-tumbler-1.0.22.1-p16d.diff It has no effect, unless one changes '#undef DEBUG' to '#define DEBUG' in the beginning of the file (and possibly in tumbler.patch, too). --- a/alsa-kernel/ppc/tumbler.c-p15 2010-03-16 19:59:01.000000000 +0200 +++ b/alsa-kernel/ppc/tumbler.c 2010-03-23 21:34:46.000000000 +0200 @@ -246,6 +246,7 @@ static int tumbler_set_master_volume(str snd_printk(KERN_ERR "failed to set volume \n"); return -EINVAL; } + DBG("(I) succeeded to set volume (%u, %u)\n", left_vol, right_vol); return 0; } @@ -356,6 +357,7 @@ static int tumbler_set_drc(struct pmac_t snd_printk(KERN_ERR "failed to set DRC\n"); return -EINVAL; } + DBG("(I) succeeded to set DRC (%u, %u)\n", val[0], val[1]); return 0; } @@ -392,6 +394,7 @@ static int tumbler_set_drc(struct pmac_t snd_printk(KERN_ERR "failed to set DRC\n"); return -EINVAL; } + DBG("(I) succeeded to set DRC (%u, %u)\n", val[0], val[1]); return 0; }