From: Takashi Iwai Subject: Re: [PATCH 1/1] ALSA: CA0132 - Handle endianness of SCP buffer data Date: Wed, 28 Nov 2012 09:14:12 +0100 Message-ID: References: <1354071887-2653-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 1DC8F26167A for ; Wed, 28 Nov 2012 09:14:15 +0100 (CET) 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 Wed, 28 Nov 2012 08:11:11 +0100, Takashi Iwai wrote: > > At Tue, 27 Nov 2012 19:04:47 -0800, > Ian Minett wrote: > > > > From: Ian Minett > > > > Handle endianness of the SCP buffer being sent to or from the > > DSP chip on big-endian host architectures. > > The SCP buffer is prepared in dspio_scp(), and bytes are swapped > > before being transferred by the codec in dspio_send(). > > Based on branch origin/topic/hda-ca0132-dsp. > > > > We would appreciate any feedback you may have. > > It's more straightforward to use cpu_to_le32() and le32_to_cpu() > than unaligned access. > > Could you resend the patch with this rewrite? BTW, I rebased topic/hda-ca0132-dsp branch on my sound and sound-unstable git trees. It's JFYI. Takashi