From: Sven Van Asbroeck <thesven73@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>,
Jyri Sarha <jsarha@ti.com>, Takashi Iwai <tiwai@suse.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
Russell King <rmk+kernel@armlinux.org.uk>
Subject: [RFC PATCH 2/4] ASoC: hdmi-codec: add support for bclk_ratio
Date: Mon, 4 Mar 2019 11:59:53 -0500 [thread overview]
Message-ID: <20190304165955.21696-2-TheSven73@gmail.com> (raw)
In-Reply-To: <20190304165955.21696-1-TheSven73@gmail.com>
Retrieve the bclk_ratio from the hw_params and provide it
to the HDMI bridge.
Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
---
include/sound/hdmi-codec.h | 1 +
sound/soc/codecs/hdmi-codec.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/sound/hdmi-codec.h b/include/sound/hdmi-codec.h
index 9483c55f871b..50062c773a12 100644
--- a/include/sound/hdmi-codec.h
+++ b/include/sound/hdmi-codec.h
@@ -53,6 +53,7 @@ struct hdmi_codec_params {
int sample_rate;
int sample_width;
int channels;
+ int bclk_ratio;
};
struct hdmi_codec_pdata;
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
index e5b6769b9797..6a457278fe6d 100644
--- a/sound/soc/codecs/hdmi-codec.c
+++ b/sound/soc/codecs/hdmi-codec.c
@@ -519,6 +519,7 @@ static int hdmi_codec_hw_params(struct snd_pcm_substream *substream,
hp.sample_width = params_width(params);
hp.sample_rate = params_rate(params);
hp.channels = params_channels(params);
+ hp.bclk_ratio = params_bclk_ratio(params);
return hcp->hcd.ops->hw_params(dai->dev->parent, hcp->hcd.data,
&hcp->daifmt[dai->id], &hp);
--
2.17.1
next prev parent reply other threads:[~2019-03-04 17:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-04 16:59 [RFC PATCH 1/4] alsa: make hw_params negotiation infrastructure 'bclk_ratio aware' Sven Van Asbroeck
2019-03-04 16:59 ` Sven Van Asbroeck [this message]
2019-03-04 16:59 ` [RFC PATCH 3/4] drm/i2c: tda998x: calculate CTS_N directly from the bclk_ratio Sven Van Asbroeck
2019-03-04 16:59 ` [RFC PATCH 4/4] ASoC: fsl_ssi: constrain bclk_ratio in i2s master mode Sven Van Asbroeck
2019-03-05 4:42 ` [RFC PATCH 1/4] alsa: make hw_params negotiation infrastructure 'bclk_ratio aware' Takashi Sakamoto
2019-03-05 9:35 ` Russell King - ARM Linux admin
2019-03-05 14:23 ` Sven Van Asbroeck
2019-03-06 15:53 ` Jaroslav Kysela
2019-03-08 4:10 ` Takashi Sakamoto
2019-03-08 12:59 ` Russell King - ARM Linux admin
2019-03-08 13:37 ` Russell King - ARM Linux admin
2019-03-08 14:29 ` Takashi Sakamoto
2019-03-08 14:55 ` Russell King - ARM Linux admin
2019-03-08 17:22 ` Mark Brown
2019-03-08 19:54 ` Jaroslav Kysela
2019-03-08 20:07 ` Sven Van Asbroeck
2019-03-08 20:49 ` Pierre-Louis Bossart
2019-03-08 21:13 ` Mark Brown
2019-03-08 21:54 ` Pierre-Louis Bossart
2019-03-11 8:15 ` Takashi Sakamoto
2019-03-11 15:43 ` Jaroslav Kysela
2019-03-12 15:03 ` Mark Brown
2019-03-13 5:57 ` Takashi Sakamoto
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=20190304165955.21696-2-TheSven73@gmail.com \
--to=thesven73@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jsarha@ti.com \
--cc=lgirdwood@gmail.com \
--cc=peter.ujfalusi@ti.com \
--cc=rmk+kernel@armlinux.org.uk \
--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;
as well as URLs for NNTP newsgroup(s).