From: RongJun Ying <rjying@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Takashi Iwai <tiwai@suse.de>, Liam Girdwood <lgirdwood@gmail.com>,
DL-SHA-WorkGroupLinux <workgroup.linux@csr.com>,
Rongjun Ying <rongjun.ying@csr.com>
Subject: Re: [PATCH v5-resend 4/7] ASoC: sirf: Add SiRF I2S driver
Date: Fri, 7 Mar 2014 15:13:10 +0800 [thread overview]
Message-ID: <CAByv0RMu0z4WETvNt+-Teo-2n+BfEc6=fx=3_Vp8SzdENmApAg@mail.gmail.com> (raw)
In-Reply-To: <20140307060516.GE13126@sirena.org.uk>
2014-03-07 14:05 GMT+08:00 Mark Brown <broonie@kernel.org>:
> On Wed, Mar 05, 2014 at 04:34:37PM +0800, RongJun Ying wrote:
>
> Mostly OK, a couple of small things below:
>
>> +static int sirf_i2s_set_clkdiv(struct snd_soc_dai *dai, int div_id,
>> + int src_rate)
>> +{
>> + struct sirf_i2s *i2s = snd_soc_dai_get_drvdata(dai);
>> +
>> + switch (div_id) {
>> + case SIRF_I2S_EXT_CLK:
>> + i2s->ext_clk = 1;
>> + break;
>> + case SIRF_I2S_PWM_CLK:
>> + i2s->ext_clk = 0;
>> + break;
>> + default:
>> + return -EINVAL;
>> + }
>> +
>> + i2s->src_clk_rate = src_rate;
>> + return 0;
>> +}
>
> This should be set_sysclk().
OK
>
>> + base = devm_ioremap(&pdev->dev, mem_res->start,
>> + resource_size(mem_res));
>> + if (base == NULL)
>> + return -ENOMEM;
>
> As mentioned on the other patch this should be devm_ioremap_resource() -
> if you are sharing the register range use a core device to own the
> register map.
I may use the mfd driver to manage all shring the regsiter range.
Thanks
--
------------------------------
Rongjun Ying
next prev parent reply other threads:[~2014-03-07 7:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 8:34 [PATCH v5-resend 0/7] ASoC: add CSR SiRFSoC sound drivers RongJun Ying
2014-03-05 8:34 ` [PATCH v5-resend 1/7] ASoC: sirf: Add SiRF internal audio codec driver RongJun Ying
2014-03-05 8:34 ` [PATCH v5-resend 2/7] ASoC: sirf: Add SiRF audio port driver is used by SiRF internal audio codec RongJun Ying
2014-03-06 9:20 ` Mark Brown
2014-03-06 9:51 ` RongJun Ying
2014-03-07 1:49 ` Mark Brown
2014-03-12 9:56 ` RongJun Ying
2014-03-12 12:00 ` Mark Brown
2014-03-05 8:34 ` [PATCH v5-resend 3/7] ASoC: sirf: Add SiRF audio card RongJun Ying
2014-03-06 9:22 ` Mark Brown
2014-03-05 8:34 ` [PATCH v5-resend 4/7] ASoC: sirf: Add SiRF I2S driver RongJun Ying
2014-03-07 6:05 ` Mark Brown
2014-03-07 7:13 ` RongJun Ying [this message]
2014-03-07 8:38 ` RongJun Ying
2014-03-05 8:34 ` [PATCH v5-resend 5/7] ASoC: sirf: Add hdmi card RongJun Ying
2014-03-07 6:06 ` Mark Brown
2014-03-05 8:34 ` [PATCH v5-resend 6/7] ASoC: sirf: Add usp driver which is used by dsp mode RongJun Ying
2014-03-07 6:15 ` Mark Brown
2014-03-05 8:34 ` [PATCH v5-resend 7/7] ASoC: sirf: Add bt-sco card RongJun Ying
2014-03-07 6:12 ` 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='CAByv0RMu0z4WETvNt+-Teo-2n+BfEc6=fx=3_Vp8SzdENmApAg@mail.gmail.com' \
--to=rjying@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=rongjun.ying@csr.com \
--cc=tiwai@suse.de \
--cc=workgroup.linux@csr.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 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).