1
0
Fork 0
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:
Jack Halpin 2010-03-21 05:43:55 +00:00
parent 8043db130f
commit eb1992b4bd

View file

@ -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);