public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jordan Crouse" <jordan.crouse@amd.com>
To: "Andres Salomon" <dilinger@queued.net>
Cc: jayakumar.alsa@gmail.com, akpm@linux-foundation.org,
	linux-kernel@vger.kernel.org, info-linux@geode.amd.com
Subject: Re: ALSA: cs5535audio: fix ACC_BM[x]_CMD register handling
Date: Thu, 30 Aug 2007 08:45:02 -0600	[thread overview]
Message-ID: <20070830144502.GK5851@cosmic.amd.com> (raw)
In-Reply-To: <20070829233043.42d24ff7.dilinger@queued.net>

On 29/08/07 23:30 -0400, Andres Salomon wrote:
> 
> ACcording to 6.3.2.7 of the cs5535/cs5536 data sheets, the ACC_BM[x]_CMD
> registers are only 8 bits wide.  This driver treats them as 32 bits wide,
> and also has bits in the wrong place.  Simple fix to the definitions.
> 
> Signed-off-by: Andres Salomon <dilinger@debian.org>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
> ---
> 
>  sound/pci/cs5535audio/cs5535audio.h |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h
> index c7a2044..516219a 100644
> --- a/sound/pci/cs5535audio/cs5535audio.h
> +++ b/sound/pci/cs5535audio/cs5535audio.h
> @@ -62,11 +62,11 @@
>  #define EOP				(1<<0)
>  #define BM_EOP_ERR			(1<<1)
>  /* ACC_BMX_CTL */
> -#define BM_CTL_EN			0x00000001
> -#define BM_CTL_PAUSE			0x00000011
> -#define BM_CTL_DIS			0x00000000
> -#define BM_CTL_BYTE_ORD_LE		0x00000000
> -#define BM_CTL_BYTE_ORD_BE		0x00000100
> +#define BM_CTL_EN			0x01
> +#define BM_CTL_PAUSE			0x03
> +#define BM_CTL_DIS			0x00
> +#define BM_CTL_BYTE_ORD_LE		0x00
> +#define BM_CTL_BYTE_ORD_BE		0x04
>  /* cs5535 specific ac97 codec register defines */
>  #define CMD_MASK			0xFF00FFFF
>  #define CMD_NEW				0x00010000
> 
> 

-- 
Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.



      reply	other threads:[~2007-08-30 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30  3:30 [PATCH 4/5] ALSA: cs5535audio: fix ACC_BM[x]_CMD register handling Andres Salomon
2007-08-30 14:45 ` Jordan Crouse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070830144502.GK5851@cosmic.amd.com \
    --to=jordan.crouse@amd.com \
    --cc=akpm@linux-foundation.org \
    --cc=dilinger@queued.net \
    --cc=info-linux@geode.amd.com \
    --cc=jayakumar.alsa@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox