All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akshu Agrawal <akshu.agrawal@amd.com>
To: broonie@kernel.org, alsa-devel@alsa-project.org
Cc: tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com
Subject: [PATCH] ASoC: DA7219: Exposes clock enable as a mixer setting
Date: Fri, 16 Feb 2018 13:11:14 +0530	[thread overview]
Message-ID: <1518766875-15164-3-git-send-email-akshu.agrawal@amd.com> (raw)
In-Reply-To: <1518766875-15164-1-git-send-email-akshu.agrawal@amd.com>

This is required for designs which uses da7219 in master mode
and same clks are shared with other codecs. We need to enable
and disable the clk during playback and capture on other codecs.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
 sound/soc/codecs/da7219.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index 5e043d0..61ed8be 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -672,6 +672,11 @@ static int da7219_tonegen_freq_put(struct snd_kcontrol *kcontrol,
 	SOC_DOUBLE_R("Headphone ZC Gain Switch", DA7219_HP_L_CTRL,
 		     DA7219_HP_R_CTRL, DA7219_HP_L_AMP_ZC_EN_SHIFT,
 		     DA7219_SWITCH_EN_MAX, DA7219_NO_INVERT),
+
+	/* Clock Enable */
+	SOC_SINGLE("Clock Enable", DA7219_DAI_CLK_MODE,
+		   DA7219_DAI_CLK_EN_SHIFT, DA7219_SWITCH_EN_MAX,
+		   DA7219_NO_INVERT),
 };
 
 
-- 
1.9.1

  parent reply	other threads:[~2018-02-16  7:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16  7:41 [PATCH] ASoC: ADAU7002: Adding ACPI id Akshu Agrawal
2018-02-16  7:41 ` [PATCH] ASoC: AMD: Add machine driver for ST DA7219 MAX98357 Akshu Agrawal
2018-02-16 17:12   ` Applied "ASoC: AMD: Add machine driver for ST DA7219 MAX98357" to the asoc tree Mark Brown
2018-02-16  7:41 ` Akshu Agrawal [this message]
2018-02-16 16:02   ` [PATCH] ASoC: DA7219: Exposes clock enable as a mixer setting Mark Brown
2018-02-16  7:41 ` [PATCH] ASoC: dwc: Extends DW_I2S_QUIRK_COMP_PARAM1 to playback Akshu Agrawal
2018-02-16 17:12   ` Applied "ASoC: dwc: Extends DW_I2S_QUIRK_COMP_PARAM1 to playback" to the asoc tree Mark Brown
2018-02-19 16:57 ` Applied "ASoC: ADAU7002: Adding ACPI id" " 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=1518766875-15164-3-git-send-email-akshu.agrawal@amd.com \
    --to=akshu.agrawal@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    /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.