From: Fabio Estevam <fabio.estevam@freescale.com>
To: Oskar Schirmer <oskar@scara.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org,
Zeng Zhaoming <zengzm.kernel@gmail.com>,
alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.de>,
Jaroslav Kysela <perex@perex.cz>, Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH v2] sound/sgtl5000: fix codec register initial values and mask
Date: Tue, 11 Jun 2013 13:01:57 -0300 [thread overview]
Message-ID: <51B749F5.3010907@freescale.com> (raw)
In-Reply-To: <1370964151-6728-1-git-send-email-oskar@scara.com>
On 06/11/2013 12:22 PM, Oskar Schirmer wrote:
> According to documentation bit 3:2 in register SSS_CTRL are
> reserved and zero, so initially setting the register to 0x0008
> does not make much sense. Instead, bit 4 should be marked set,
> as this is the power up default.
>
> Further, mask computation in declarative part is obviously wrong:
> Fix FRAC DIVISOR to provide an 11 bit mask correctly.
>
> Signed-off-by: Oskar Schirmer <oskar@scara.com>
> Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Looks good, but please copy Mark Brown. Just added him in Cc now.
> ---
> sound/soc/codecs/sgtl5000.c | 2 +-
> sound/soc/codecs/sgtl5000.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
> index d441559..10092ba 100644
> --- a/sound/soc/codecs/sgtl5000.c
> +++ b/sound/soc/codecs/sgtl5000.c
> @@ -38,7 +38,7 @@
> static const struct reg_default sgtl5000_reg_defaults[] = {
> { SGTL5000_CHIP_CLK_CTRL, 0x0008 },
> { SGTL5000_CHIP_I2S_CTRL, 0x0010 },
> - { SGTL5000_CHIP_SSS_CTRL, 0x0008 },
> + { SGTL5000_CHIP_SSS_CTRL, 0x0010 },
> { SGTL5000_CHIP_DAC_VOL, 0x3c3c },
> { SGTL5000_CHIP_PAD_STRENGTH, 0x015f },
> { SGTL5000_CHIP_ANA_HP_CTRL, 0x1818 },
> diff --git a/sound/soc/codecs/sgtl5000.h b/sound/soc/codecs/sgtl5000.h
> index 4b69229..52bd843 100644
> --- a/sound/soc/codecs/sgtl5000.h
> +++ b/sound/soc/codecs/sgtl5000.h
> @@ -347,7 +347,7 @@
> #define SGTL5000_PLL_INT_DIV_MASK 0xf800
> #define SGTL5000_PLL_INT_DIV_SHIFT 11
> #define SGTL5000_PLL_INT_DIV_WIDTH 5
> -#define SGTL5000_PLL_FRAC_DIV_MASK 0x0700
> +#define SGTL5000_PLL_FRAC_DIV_MASK 0x07ff
> #define SGTL5000_PLL_FRAC_DIV_SHIFT 0
> #define SGTL5000_PLL_FRAC_DIV_WIDTH 11
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Fabio Estevam <fabio.estevam@freescale.com>
To: Oskar Schirmer <oskar@scara.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
<linux-kernel@vger.kernel.org>,
Zeng Zhaoming <zengzm.kernel@gmail.com>,
<alsa-devel@alsa-project.org>, Takashi Iwai <tiwai@suse.de>,
Jaroslav Kysela <perex@perex.cz>, Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH v2] sound/sgtl5000: fix codec register initial values and mask
Date: Tue, 11 Jun 2013 13:01:57 -0300 [thread overview]
Message-ID: <51B749F5.3010907@freescale.com> (raw)
In-Reply-To: <1370964151-6728-1-git-send-email-oskar@scara.com>
On 06/11/2013 12:22 PM, Oskar Schirmer wrote:
> According to documentation bit 3:2 in register SSS_CTRL are
> reserved and zero, so initially setting the register to 0x0008
> does not make much sense. Instead, bit 4 should be marked set,
> as this is the power up default.
>
> Further, mask computation in declarative part is obviously wrong:
> Fix FRAC DIVISOR to provide an 11 bit mask correctly.
>
> Signed-off-by: Oskar Schirmer <oskar@scara.com>
> Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Looks good, but please copy Mark Brown. Just added him in Cc now.
> ---
> sound/soc/codecs/sgtl5000.c | 2 +-
> sound/soc/codecs/sgtl5000.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
> index d441559..10092ba 100644
> --- a/sound/soc/codecs/sgtl5000.c
> +++ b/sound/soc/codecs/sgtl5000.c
> @@ -38,7 +38,7 @@
> static const struct reg_default sgtl5000_reg_defaults[] = {
> { SGTL5000_CHIP_CLK_CTRL, 0x0008 },
> { SGTL5000_CHIP_I2S_CTRL, 0x0010 },
> - { SGTL5000_CHIP_SSS_CTRL, 0x0008 },
> + { SGTL5000_CHIP_SSS_CTRL, 0x0010 },
> { SGTL5000_CHIP_DAC_VOL, 0x3c3c },
> { SGTL5000_CHIP_PAD_STRENGTH, 0x015f },
> { SGTL5000_CHIP_ANA_HP_CTRL, 0x1818 },
> diff --git a/sound/soc/codecs/sgtl5000.h b/sound/soc/codecs/sgtl5000.h
> index 4b69229..52bd843 100644
> --- a/sound/soc/codecs/sgtl5000.h
> +++ b/sound/soc/codecs/sgtl5000.h
> @@ -347,7 +347,7 @@
> #define SGTL5000_PLL_INT_DIV_MASK 0xf800
> #define SGTL5000_PLL_INT_DIV_SHIFT 11
> #define SGTL5000_PLL_INT_DIV_WIDTH 5
> -#define SGTL5000_PLL_FRAC_DIV_MASK 0x0700
> +#define SGTL5000_PLL_FRAC_DIV_MASK 0x07ff
> #define SGTL5000_PLL_FRAC_DIV_SHIFT 0
> #define SGTL5000_PLL_FRAC_DIV_WIDTH 11
>
>
next prev parent reply other threads:[~2013-06-11 16:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 8:12 [PATCH] sound/sgtl5000: fix codec register initial values and mask Oskar Schirmer
2013-06-11 12:20 ` Fabio Estevam
2013-06-11 12:20 ` Fabio Estevam
2013-06-11 15:22 ` [PATCH v2] " Oskar Schirmer
2013-06-11 16:01 ` Fabio Estevam [this message]
2013-06-11 16:01 ` Fabio Estevam
2013-06-12 16:08 ` Mark Brown
2013-06-12 16:08 ` Mark Brown
2013-06-19 13:16 ` [PATCH v3] sound/sgtl5000: fix codec register initial values and handling Oskar Schirmer
2013-06-19 15:26 ` Mark Brown
2013-06-19 15:26 ` 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=51B749F5.3010907@freescale.com \
--to=fabio.estevam@freescale.com \
--cc=akpm@linux-foundation.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oskar@scara.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
--cc=zengzm.kernel@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.