* [PATCH] ASoC: max9867: Use params_width instead of open-coded
@ 2016-02-23 6:53 Axel Lin
2016-02-24 4:15 ` Applied "ASoC: max9867: Use params_width instead of open-coded" to the asoc tree Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-02-23 6:53 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Liam Girdwood, anish kumar
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
sound/soc/codecs/max9867.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index ab7a94d..e3ee391 100755
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -206,10 +206,9 @@ static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
unsigned long int bclk_rate, pclk_bclk_ratio;
int bclk_value;
- bclk_rate = params_rate(params) * 2 *
- snd_pcm_format_width(params_format(params));
+ bclk_rate = params_rate(params) * 2 * params_width(params);
pclk_bclk_ratio = max9867->pclk/bclk_rate;
- switch (snd_pcm_format_width(params_format(params))) {
+ switch (params_width(params)) {
case 8:
case 16:
switch (pclk_bclk_ratio) {
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Applied "ASoC: max9867: Use params_width instead of open-coded" to the asoc tree
2016-02-23 6:53 [PATCH] ASoC: max9867: Use params_width instead of open-coded Axel Lin
@ 2016-02-24 4:15 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2016-02-24 4:15 UTC (permalink / raw)
To: Axel Lin, anish kumar, Mark Brown; +Cc: alsa-devel
The patch
ASoC: max9867: Use params_width instead of open-coded
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 9dcc72efae313472d1d719e91b23e2bea3513789 Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@ingics.com>
Date: Tue, 23 Feb 2016 14:53:13 +0800
Subject: [PATCH] ASoC: max9867: Use params_width instead of open-coded
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: anish kumar <yesanishhere@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/max9867.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 4fb6fc7188c7..f371a52fe29d 100755
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -207,10 +207,9 @@ static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
unsigned long int bclk_rate, pclk_bclk_ratio;
int bclk_value;
- bclk_rate = params_rate(params) * 2 *
- snd_pcm_format_width(params_format(params));
+ bclk_rate = params_rate(params) * 2 * params_width(params);
pclk_bclk_ratio = max9867->pclk/bclk_rate;
- switch (snd_pcm_format_width(params_format(params))) {
+ switch (params_width(params)) {
case 8:
case 16:
switch (pclk_bclk_ratio) {
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-24 4:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 6:53 [PATCH] ASoC: max9867: Use params_width instead of open-coded Axel Lin
2016-02-24 4:15 ` Applied "ASoC: max9867: Use params_width instead of open-coded" 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.