From: Takashi Iwai Subject: Re: Why is substream->pcm->dev == NULL? Date: Fri, 08 Aug 2008 07:58:38 +0200 Message-ID: References: <489B444B.9010202@freescale.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 mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 730F124A91 for ; Fri, 8 Aug 2008 07:58:39 +0200 (CEST) In-Reply-To: <489B444B.9010202@freescale.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: Timur Tabi Cc: ALSA development List-Id: alsa-devel@alsa-project.org At Thu, 07 Aug 2008 13:51:55 -0500, Timur Tabi wrote: > > In my _pointer callback function, I have this: > > printk(KERN_INFO "%s:%u substream->pcm->dev=%p, substream->pcm->card->dev=%p\n", > __func__, __LINE__, substream->pcm->dev, substream->pcm->card->dev); > > During playback, it displays this: > > fsl_dma_pointer:698 substream->pcm->dev=00000000, substream->pcm->card->dev=dfa50a08 > > Why is substream->pcm->dev == NULL? What's the point of having this field if > you're not going to use it? It's provided to use a different device for PCM than card->dev. An example is found in AOA drivers. Takashi