From: Takashi Iwai Subject: Re: [PATCHv2 - CA0132 HDA Codec 1/2] ALSA: Update Creative CA0132 codec to add DSP features. Date: Wed, 08 Aug 2012 09:22:53 +0200 Message-ID: References: <1343239280-3503-1-git-send-email-ian_minett@creativelabs.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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id F1EEE26523C for ; Wed, 8 Aug 2012 08:53:07 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Ian Minett Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 7 Aug 2012 17:27:59 -0700, Ian Minett wrote: > > >Looks good, but I think start and stop can be a single trigger like > >PCM op, something like: > > > > int (*load_dsp_trigger)(struct hda_bus *bus, bool start); > > > >The second argument could be a generic int like PCM op, but I don't > >think we'd need pause or suspend/resume command for DSP loader :) > > Hi Takashi, > > The proposed method for handling the DSP load process looks fine to > us, and we can make a start on adding this to the CA0132 driver now. > > We can update patch_ca0132.c, but would you be able to assist us with > the modifications to the hda_intel.c side at all? We think it might > result in a smoother process (and involving fewer submissions :) ) > given your familiarity with the low-level architecture in that area. Sure, just send me a draft version of your patch, so that I can work on it. > If not, we'd appreciate any info or pointers you can provide on how > and where the necessary modifications need to be made to hda_intel.c. You had already some working code but it was calling PCM ops. When you see hda_intel.c, the necessary streaming operations can be much easier implemented there instead of indirect call of PCM ops, if you have a dedicated load_dsp_prepare and load_dsp_trigger. The current azx_pcm_trigger(), for example, looks fairly complex, but it's simply because of the support for linked PCM streams. If you can assume a single stream, it's just a call of azx_stream_start() and azx_stream_stop(). BTW, what would be the license of the firmware? For upstreaming the firmware, you'd need to clarify its license. You can see the license texts in kernel-firmware tree / package about what other vendors give. thanks, Takashi