From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
To: Peter Rosin <peda@axentia.se>
Cc: alsa-devel@alsa-project.org,
Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Subject: Re: [PATCH] ALSA: AT73C213: Rectify misleading comments.
Date: Mon, 15 Nov 2010 15:50:34 +0100 [thread overview]
Message-ID: <1289832634.18691.1.camel@hcegtvedt> (raw)
In-Reply-To: <1289820546-2078-1-git-send-email-peda@axentia.se>
On Mon, 2010-11-15 at 12:29 +0100, Peter Rosin wrote:
> The Atmel SSC can divide by even numbers, not only powers of two and
> the given values are binary, not hexadecimal.
IIRC the divide by power of two is more related to the generic clocks in
the device thatn the SSC module itself.
> Signed-off-by: Peter Rosin <peda@axentia.se>
> ---
> sound/spi/at73c213.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> I'm working on a driver based on AT73C213 and have had to look up
> if the below nits were code problems or comment problems. The Atmel
> specs tells me that the comments are wrong and this patch fixes
> those comments.
>
> Cheers and thanks,
> Peter
>
> diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
> index 1bc56b2..548e17a 100644
> --- a/sound/spi/at73c213.c
> +++ b/sound/spi/at73c213.c
> @@ -155,7 +155,7 @@ static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip)
> if (max_tries < 1)
> max_tries = 1;
>
> - /* ssc_div must be a power of 2. */
> + /* ssc_div must be even. */
IIRC the bitrate is controlled by a generic clock, and it has a power of
two divider possibility. Hence the comment about power of two.
<snipp other two changes that looked fine>
--
Hans-Christian Egtvedt
next prev parent reply other threads:[~2010-11-15 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-15 11:29 [PATCH] ALSA: AT73C213: Rectify misleading comments Peter Rosin
2010-11-15 14:50 ` Hans-Christian Egtvedt [this message]
2010-11-15 18:52 ` Peter Rosin
2010-11-15 19:16 ` Mark Brown
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=1289832634.18691.1.camel@hcegtvedt \
--to=hans-christian.egtvedt@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=hcegtvedt@atmel.com \
--cc=peda@axentia.se \
/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