망고220 (Exynos4412 ) 오디오 레코딩 안되는 문제 patch

$ ./build_kernel config
|
System Type --->
[*] Use thermal management
|
arch/arm/mach-exynos/tmu-exynos.c
|
static int get_cur_temp(struct tmu_info *info)
{
int curr_temp;
int temperature;
/* After reading temperature code from register, compensating
* its value and calculating celsius temperatue,
* get current temperatue.
*/
curr_temp = __raw_readl(info->tmu_base + CURRENT_TEMP) & 0xff;
/* compensate and calculate current temperature */
temperature = curr_temp - info->te1 + TMU_DC_VALUE;
if (temperature < 10) {
/* temperature code range are between min 10 and 125 */
pr_alert("Current temperature is in inaccurate range->"
" check if vdd_18_ts is on or room temperature.\n");
}
return temperature;
}
|
[root@Mango520 ~]# cat /sys/devices/platform/tmu/temperature
53
|
System Type --->
SAMSUNG EXYNOS SoCs Support --->
[*] Use thermal management
|
tmu_debugfs =
debugfs_create_file("tmu_dev_status",
S_IRUGO, NULL, info, &tmu_dev_status_fops);
|
[root@Mango520 debug]# mount -t debugfs none /sys/kernel/debug
[root@Mango520 debug]# ls /sys/kernel/debug/
asoc/ memblock/
bdi/ mmc0/
binder/ mmc1/
bluetooth/ mmc2/
clock/ pm_qos
dynamic_debug/ regmap/
extfrag/ s3c-fb
exynos5_bus sched_features
exynos5_devfreq_int_time_in_state shrinker
exynos5_devfreq_mif_time_in_state suspend_stats
gpio suspend_time*
hid/ sync
ieee80211/ tmu_dev_status
ion/ tracing/
kbase_carveout usb/
lpa_cdev_status wakeup_sources
mem_usage/
[root@Mango520 debug]# cat /sys/kernel/debug/tmu_dev_status
Current Temperature : 47
Current TMU State : TMU_STATUS_NORMAL
Memory Throttling : unthrottled
Memory throttle auto refresh time : 1937 ns
Normal auto refresh time : 3875 ns
TMU monitoring sample rate : 200 ms
[root@Mango520 debug]# cat /sys/kernel/debug/tmu_dev_status
Current Temperature : 47
Current TMU State : TMU_STATUS_NORMAL
Memory Throttling : unthrottled
Memory throttle auto refresh time : 1937 ns
Normal auto refresh time : 3875 ns
TMU monitoring sample rate : 200 ms
|