FiiO M3K: remove volume setting on rec. screen
This controls the playback volume, which is not useful for the M3K because it's impossible to play back and record at the same time. Change-Id: I5b0931c22b484f3ff6441d6c88079f18ec70f7f8
This commit is contained in:
parent
c1f1d91404
commit
127bb1b6e1
2 changed files with 13 additions and 0 deletions
|
@ -739,7 +739,9 @@ static void trigger_listener(int trigger_status)
|
|||
/* Stuff for drawing the screen */
|
||||
|
||||
enum rec_list_items_stereo {
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
ITEM_VOLUME,
|
||||
#endif
|
||||
ITEM_GAIN,
|
||||
#if defined(HAVE_LINE_REC) || defined(HAVE_FMRADIO_REC)
|
||||
ITEM_GAIN_L,
|
||||
|
@ -771,12 +773,14 @@ static const char* reclist_get_name(int selected_item, void * data,
|
|||
|
||||
switch (listid_to_enum[selected_item])
|
||||
{
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
case ITEM_VOLUME:
|
||||
snprintf(buffer, buffer_len, "%s: %s", str(LANG_VOLUME),
|
||||
fmt_gain(SOUND_VOLUME,
|
||||
global_settings.volume,
|
||||
buf2, sizeof(buf2)));
|
||||
break;
|
||||
#endif
|
||||
case ITEM_GAIN:
|
||||
switch(global_settings.rec_source) {
|
||||
#ifdef HAVE_MIC_REC
|
||||
|
@ -1155,7 +1159,9 @@ bool recording_screen(bool no_source)
|
|||
#ifdef HAVE_SPDIF_REC
|
||||
if(global_settings.rec_source == AUDIO_SRC_SPDIF)
|
||||
{
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
listid_to_enum[listi++] = ITEM_VOLUME;
|
||||
#endif
|
||||
listid_to_enum[listi++] = ITEM_SAMPLERATE;
|
||||
listid_to_enum[listi++] = ITEM_FILENAME;
|
||||
|
||||
|
@ -1164,7 +1170,9 @@ bool recording_screen(bool no_source)
|
|||
else
|
||||
#endif
|
||||
{
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
listid_to_enum[listi++] = ITEM_VOLUME;
|
||||
#endif
|
||||
listid_to_enum[listi++] = ITEM_GAIN;
|
||||
#if defined(HAVE_LINE_REC) || defined(HAVE_FMRADIO_REC)
|
||||
if(HAVE_MIC_REC_((global_settings.rec_source != AUDIO_SRC_MIC) || )
|
||||
|
@ -1265,9 +1273,11 @@ bool recording_screen(bool no_source)
|
|||
case ACTION_SETTINGS_INCREPEAT:
|
||||
switch (listid_to_enum[gui_synclist_get_sel_pos(&lists)])
|
||||
{
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
case ITEM_VOLUME:
|
||||
recording_step_levels(SOUND_VOLUME, 1);
|
||||
break;
|
||||
#endif
|
||||
case ITEM_GAIN:
|
||||
switch(global_settings.rec_source) {
|
||||
#ifdef HAVE_MIC_REC
|
||||
|
@ -1335,9 +1345,11 @@ bool recording_screen(bool no_source)
|
|||
case ACTION_SETTINGS_DECREPEAT:
|
||||
switch (listid_to_enum[gui_synclist_get_sel_pos(&lists)])
|
||||
{
|
||||
#ifndef HAVE_RECORDING_WITHOUT_MONITORING
|
||||
case ITEM_VOLUME:
|
||||
recording_step_levels(SOUND_VOLUME, -1);
|
||||
break;
|
||||
#endif
|
||||
case ITEM_GAIN:
|
||||
switch(global_settings.rec_source) {
|
||||
#ifdef HAVE_MIC_REC
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
#define INPUT_SRC_CAPS SRC_CAP_MIC
|
||||
#define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP|POWER_MODE_CAP|MIC_GAIN_CAP)
|
||||
#define HAVE_RECORDING
|
||||
#define HAVE_RECORDING_WITHOUT_MONITORING
|
||||
#define HAVE_AK4376
|
||||
#define HAVE_X1000_ICODEC_REC
|
||||
#define HAVE_SW_TONE_CONTROLS
|
||||
|
|
Loading…
Reference in a new issue