All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH 0/2] ASoC: mediatek: mt8183-da7219: add separate speaker switch
@ 2020-02-12  5:55 Tzung-Bi Shih
  2020-02-12  5:55 ` [alsa-devel] [PATCH 1/2] ASoC: max98357a: move control of SD_MODE to DAPM Tzung-Bi Shih
  2020-02-12  5:55 ` [alsa-devel] [PATCH 2/2] ASoC: mediatek: mt8183-da7219: add speaker switch Tzung-Bi Shih
  0 siblings, 2 replies; 5+ messages in thread
From: Tzung-Bi Shih @ 2020-02-12  5:55 UTC (permalink / raw)
  To: broonie; +Cc: tzungbi, alsa-devel, dgreid, cychiang, jiaxin.yu

Per previous discussion[1], the patch moves control of SD_MODE from
PCM trigger to DAPM (i.e. set SD_MODE earilier if playback).

Possible drawback: may generate pop noise when BCLK=on but LRCLK=off.
As the datasheet[2] mentioned:
> Do not remove LRCLK while BCLK is present.
> Removing LRCLK while BCLK is present can cause unexpected output behavior
> including a large DC output voltage.

That is also the original purpose of sdmode-delay: to make sure SD_MODE
is the last one to be set.

[1]: https://patchwork.kernel.org/patch/11363953/
[2]: https://datasheets.maximintegrated.com/en/ds/MAX98357A-MAX98357B.pdf

Tzung-Bi Shih (2):
  ASoC: max98357a: move control of SD_MODE to DAPM
  ASoC: mediatek: mt8183-da7219: add speaker switch

 sound/soc/codecs/max98357a.c                  | 36 +++++++++----------
 .../mediatek/mt8183/mt8183-da7219-max98357.c  | 19 ++++++++++
 2 files changed, 36 insertions(+), 19 deletions(-)

-- 
2.25.0.225.g125e21ebc7-goog

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-13  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12  5:55 [alsa-devel] [PATCH 0/2] ASoC: mediatek: mt8183-da7219: add separate speaker switch Tzung-Bi Shih
2020-02-12  5:55 ` [alsa-devel] [PATCH 1/2] ASoC: max98357a: move control of SD_MODE to DAPM Tzung-Bi Shih
2020-02-12 23:57   ` [alsa-devel] Applied "ASoC: max98357a: move control of SD_MODE to DAPM" to the asoc tree Mark Brown
2020-02-12  5:55 ` [alsa-devel] [PATCH 2/2] ASoC: mediatek: mt8183-da7219: add speaker switch Tzung-Bi Shih
2020-02-12 23:57   ` [alsa-devel] Applied "ASoC: mediatek: mt8183-da7219: add speaker switch" to the asoc tree Mark Brown

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.