From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
Mark Brown <broonie@kernel.org>, Bard Liao <bardliao@realtek.com>,
Oder Chiou <oder_chiou@realtek.com>
Cc: alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.com>
Subject: Re: [PATCH] ASoC: cht-bsw-rt5645: Also enable/disable the clock on Cherry Trail
Date: Mon, 16 Oct 2017 09:38:34 -0500 [thread overview]
Message-ID: <cfbbc436-9aec-e8d3-7510-bcba19e1b3af@linux.intel.com> (raw)
In-Reply-To: <20171014122213.7769-1-hdegoede@redhat.com>
On 10/14/17 7:22 AM, Hans de Goede wrote:
> Just like on Bay Trail the codec mclk is also controlled by the common
> clk framework as pmc_plt_clk_3 on Cherry Trail and the cht-bsw-rt5645
> needs to control it so that it has the right frequency and gets
> en/disabled as appropriate.
This is already merged by Mark, I submitted this change a couple of
weeks ago.
>
> This fixes the sound crackling (like a bonfire) when the clock was not
> set up properly before Linux boots and turns the clock off when not in
> use saving power.
>
> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=196351
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> sound/soc/intel/boards/cht_bsw_rt5645.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boards/cht_bsw_rt5645.c
> index 5bcde01d15e6..d553e2b67c92 100644
> --- a/sound/soc/intel/boards/cht_bsw_rt5645.c
> +++ b/sound/soc/intel/boards/cht_bsw_rt5645.c
> @@ -682,14 +682,12 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
> cht_rt5645_cpu_dai_name;
> }
>
> - if (is_valleyview()) {
> - drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3");
> - if (IS_ERR(drv->mclk)) {
> - dev_err(&pdev->dev,
> - "Failed to get MCLK from pmc_plt_clk_3: %ld\n",
> - PTR_ERR(drv->mclk));
> - return PTR_ERR(drv->mclk);
> - }
> + drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3");
> + if (IS_ERR(drv->mclk)) {
> + dev_err(&pdev->dev,
> + "Failed to get MCLK from pmc_plt_clk_3: %ld\n",
> + PTR_ERR(drv->mclk));
> + return PTR_ERR(drv->mclk);
> }
>
> snd_soc_card_set_drvdata(card, drv);
>
prev parent reply other threads:[~2017-10-16 14:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-14 12:22 [PATCH] ASoC: cht-bsw-rt5645: Also enable/disable the clock on Cherry Trail Hans de Goede
2017-10-16 14:38 ` Pierre-Louis Bossart [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=cfbbc436-9aec-e8d3-7510-bcba19e1b3af@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bardliao@realtek.com \
--cc=broonie@kernel.org \
--cc=hdegoede@redhat.com \
--cc=oder_chiou@realtek.com \
--cc=tiwai@suse.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.