From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: broonie@kernel.org, lgirdwood@gmail.com
Cc: alsa-devel@alsa-project.org, kuninori.morimoto.gx@renesas.com
Subject: [PATCH 1/2] ASoC: pcm3168a: Rename min_frame_size to slot_width
Date: Thu, 20 Jun 2019 12:26:55 +0300 [thread overview]
Message-ID: <20190620092656.14759-2-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <20190620092656.14759-1-peter.ujfalusi@ti.com>
It represents slot size and not frame.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
sound/soc/codecs/pcm3168a.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index ed0b4317c9ae..861d24cc002e 100644
--- a/sound/soc/codecs/pcm3168a.c
+++ b/sound/soc/codecs/pcm3168a.c
@@ -432,7 +432,7 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
u32 val, mask, shift, reg;
unsigned int rate, fmt, ratio, max_ratio;
unsigned int chan;
- int i, min_frame_size;
+ int i, slot_width;
rate = params_rate(params);
chan = params_channels(params);
@@ -467,11 +467,11 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
}
if (pcm3168a->slot_width)
- min_frame_size = pcm3168a->slot_width;
+ slot_width = pcm3168a->slot_width;
else
- min_frame_size = params_width(params);
+ slot_width = params_width(params);
- switch (min_frame_size) {
+ switch (slot_width) {
case 16:
if (master_mode || (fmt != PCM3168A_FMT_RIGHT_J)) {
dev_err(component->dev, "16-bit slots are supported only for slave mode using right justified\n");
@@ -488,7 +488,7 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
case 32:
break;
default:
- dev_err(component->dev, "unsupported frame size: %d\n", min_frame_size);
+ dev_err(component->dev, "unsupported frame size: %d\n", slot_width);
return -EINVAL;
}
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
next prev parent reply other threads:[~2019-06-20 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-20 9:26 [PATCH 0/2] ASoC: pcm3168a: Enable multiple digital port usage Peter Ujfalusi
2019-06-20 9:26 ` Peter Ujfalusi [this message]
2019-06-20 13:32 ` Applied "ASoC: pcm3168a: Rename min_frame_size to slot_width" to the asoc tree Mark Brown
2019-06-20 9:26 ` [PATCH 2/2] ASoC: pcm3168a: Add support for multi DIN/DOUT with TDM slots parameter Peter Ujfalusi
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=20190620092656.14759-2-peter.ujfalusi@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.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 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.