From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 13:21:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5931416A420 for ; Sun, 6 Nov 2005 13:21:37 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B47A043D6B for ; Sun, 6 Nov 2005 13:21:31 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 4FAB16CC25; Sun, 6 Nov 2005 21:23:37 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60311-07; Sun, 6 Nov 2005 21:23:36 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id DA79F6CC22; Sun, 6 Nov 2005 21:23:35 +0800 (MYT) Date: Sun, 6 Nov 2005 21:21:27 +0800 From: Ariff Abdullah To: Watanabe Kazuhiro Message-Id: <20051106212127.7ef640c3.skywizard@MyBSD.org.my> In-Reply-To: <20051106124900.7D4EF1E5F4@mail.asahi-net.or.jp> References: <20051106124900.7D4EF1E5F4@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: [patch] als4000.c recording mixer problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 13:21:37 -0000 On Sun, 06 Nov 2005 21:49:11 +0900 Watanabe Kazuhiro wrote: > Hi, everyone. > > I have an AOpen AW200 sound card which uses the AvanceLogic ALS4000 > soundchip. > > When I try to record from the card's line input with wavrec (a part > of ports/audio/wavplay) on FreeBSD 5.4, only record the left > channel. The right channel has no sound. > > > But on FreeBSD-7-current (CVSup'ed Nov. 5), it can record both left > and right channel. It looks like correct, however, it also selects > an another input(s) to the recording source. > > To find out this problem, add a bit of modify to > sys/dev/sound/pci/als4000.c and run mixer(1) command. > > @@ -616,7 +616,9 @@ alsmix_setrecsrc(struct snd_mixer *m, u_ > if (src & SOUND_MASK_SYNTH) > mask |= 0x60; > > +printf("l=%x\n", l|mask); > als_mix_wr(sc, SB16_IMASK_L, l|mask); > +printf("r=%x\n", r|mask); > als_mix_wr(sc, SB16_IMASK_R, r|mask); > return src; > } > > I'll give it a shot later this day. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)