From: Ryan Lee <ryans.lee@maximintegrated.com>
To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com, ryans.lee@maximintegrated.com,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Cc: ryan.lee.maxim@gmail.com
Subject: [PATCH 3/4] ASoC: max98373: Added TDM off if parameters are all zeroes
Date: Tue, 9 Jan 2018 21:02:00 -0800 [thread overview]
Message-ID: <1515560521-10850-3-git-send-email-ryans.lee@maximintegrated.com> (raw)
In-Reply-To: <1515560521-10850-1-git-send-email-ryans.lee@maximintegrated.com>
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
---
Changelog:
Added tdm_mode off condition when all input parameters are zero
sound/soc/codecs/max98373.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c
index 77b86c4..c5ff30f 100644
--- a/sound/soc/codecs/max98373.c
+++ b/sound/soc/codecs/max98373.c
@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,
unsigned int mask;
int x, slot_found;
- max98373->tdm_mode = true;
+ if (!tx_mask && !rx_mask && !slots && !slot_width)
+ max98373->tdm_mode = false;
+ else
+ max98373->tdm_mode = true;
/* BCLK configuration */
bsel = max98373_get_bclk_sel(slots * slot_width);
--
2.7.4
next prev parent reply other threads:[~2018-01-10 5:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 5:01 [PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style Ryan Lee
2018-01-10 5:01 ` [PATCH 2/4] ASoC: max98373: Added missing blank lines Ryan Lee
2018-01-10 11:13 ` Applied "ASoC: max98373: Added missing blank lines" to the asoc tree Mark Brown
2018-01-10 5:02 ` Ryan Lee [this message]
2018-01-10 11:13 ` Applied "ASoC: max98373: Added TDM off if parameters are all zeroes" " Mark Brown
2018-01-10 5:02 ` [PATCH 4/4] ASoC: max98373: Modified control names for TLV controls Ryan Lee
2018-01-10 11:13 ` Applied "ASoC: max98373: Modified control names for TLV controls" to the asoc tree Mark Brown
2018-01-10 10:15 ` [PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style Mark Brown
2018-01-10 10:21 ` Takashi Iwai
2018-01-10 10:29 ` Mark Brown
2018-01-18 21:35 ` Ryan Lee
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=1515560521-10850-3-git-send-email-ryans.lee@maximintegrated.com \
--to=ryans.lee@maximintegrated.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=ryan.lee.maxim@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®