Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1601482
| From | Daniel Baluta <daniel.baluta@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [alsa-devel] [RFC PATCH] ASoC: wm8960: Use physical width for bclk |
| Date | 2017-03-15 16:20 +0100 |
| Message-ID | <tliSt-Ye-1@gated-at.bofh.it> (permalink) |
| References | <tldg5-5yN-13@gated-at.bofh.it> <tldg5-5yN-11@gated-at.bofh.it> <tlhjH-8i6-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Mar 15, 2017 at 3:33 PM, Mark Brown <broonie@kernel.org> wrote: > On Wed, Mar 15, 2017 at 09:19:01AM +0000, Charles Keepax wrote: >> On Tue, Mar 14, 2017 at 06:57:02PM +0200, Daniel Baluta wrote: > >> > - wm8960->bclk = snd_soc_params_to_bclk(params); >> > + wm8960->bclk = params_physical_width(params) * >> > + params_channels(params) * params_rate(params); >> > if (params_channels(params) == 1) >> > wm8960->bclk *= 2; > >> Would quite like to see Mark's thoughts on this. Feels a bit to >> me (although I am not certain) like we are solving the problem in >> the wrong place, isn't this really setting the desired BCLK and >> then in wm8960_configure_clocking we should set the lowest BCLK >> we can that is greater than or equal to the desired. > > Exactly, this is the wrong fix in the wrong place - if this is something > we want to do we should be doing it in the shared functions so all > CODECs get the same behaviour but really I think Charles' suggestion > makes more sense. I see your point. Thanks a lot for feedback. I already have an implementation for Charles' suggestion. Will send the patches asap. thanks, Daniel.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [RFC PATCH] ASoC: wm8960: Use physical width for bclk Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2017-03-15 10:20 +0100
Re: [RFC PATCH] ASoC: wm8960: Use physical width for bclk Daniel Baluta <daniel.baluta@nxp.com> - 2017-03-15 12:50 +0100
Re: [RFC PATCH] ASoC: wm8960: Use physical width for bclk Mark Brown <broonie@kernel.org> - 2017-03-15 14:40 +0100
Re: [alsa-devel] [RFC PATCH] ASoC: wm8960: Use physical width for bclk Daniel Baluta <daniel.baluta@gmail.com> - 2017-03-15 16:20 +0100
csiph-web