From: Takashi Iwai Subject: Re: Platform bus question Date: Fri, 16 Sep 2005 11:34:10 +0200 Message-ID: References: <1126735889.3428.8.camel@localhost.localdomain> <1126824176.3328.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: <1126824176.3328.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 Thu, 15 Sep 2005 23:42:56 +0100, Adrian McMenamin wrote: > > On Thu, 2005-09-15 at 11:42 +0200, Takashi Iwai wrote: > > 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. > > > Meaning the snd_card_set_dev macro + snd_card_register function combo > won't work? It would work but you are passing a wrong instance in snd_card_set_dev(). It's the device object of its own, not the bus to be assigned. 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