From: Takashi Iwai Subject: Re: [PATCH] hda_proc - Add output of Vref, additional pcaps, and proccaps to proc output Date: Thu, 17 Jan 2008 18:20:13 +0100 Message-ID: References: <8a9218bae32f110a1ca2.1200581166@am2> <1200589860.5011.88.camel@razman.gruemaster.com> 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 0480B2457C for ; Thu, 17 Jan 2008 18:20:14 +0100 (CET) In-Reply-To: <1200589860.5011.88.camel@razman.gruemaster.com> 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: Tobin Davis Cc: alsa-devel@alsa-project.org, Andrew Paprocki List-Id: alsa-devel@alsa-project.org At Thu, 17 Jan 2008 09:11:00 -0800, Tobin Davis wrote: > > On Thu, 2008-01-17 at 17:58 +0100, Takashi Iwai wrote: > > At Thu, 17 Jan 2008 09:46:06 -0400, > Andrew Paprocki wrote: > > > > This adds additional pincaps which were not previously output. Also, Vref > > capabilities are output per-pin along with the current Vref pinctl setting > > if the NID supports Vref. Also added: processing widgets and proccaps, as > > well as processing coefficient and coefficient index from the Realtek Define > > Registers per the ALC883 datasheet. > > > > Signed-off-by: Andrew Paprocki > > Did you check whether this doesn't break Claudio's codecgraph parser? > If it's OK, I'd like to apply it, of course... > > Takashi > > You're kidding, right? Adding more details about a codec is more useful at this > point than making sure a non-essential script (that can be easily modified) > isn't broken. Well, now we have some parser program, then it's the high time to think about the proc output consistent in a certain level. So far, it's just written to be readable for human being. But, now we'd need to make it also easily readable by dumb programs, too. > What I want to know is if we can add even more to /proc, like EAPD status (not > just capabilities), jack sense, etc. These are useful bits of information, not > only for driver development, but also could be useful for userspace tools that > can monitor these. Imagine having your system auto adjust from 5.1 surround > settings to optimal headphone settings (not just automute) when you plug in your > headphones. The jack-sense is a bit problem. I once had a laptop that causes codec errors when issuing a jack-sense command without unsolicited events. So, I'd say, let's be as conservative as possible for the proc. Moreover, we can read any commands via hwdep ioctl easily now... Takashi