From: <cri...@us...> - 2006-10-19 05:44:31
|
Revision: 635 http://svn.sourceforge.net/hackndev/?rev=635&view=rev Author: cristianop Date: 2006-10-18 22:44:21 -0700 (Wed, 18 Oct 2006) Log Message: ----------- palmtx: re-applying pxa2xx-ac97 reg 0x54 patch Modified Paths: -------------- linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c Modified: linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c =================================================================== --- linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c 2006-10-19 05:29:19 UTC (rev 634) +++ linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c 2006-10-19 05:44:21 UTC (rev 635) @@ -115,11 +115,22 @@ GSR = GSR_CDONE | GSR_SDONE; gsr_bits = 0; *reg_addr = val; +//#ifdef CONFIG_PXA27x +#ifdef CONFIG_MACH_PALMTX + // recommended procedure for reg 0x54 (see PXA27x Specification Update: 28007109.pdf sec.: E54) + if (reg == AC97_GPIO_STATUS){ + udelay(50); + } + else { +#endif if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE, 1) <= 0 && !((GSR | gsr_bits) & GSR_CDONE)) printk(KERN_ERR "%s: write error (ac97_reg=%d GSR=%#lx)\n", __FUNCTION__, reg, GSR | gsr_bits); - +//#ifdef CONFIG_PXA27x +#ifdef CONFIG_MACH_PALMTX + } +#endif mutex_unlock(&car_mutex); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |