diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-04-04 17:42:46 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-05-24 16:23:34 -0600 |
commit | 8391b2a9dda2cf329162ab6ce5388877cf4950cb (patch) | |
tree | bd21f98aba21577a1590943f2e0f3dd6c4206a8c /sound | |
parent | 2c12e3942ca63be275de12d05011588ee4972716 (diff) |
Bug TLSbo87686: Fix voice-codec playback noise.
http://www.bitshrine.org/gpp/linux-2.6.19.2-mx-voice_codec_noise.patch
Diffstat (limited to 'sound')
-rw-r--r-- | sound/arm/mxc-alsa-pmic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/arm/mxc-alsa-pmic.c b/sound/arm/mxc-alsa-pmic.c index 4699e2114b54..4dd4126853e5 100644 --- a/sound/arm/mxc-alsa-pmic.c +++ b/sound/arm/mxc-alsa-pmic.c @@ -1289,6 +1289,8 @@ void configure_codec(snd_pcm_substream_t * substream, int stream_id) pmic->sample_rate, NO_INVERT); msleep(20); pmic_audio_vcodec_set_config(handle, VCODEC_MASTER_CLOCK_OUTPUTS); + pmic_audio_digital_filter_reset(handle); + msleep(15); if (stream_id == 2) { pmic_audio_output_enable_mixer(handle); set_mixer_output_device(handle, MIXER_OUT, OP_NODEV, 1); @@ -1335,6 +1337,8 @@ void configure_stereodac(snd_pcm_substream_t * substream) pmic_audio_stdac_set_rxtx_timeslot(handle, USE_TS0_TS1); pmic_audio_stdac_enable_mixer(handle, USE_TS2_TS3, STDAC_NO_MIX, STDAC_MIX_OUT_0DB); + pmic_audio_digital_filter_reset(handle); + msleep(10); pmic_audio_set_protocol(handle, ssi_bus, pmic->protocol, pmic->mode, USE_2_TIMESLOTS); pmic_audio_stdac_set_clock(handle, pmic->pll, pmic->pll_rate, |