From 55e75866422aabbe927a52fb2ddaccc2525061a1 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 15 Mar 2011 07:30:29 +0000 Subject: MPIO HD300: Enable line-in recording. Thanks Andriej Azariev for pointing out such capability of this DAP. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29590 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/wm8751.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/drivers') diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c index 30c3b0d287..d2d7f8f761 100644 --- a/firmware/drivers/audio/wm8751.c +++ b/firmware/drivers/audio/wm8751.c @@ -635,7 +635,10 @@ void audiohw_set_recsrc(int source, bool recording) wmcodec_clear_bits(RIGHTMIX2, RIGHTMIX2_RI2RO); wmcodec_set_bits(RIGHTMIX2, RIGHTMIX2_RD2RO); +#if !defined(MPIO_HD300) + /* HD300 uses the same socket for headphones and line-in */ audiohw_mute(false); +#endif break; #endif #if (INPUT_SRC_CAPS & SRC_CAP_MIC) -- cgit v1.2.3