From: Takashi Iwai Subject: Re: Platform bus question Date: Thu, 15 Sep 2005 11:42:40 +0200 Message-ID: References: <1126735889.3428.8.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1126735889.3428.8.camel@localhost.localdomain> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Adrian McMenamin Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 14 Sep 2005 23:11:29 +0100, Adrian McMenamin wrote: > > I am writing a driver for the sound card on the Sega Dreamcast (you can > view it at http://newgolddream.dyndns.info/repos/aica) and I am using > this: > > snd_card_set_dev(dreamcastcard, &platform_bus); > > /* Register the card with ALSA subsystem */ > if ((err = snd_card_register(dreamcastcard)) < 0) { > snd_aicapcm_free(); > snd_card_free(dreamcastcard); > return err; > } > > > In the hope that the card will be registered with the generic platform > bus. > > The code does not generate any errors, but doesn't appear to work > either! Use a new function snd_card_set_generic_dev() for such a purpose if the device isn't assigned to a proper bus. Takashi ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php