Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1732516 > unrolled thread
| Started by | Mark Brown <broonie@kernel.org> |
|---|---|
| First post | 2017-09-14 21:00 +0200 |
| Last post | 2017-09-15 02:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format Mark Brown <broonie@kernel.org> - 2017-09-14 21:00 +0200
RE: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format Ryan Lee <RyanS.Lee@maximintegrated.com> - 2017-09-15 02:40 +0200
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2017-09-14 21:00 +0200 |
| Subject | Re: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format |
| Message-ID | <upHwK-hq-9@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Sep 11, 2017 at 09:12:18AM -0700, Ryan Lee wrote:
> Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
> ---
Please make an effort to write changelogs that clearly describe the
change you're making. This is doing way more than just implementing DSP
mode, it's also adding a fairly complicated set_tdm_slot() implementation
which isn't mentioned at all. It probably needs splitting into multiple
patches as well.
> @@ -414,6 +504,9 @@ static int max98927_dac_event(struct snd_soc_dapm_widget *w,
> struct max98927_priv *max98927 = snd_soc_codec_get_drvdata(codec);
>
> switch (event) {
> + case SND_SOC_DAPM_PRE_PMU:
> + max98927->tdm_mode = 0;
> + break;
> case SND_SOC_DAPM_POST_PMU:
> regmap_update_bits(max98927->regmap,
> MAX98927_R003A_AMP_EN,
Why is an event associated with the DAC changing something related to
the DAI format? These things should be unrelated.
[toc] | [next] | [standalone]
| From | Ryan Lee <RyanS.Lee@maximintegrated.com> |
|---|---|
| Date | 2017-09-15 02:40 +0200 |
| Message-ID | <upMPL-3L6-1@gated-at.bofh.it> |
| In reply to | #1732516 |
>-----Original Message-----
>From: Mark Brown [mailto:broonie@kernel.org]
>Sent: Thursday, September 14, 2017 11:50 AM
>To: Ryan Lee <RyanS.Lee@maximintegrated.com>
>Cc: lgirdwood@gmail.com; perex@perex.cz; tiwai@suse.com;
>kuninori.morimoto.gx@renesas.com; alsa-devel@alsa-project.org; linux-
>kernel@vger.kernel.org; ryan.lee.maxim@gmail.com
>Subject: Re: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and
>DSP_B format
>
>On Mon, Sep 11, 2017 at 09:12:18AM -0700, Ryan Lee wrote:
>> Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
>> ---
>
>Please make an effort to write changelogs that clearly describe the change
>you're making. This is doing way more than just implementing DSP mode, it's
>also adding a fairly complicated set_tdm_slot() implementation which isn't
>mentioned at all. It probably needs splitting into multiple patches as well.
I split this patch as two separated patches and sent again.
One is about adding DSP_A, DSP_B support.
Another is about TDM slot configuration.
I added more changelog inside.
>
>> @@ -414,6 +504,9 @@ static int max98927_dac_event(struct
>snd_soc_dapm_widget *w,
>> struct max98927_priv *max98927 =
>snd_soc_codec_get_drvdata(codec);
>>
>> switch (event) {
>> + case SND_SOC_DAPM_PRE_PMU:
>> + max98927->tdm_mode = 0;
>> + break;
>> case SND_SOC_DAPM_POST_PMU:
>> regmap_update_bits(max98927->regmap,
>> MAX98927_R003A_AMP_EN,
>
>Why is an event associated with the DAC changing something related to the DAI
>format? These things should be unrelated.
In TDM mode, BCLK is being configured inside 'max98927_dai_tdm_slot' because TDM slot information(number of slots, slot width) is available in there.
In normal case, BCLK is being configured when 'hw_params' is called and TDM slot information is not available in this function.
So I added 'tdm_mode' variable to avoid overwrite BCLK configuration when 'hw_params' function is called after TDM slot configuration is done.
I wanted to clear this variable once playback is over so I added clear function when DAPM event is received.
I referred some codec driver change TDM related things when DAC event is received after TDM slot configuration is done.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web