From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Dimitris Papavasiliou <dpapavas@gmail.com>,
Peter Rosin <peda@axentia.se>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [RFC PATCH] ASoC: pcm512x: Implement the set_bclk_ratio interface
Date: Tue, 15 Jan 2019 08:56:01 -0600 [thread overview]
Message-ID: <5236394a-2d46-e4e2-5c1b-14ed396a8b67@linux.intel.com> (raw)
In-Reply-To: <CAHEwa0BuAmVUGoJxQs_DyohrKZ+CTDkZWT1MqUD8miuxsPo2TA@mail.gmail.com>
On 1/15/19 6:19 AM, Dimitris Papavasiliou wrote:
> On Tue, Jan 15, 2019 at 10:08 AM Peter Rosin <peda@axentia.se> wrote:
>> On 2019-01-14 18:36, Pierre-Louis Bossart wrote:
>>>> You should perhaps check if (ratio >= 1 && ratio <= 256) prior to
>>>> accepting a divider that can't be programmed? But maybe that's enforced
>>>> somewhere else? And perhaps the sanity check should be even stricter?
>>> Yes it should be stricter with a power of two only. I tried really hard
>>> to make this codec work with ratios of 50 (and a 19.2 MHz mclk) on an Up
>>> board and it's just not possible, probably not supported by hardware.
>> Disallowing anything but powers of two just because 50 doesn't work seems
>> pretty wild. According to docs I think 48 should work just fine.
>>
>> Section 8.3.2 Audio Data Interface page 16.
>> http://www.ti.com/lit/ds/symlink/pcm5142.pdf
>>
>> Or?
> According to the datasheet[1], you can program any divider between 1
> and 256, via register 33 (page 80), but, as Peter points out, in the
> description of the audio data interface (page 15), only the values 32,
> 48, 64, 128, 256 are mentioned as permissible. So one approach would
> be to restrict the values accepted by the callback to this set. Since
> the datasheet is not terribly clear on whether only these are allowed,
> and since the ratio is set explicitly in the machine driver, it could
> be argued that it would be preferable to allow all values that can be
> set in the register, to minimize the risk of needlessly rejecting
> valid configurations.
>
> [1] http://www.ti.com/lit/ds/symlink/pcm5121.pdf
I meant multiple of 16, sorry. multiples of 25/50 commonly used with
other codecs will not work.
next prev parent reply other threads:[~2019-01-15 14:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-13 20:16 [RFC PATCH] ASoC: pcm512x: Implement the set_bclk_ratio interface Dimitris Papavasiliou
2019-01-14 11:13 ` Peter Rosin
2019-01-14 14:53 ` Dimitris Papavasiliou
2019-01-15 8:06 ` Peter Rosin
2019-01-15 11:11 ` Dimitris Papavasiliou
2019-01-15 12:11 ` Peter Rosin
2019-01-14 17:36 ` Pierre-Louis Bossart
2019-01-15 8:08 ` Peter Rosin
2019-01-15 12:19 ` Dimitris Papavasiliou
2019-01-15 14:56 ` Pierre-Louis Bossart [this message]
2019-01-24 18:59 ` 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=5236394a-2d46-e4e2-5c1b-14ed396a8b67@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=dpapavas@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=peda@axentia.se \
--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.