forked from len0rd/rockbox
SansaAMSv2 as3541.c Include key line from funman's patch to get sound on clip+ and have it only apply to as3525v2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25264 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8043db130f
commit
eb1992b4bd
1 changed files with 5 additions and 1 deletions
|
|
@ -186,9 +186,13 @@ void audiohw_preinit(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set headphone over-current to 0, Min volume */
|
/* Set headphone over-current to 0, Min volume */
|
||||||
|
#if CONFIG_CPU != AS3525v2
|
||||||
as3514_write(AS3514_HPH_OUT_R,
|
as3514_write(AS3514_HPH_OUT_R,
|
||||||
HPH_OUT_R_HP_OVC_TO_0MS | 0x00);
|
HPH_OUT_R_HP_OVC_TO_0MS | 0x00);
|
||||||
|
#else
|
||||||
|
as3514_write(AS3514_HPH_OUT_R, (0<<7) /* out */ | (1<<5) /* dac */
|
||||||
|
| 0x1f /* vol */);
|
||||||
|
#endif
|
||||||
/* Headphone ON, MUTE, Min volume */
|
/* Headphone ON, MUTE, Min volume */
|
||||||
as3514_write(AS3514_HPH_OUT_L,
|
as3514_write(AS3514_HPH_OUT_L,
|
||||||
HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00);
|
HPH_OUT_L_HP_ON | HPH_OUT_L_HP_MUTE | 0x00);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue