Commit 8819f65c authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: twl4030: Use core to set the msbits constraint

Core can set the msbits constraint in behalf of the dai.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 8d725b2b
...@@ -1689,7 +1689,6 @@ static int twl4030_startup(struct snd_pcm_substream *substream, ...@@ -1689,7 +1689,6 @@ static int twl4030_startup(struct snd_pcm_substream *substream,
struct snd_soc_codec *codec = rtd->codec; struct snd_soc_codec *codec = rtd->codec;
struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(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) { if (twl4030->master_substream) {
twl4030->slave_substream = substream; twl4030->slave_substream = substream;
/* The DAI has one configuration for playback and capture, so /* The DAI has one configuration for playback and capture, so
...@@ -2175,13 +2174,15 @@ static struct snd_soc_dai_driver twl4030_dai[] = { ...@@ -2175,13 +2174,15 @@ static struct snd_soc_dai_driver twl4030_dai[] = {
.channels_min = 2, .channels_min = 2,
.channels_max = 4, .channels_max = 4,
.rates = TWL4030_RATES | SNDRV_PCM_RATE_96000, .rates = TWL4030_RATES | SNDRV_PCM_RATE_96000,
.formats = TWL4030_FORMATS,}, .formats = TWL4030_FORMATS,
.sig_bits = 24,},
.capture = { .capture = {
.stream_name = "Capture", .stream_name = "Capture",
.channels_min = 2, .channels_min = 2,
.channels_max = 4, .channels_max = 4,
.rates = TWL4030_RATES, .rates = TWL4030_RATES,
.formats = TWL4030_FORMATS,}, .formats = TWL4030_FORMATS,
.sig_bits = 24,},
.ops = &twl4030_dai_hifi_ops, .ops = &twl4030_dai_hifi_ops,
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment