From: Takashi Iwai Subject: Re: getting HDAudio IDs Date: Wed, 15 Apr 2009 13:02:23 +0200 Message-ID: References: <49E5098F.6070009@theserrs.net> 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 380FF1037F5 for ; Wed, 15 Apr 2009 13:02:46 +0200 (CEST) In-Reply-To: <49E5098F.6070009@theserrs.net> 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: Scott Serr Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 14 Apr 2009 16:09:19 -0600, Scott Serr wrote: > > Hi All, > > I've found a great way to get HDAudio vendor/device IDs when audio > drivers are loaded: /proc/asound/card?/codec? > > But to remake my particular (barebones) distro with with audio support, > it will be repetitive and time consuming. I'm wondering what would be > involved in making a user space utility that would return the HDAudio ID? > > A guy on #alsa came up with some good ideas. Potentially following the > lead of others directly accessing the hardware from user space > http://samba.org/picturebook/ but using libpci instead. Maybe we can > use "single cmd mode" so we don't need interrupts. > > My original idea: > It might be that a smart developer could grab a bunch of alsa/hdaudio > driver source and torture it into userland.... just to get these IDs. > > Should I quit now? Is it doable? Are there people here with the > skills/experience to do this? I don't think this worth to go. Clearly this is a job of the kernel to communicate with such a hardware. The question is rather how to generalize the communication. One idea is to split the current driver into a generic HD-audio bus driver, controller driver and codec drivers. In that way, you'll get a safer access. But this would be a major rewrite, and no trivial task, although it's a good and clean direction to go. thanks, Takashi