From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@ti.com>
Cc: alsa-devel@alsa-project.org
Subject: [PATCH v3 7/7] ASoC: twl4030: Use core to set the msbits constraint
Date: Wed, 18 Jan 2012 10:51:08 +0100 [thread overview]
Message-ID: <1326880268-3509-8-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1326880268-3509-1-git-send-email-peter.ujfalusi@ti.com>
Core can set the msbits constraint in behalf of the dai.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
sound/soc/codecs/twl4030.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 18e7101..a193f5f 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -1689,7 +1689,6 @@ static int twl4030_startup(struct snd_pcm_substream *substream,
struct snd_soc_codec *codec = rtd->codec;
struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec);
- snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);
if (twl4030->master_substream) {
twl4030->slave_substream = substream;
/* The DAI has one configuration for playback and capture, so
@@ -2175,13 +2174,15 @@ static struct snd_soc_dai_driver twl4030_dai[] = {
.channels_min = 2,
.channels_max = 4,
.rates = TWL4030_RATES | SNDRV_PCM_RATE_96000,
- .formats = TWL4030_FORMATS,},
+ .formats = TWL4030_FORMATS,
+ .sig_bits = 24,},
.capture = {
.stream_name = "Capture",
.channels_min = 2,
.channels_max = 4,
.rates = TWL4030_RATES,
- .formats = TWL4030_FORMATS,},
+ .formats = TWL4030_FORMATS,
+ .sig_bits = 24,},
.ops = &twl4030_dai_hifi_ops,
},
{
--
1.7.8.3
prev parent reply other threads:[~2012-01-18 9:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 9:51 [PATCH v3 0/7] ASoC: Add support in core to set msbits constraint Peter Ujfalusi
2012-01-18 9:51 ` [PATCH v3 1/7] ASoC: Allow drivers to specify how many bits are significant on a DAI Peter Ujfalusi
2012-01-18 10:41 ` Mark Brown
2012-01-18 9:51 ` [PATCH v3 2/7] ASoC: Apply msbits constraint for sample size bigger than the msbits Peter Ujfalusi
2012-01-18 9:51 ` [PATCH v3 3/7] ASoC: 24 bits are significant on the WM8996 audio interfaces Peter Ujfalusi
2012-01-18 9:51 ` [PATCH v3 4/7] ASoC: omap-dmic: Use core to set the msbits constraint Peter Ujfalusi
2012-01-18 9:51 ` [PATCH v3 5/7] ASoC: omap-mcpdm: Set 24msbits constraint Peter Ujfalusi
2012-01-18 9:51 ` [PATCH v3 6/7] ASoC: tlv320dac33: Use core to set the msbits constraint Peter Ujfalusi
2012-01-18 9:51 ` Peter Ujfalusi [this message]
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=1326880268-3509-8-git-send-email-peter.ujfalusi@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.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).