From: Peter Ujfalusi Date: Wed, 18 Jan 2012 11:18:25 +0000 (+0100) Subject: ASoC: tlv320dac33: Use core to set the msbits constraint X-Git-Tag: v3.4-rc1~88^2^2~66 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8d725b2bcb82ff46236bf745c9ab7cc4dde74699;p=karo-tx-linux.git ASoC: tlv320dac33: Use core to set the msbits constraint Core can set the msbits constraint in behalf of the dai. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index f0aad26cdb31..21ccf0a616a9 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c @@ -806,8 +806,6 @@ static int dac33_startup(struct snd_pcm_substream *substream, /* Stream started, save the substream pointer */ dac33->substream = substream; - snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); - return 0; } @@ -1516,6 +1514,7 @@ static struct snd_soc_dai_driver dac33_dai = { .channels_max = 2, .rates = DAC33_RATES, .formats = DAC33_FORMATS,}, + .sig_bits = 24, .ops = &dac33_dai_ops, };