]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: tlv320dac33: Use core to set the msbits constraint
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 18 Jan 2012 11:18:25 +0000 (12:18 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:31 +0000 (13:58 +0000)
Core can set the msbits constraint in behalf of the dai.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/tlv320dac33.c

index f0aad26cdb3166ea18456cdfafec5bce35835ac5..21ccf0a616a9af4c2483975c8c9512f72b405f5d 100644 (file)
@@ -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,
 };