mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
Samsung YHxxx: reduce pop noise on power down
Change-Id: Ifc82ac1051ed05527393838d8aa93bde65287b5d
This commit is contained in:
parent
1cada1f833
commit
399904a916
1 changed files with 6 additions and 1 deletions
|
|
@ -176,6 +176,12 @@ void audiohw_close(void)
|
||||||
/* power down the DAC */
|
/* power down the DAC */
|
||||||
akc_clear(AK4537_PM2, PMDAC);
|
akc_clear(AK4537_PM2, PMDAC);
|
||||||
|
|
||||||
|
/* Let the common voltage fall down before powering down headphone amp,
|
||||||
|
or a pop noise will occur. The fall time depends on the capacitor value
|
||||||
|
connected with the MUTET pin and is 100k*C up to 250k*C.
|
||||||
|
For Samsung YH devices (4.7uF) a minimum time of 470ms is needed. */
|
||||||
|
udelay(800000);
|
||||||
|
|
||||||
/* power down the headphone amp */
|
/* power down the headphone amp */
|
||||||
akc_set(AK4537_SIGSEL2, HPL | HPR);
|
akc_set(AK4537_SIGSEL2, HPL | HPR);
|
||||||
|
|
||||||
|
|
@ -187,7 +193,6 @@ void audiohw_close(void)
|
||||||
|
|
||||||
/* power down VCOM */
|
/* power down VCOM */
|
||||||
akc_clear(AK4537_PM1, PMVCM);
|
akc_clear(AK4537_PM1, PMVCM);
|
||||||
udelay(100000);
|
|
||||||
|
|
||||||
akcodec_close(); /* target-specific */
|
akcodec_close(); /* target-specific */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue