diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-12-04 22:03:37 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-12-04 22:03:37 +0000 |
commit | 75da103c52b1c9e40063a1a838fb2cb5f0d28dc0 (patch) | |
tree | 57dd9249d0e02c195c0b6fa0ce3a2aecfe27ccfe /firmware/drivers/audio | |
parent | af078b4f86cb124778073905b2c28cc2d9b7748b (diff) |
Keep codec HPCM (headphone common mode) enabled for Sansa Clip and Sansa m200v4 so the headphone output produces stereo instead of an L-R signal.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19340 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index 41577a3b5e..825cf51655 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -194,7 +194,14 @@ void audiohw_postinit(void) /* wait until outputs have stabilized */ sleep(HZ/4); +/* Sansa Clip and Sansa m200v4 need HPCM enabled, otherwise they output + the L-R signal on both L and R headphone outputs instead of normal stereo. + TODO : If this turns out to apply to all ams3525 targets, consider + simplifying the precompiler condition to #if defined(AS3525). +*/ +#if !defined(SANSA_CLIP) && !defined(SANSA_M200V4) as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_off); +#endif #ifdef CPU_PP ascodec_suppressor_on(false); |