Date:2012-06-16 19:36:31 (7 years 11 months ago)
Author:Paul Cercueil
Commit:73b03abbb200acb1c75c11d648336c56a85ecd10
Message:ASoC: JZ4740: delay activation of the DAC to work around a sound bug.

A proper fix of that bug would require a big rewrite of the driver,
which (I hope) will be done eventually.
Files: sound/soc/codecs/jz4740.c (1 diff)

Change Details

sound/soc/codecs/jz4740.c
249249    case SND_SOC_BIAS_ON:
250250        break;
251251    case SND_SOC_BIAS_PREPARE:
252        mask = JZ4740_CODEC_1_VREF_DISABLE |
253                JZ4740_CODEC_1_VREF_AMP_DISABLE |
254                JZ4740_CODEC_1_HEADPHONE_POWERDOWN_M;
252        mask = JZ4740_CODEC_1_HEADPHONE_POWERDOWN_M;
255253        value = 0;
256254
257255        regmap_update_bits(regmap, JZ4740_REG_CODEC_1, mask, value);
256
257        msleep(500);
258        mask = JZ4740_CODEC_1_VREF_DISABLE |
259                        JZ4740_CODEC_1_VREF_AMP_DISABLE;
260        regmap_update_bits(regmap, JZ4740_REG_CODEC_1, mask, 0);
258261        break;
259262    case SND_SOC_BIAS_STANDBY:
260263        /* The only way to clear the suspend flag is to reset the codec */

Archive Download the corresponding diff file



interactive