From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 12 22:35:07 2006 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 42AB316A41A for ; Mon, 12 Jun 2006 22:35:07 +0000 (UTC) (envelope-from kosio.dimitrov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8124043D72 for ; Mon, 12 Jun 2006 22:34:59 +0000 (GMT) (envelope-from kosio.dimitrov@gmail.com) Received: by wx-out-0102.google.com with SMTP id h26so962533wxd for ; Mon, 12 Jun 2006 15:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=TIdX7jMjDWmPIWk79OzFuF86w+/FTAUFJr4uiKRmpU4tREpRK7m6iIZfPLexLxTmT8+wZRRtzOvuIBeD5GIGcMqlTY3dI+L5UaXrzIabLZi/26n8rJH3SLZ5nHN5bEIRwxbLsIGXBtpkmwhqLEMT9vuh7iRYgW9phchoRVCaYLE= Received: by 10.70.39.19 with SMTP id m19mr6931224wxm; Mon, 12 Jun 2006 15:34:58 -0700 (PDT) Received: by 10.70.54.9 with HTTP; Mon, 12 Jun 2006 15:34:58 -0700 (PDT) Message-ID: <8103ad500606121534h2a9480aem8be58220c2e04996@mail.gmail.com> Date: Tue, 13 Jun 2006 01:34:58 +0300 From: "Konstantin Dimitrov" To: "Stefan Ehmann" In-Reply-To: <8103ad500606081031s40ac1afcnfc78bd6734e43fdc@mail.gmail.com> MIME-Version: 1.0 References: <200606072039.13422.shoesoft@gmx.net> <8103ad500606071552k77985b54o3378d9351e4bdcf8@mail.gmail.com> <200606081614.43375.shoesoft@gmx.net> <8103ad500606081031s40ac1afcnfc78bd6734e43fdc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, Alexander@leidinger.net Subject: Re: Status of VIA Envy24 audio controller 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: Mon, 12 Jun 2006 22:35:07 -0000 thanks to cooperation with Stefan Ehmann (shoesoft at gmx.net), there is a patch adding basic "M-Audio Audiophile 2496" support, he sent the initial patch to freebsd-multimedia@ titled "basic support for M-Audio Audiophile 2496 available", now the "volume" problem with "M-Audio Audiophile 2496" is fixed using slightly changed "ak452x_set" (ak452x.c) routine: void ak452x_set(struct ak452x_info *codec, int dir, unsigned int left, unsigned int right) { #if(0) device_printf(codec->dev, "ak452x_set(codec, %d, %d, %d)\n", dir, left, right); #endif snd_mtxlock(codec->lock); if (left >= 100) left = 127; else left = left * 127 / 100; if (right >= 100) right = 127; else right = right * 127 / 100; if (dir == PCMDIR_PLAY) { #if(0) device_printf(codec->dev, "ak452x_set(): AK4528(PLAY) %d/%d\n", left, right); #endif ak452x_wrcd(codec, AK4528_LOATT, left); ak452x_wrcd(codec, AK4528_ROATT, right); } snd_mtxunlock(codec->lock); }