From: Bard Liao <bardliao@realtek.com>
To: broonie@kernel.org, lgirdwood@gmail.com
Cc: oder_chiou@realtek.com, jack.yu@realtek.com,
alsa-devel@alsa-project.org, lars@metafoo.de,
shumingf@realtek.com, Bard Liao <bardliao@realtek.com>,
xiaoxiang@pinecone.net, zhongan@pinecone.net, flove@realtek.com
Subject: [PATCH 6/8] ASoC: rt5665: move set_pll to codec level
Date: Wed, 8 Mar 2017 19:05:34 +0800 [thread overview]
Message-ID: <1488971136-19100-6-git-send-email-bardliao@realtek.com> (raw)
In-Reply-To: <1488971136-19100-1-git-send-email-bardliao@realtek.com>
Move set_pll function to codec level and people can use it at both
codec and dai level.
Signed-off-by: Bard Liao <bardliao@realtek.com>
---
sound/soc/codecs/rt5665.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index ca6aa66..2db039d 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4163,10 +4163,10 @@ static int rt5665_set_dai_sysclk(struct snd_soc_dai *dai,
return 0;
}
-static int rt5665_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int Source,
- unsigned int freq_in, unsigned int freq_out)
+static int rt5665_set_codec_pll(struct snd_soc_codec *codec, int pll_id,
+ int source, unsigned int freq_in,
+ unsigned int freq_out)
{
- struct snd_soc_codec *codec = dai->codec;
struct rt5665_priv *rt5665 = snd_soc_codec_get_drvdata(codec);
struct rl6231_pll_code pll_code;
int ret;
@@ -4399,7 +4399,6 @@ static const struct snd_soc_dai_ops rt5665_aif_dai_ops = {
.set_fmt = rt5665_set_dai_fmt,
.set_sysclk = rt5665_set_dai_sysclk,
.set_tdm_slot = rt5665_set_tdm_slot,
- .set_pll = rt5665_set_dai_pll,
.set_bclk_ratio = rt5665_set_bclk_ratio,
};
@@ -4508,7 +4507,8 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5665 = {
.num_dapm_widgets = ARRAY_SIZE(rt5665_dapm_widgets),
.dapm_routes = rt5665_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(rt5665_dapm_routes),
- }
+ },
+ .set_pll = rt5665_set_codec_pll,
};
--
2.7.4
next prev parent reply other threads:[~2017-03-08 11:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 11:05 [PATCH 1/8] ASoC: rt5665: increase LDO level Bard Liao
2017-03-08 11:05 ` [PATCH 2/8] ASoC: rt5665: enhance jack type detection function Bard Liao
2017-03-08 13:22 ` Applied "ASoC: rt5665: enhance jack type detection function" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 3/8] ASoC: rt5665: Vref3 is necessary for Mono Amp Bard Liao
2017-03-08 13:23 ` Applied "ASoC: rt5665: Vref3 is necessary for Mono Amp" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 4/8] ASoC: rt5665: CLKDET is also a power of ASRC Bard Liao
2017-03-08 13:23 ` Applied "ASoC: rt5665: CLKDET is also a power of ASRC" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 5/8] ASoC: rt5665: increase button detection accuracy Bard Liao
2017-03-08 13:23 ` Applied "ASoC: rt5665: increase button detection accuracy" to the asoc tree Mark Brown
2017-03-08 11:05 ` Bard Liao [this message]
[not found] ` <ABFD875FF5FB574BA706497D987D48D701C36CAA@RTITEXTEMP.realtek.com.tw>
2017-03-08 12:46 ` [PATCH 6/8] ASoC: rt5665: move set_pll to codec level Mark Brown
2017-03-08 11:05 ` [PATCH 7/8] ASoC: rt5665: move set_sysclk " Bard Liao
2017-03-08 11:05 ` [PATCH 8/8] ASoC: rt5665: enable TDM if more than 2 channels Bard Liao
2017-03-08 13:22 ` Applied "ASoC: rt5665: enable TDM if more than 2 channels" to the asoc tree Mark Brown
2017-03-08 13:23 ` Applied "ASoC: rt5665: increase LDO level" " 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=1488971136-19100-6-git-send-email-bardliao@realtek.com \
--to=bardliao@realtek.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=flove@realtek.com \
--cc=jack.yu@realtek.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=oder_chiou@realtek.com \
--cc=shumingf@realtek.com \
--cc=xiaoxiang@pinecone.net \
--cc=zhongan@pinecone.net \
/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;
as well as URLs for NNTP newsgroup(s).