From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: PROC_COEF/PROC_INDEX question Date: Fri, 07 Aug 2009 11:45:14 +0200 Message-ID: References: <20090807093859.GA2155@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 45C741038B7 for ; Fri, 7 Aug 2009 11:45:15 +0200 (CEST) In-Reply-To: <20090807093859.GA2155@localhost> 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: Wu Fengguang Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 7 Aug 2009 17:38:59 +0800, Wu Fengguang wrote: > > Hello, > > I'm not sure of the usage for GET_PROC_COEF/GET_COEF_INDEX, and found > that their return value is unstable (changing all the time) for codec: > > Codec: Realtek ALC888 > Address: 2 > Function Id: 0x1 > Vendor Id: 0x10ec0888 > Subsystem Id: 0x80860023 > Revision Id: 0x100202 > > For example: > > # hda-verb /dev/snd/hwC0D2 0x20 GET_PROC_COEF 0 > nid = 0x20, verb = 0xc00, param = 0x0 > value = 0x80 > # hda-verb /dev/snd/hwC0D2 0x20 GET_COEF_INDEX 0 > nid = 0x20, verb = 0xd00, param = 0x0 > value = 0xe > # hda-verb /dev/snd/hwC0D2 0x20 GET_PROC_COEF 0 > nid = 0x20, verb = 0xc00, param = 0x0 > value = 0x9c00 > # hda-verb /dev/snd/hwC0D2 0x20 GET_COEF_INDEX 0 > nid = 0x20, verb = 0xd00, param = 0x0 > value = 0xf > > I wonder if this is the normal case? AFAIK, depending on the mode, the index is incremented automatically. Takashi