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
This commit is contained in:
Marcin Bukat 2011-03-15 07:30:29 +00:00
parent f056669dcd
commit 55e7586642
2 changed files with 4 additions and 1 deletions

View file

@ -635,7 +635,10 @@ void audiohw_set_recsrc(int source, bool recording)
wmcodec_clear_bits(RIGHTMIX2, RIGHTMIX2_RI2RO); wmcodec_clear_bits(RIGHTMIX2, RIGHTMIX2_RI2RO);
wmcodec_set_bits(RIGHTMIX2, RIGHTMIX2_RD2RO); wmcodec_set_bits(RIGHTMIX2, RIGHTMIX2_RD2RO);
#if !defined(MPIO_HD300)
/* HD300 uses the same socket for headphones and line-in */
audiohw_mute(false); audiohw_mute(false);
#endif
break; break;
#endif #endif
#if (INPUT_SRC_CAPS & SRC_CAP_MIC) #if (INPUT_SRC_CAPS & SRC_CAP_MIC)

View file

@ -19,7 +19,7 @@
/* Define bitmask of input sources - recordable bitmask can be defined /* Define bitmask of input sources - recordable bitmask can be defined
* explicitly if different * explicitly if different
*/ */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
/* define the bitmask of hardware sample rates */ /* define the bitmask of hardware sample rates */
#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)