From e9c3c9b62845afa97d38a9f64e877b1da86e51b1 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 18 Dec 2009 14:56:45 +0100 Subject: [PATCH] jz4740-codec: Enable DAC Switch by default. This allows audio playback without having to enable the DAC Switch before. --- target/linux/xburst/files-2.6.31/sound/soc/codecs/jzcodec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/xburst/files-2.6.31/sound/soc/codecs/jzcodec.c b/target/linux/xburst/files-2.6.31/sound/soc/codecs/jzcodec.c index 9720df612..ce5aaf187 100644 --- a/target/linux/xburst/files-2.6.31/sound/soc/codecs/jzcodec.c +++ b/target/linux/xburst/files-2.6.31/sound/soc/codecs/jzcodec.c @@ -444,6 +444,10 @@ static int __devinit jz_codec_probe(struct platform_device *pdev) jz_codec_codec = codec; + snd_soc_update_bits(codec, JZ_REG_CODEC_1, + JZ_CODEC_1_SW2_ENABLE, JZ_CODEC_1_SW2_ENABLE); + + platform_set_drvdata(pdev, jz_codec); ret = snd_soc_register_codec(codec);