All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Langer <martin-langer@gmx.de>
To: Mark Knecht <markknecht@comcast.net>
Cc: Alsa-Devel <alsa-devel@lists.sourceforge.net>
Subject: Re: Alsa-1.0.0rc2 Hammerfall Light - small bug report
Date: Fri, 2 Jan 2004 15:10:47 +0100	[thread overview]
Message-ID: <20040102141046.GA590@tuba.home> (raw)
In-Reply-To: <1070763319.31277.0.camel@Wizard.knechthome.com>

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

On Sat, Dec 06, 2003 at 06:15:19PM -0800, Mark Knecht wrote:
> 
> Note ADAT3 which do not exist on
> this card.
> 
> 
> [mark@localhost mark]$ cat /proc/asound/card0/rme9652 
[...]
> ADAT Sample rate: 44100Hz
> ADAT1: No Lock
> ADAT2: No Lock
> ADAT3: No Lock
> 

This patch will remove the ADAT3 entry for light users. Please try it out,
because I don't have any hammerfall hardware.


martin

[-- Attachment #2: rme9652.patch --]
[-- Type: text/plain, Size: 881 bytes --]

Index: alsa-kernel/pci/rme9652/rme9652.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/rme9652.c,v
retrieving revision 1.39
diff -u -r1.39 rme9652.c
--- alsa-kernel/pci/rme9652/rme9652.c	19 Dec 2003 09:27:04 -0000	1.39
+++ alsa-kernel/pci/rme9652/rme9652.c	2 Jan 2004 13:21:26 -0000
@@ -1798,11 +1798,13 @@
 		snd_iprintf(buffer, "ADAT2: No Lock\n");
 	}
 
-	x = status & RME9652_sync_2;
-	if (status & RME9652_lock_2) {
-		snd_iprintf(buffer, "ADAT3: %s\n", x ? "Sync" : "Lock");
-	} else {
-		snd_iprintf(buffer, "ADAT3: No Lock\n");
+	if (rme9652->ss_channels == RME9652_NCHANNELS) {
+		x = status & RME9652_sync_2;
+		if (status & RME9652_lock_2) {
+			snd_iprintf(buffer, "ADAT3: %s\n", x ? "Sync" : "Lock");
+		} else {
+			snd_iprintf(buffer, "ADAT3: No Lock\n");
+		}
 	}
 
 	snd_iprintf(buffer, "\n");

  reply	other threads:[~2004-01-02 14:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-07  1:28 Alsa-1.0.0rc2 Hammerfall Light - small bug report Mark Knecht
2003-12-07  2:15 ` Mark Knecht
2004-01-02 14:10   ` Martin Langer [this message]
2004-01-02 15:33     ` Mark Knecht

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=20040102141046.GA590@tuba.home \
    --to=martin-langer@gmx.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=markknecht@comcast.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.