hosted pcm-alsa improvements

* xduoo x3ii/x20:  Better line out support
 * less granular volume settings (too many steps before)
 * Better handling of swiching sample rates
 * Log actual sample rate in debug menu

Most credit goes to Roman Stolyarov
Additional integration [re]work by myself

Change-Id: I63af3740678cf2ed3170f61534e1029c81826bb6
This commit is contained in:
Solomon Peachy 2020-09-30 22:12:35 -04:00
parent 6459fa0765
commit e43726df2c
15 changed files with 218 additions and 91 deletions

View file

@ -44,6 +44,7 @@
#include "storage.h"
#include "misc.h"
#include "settings.h"
#include "audiohw.h"
#ifdef HAVE_TAGCACHE
#include "tagcache.h"
@ -3850,6 +3851,10 @@ static void audio_change_frequency_callback(unsigned short id, void *data)
static bool starting_playback = false;
struct mp3entry *id3;
#ifdef AUDIOHW_HAVE_SET_OUTPUT
audiohw_set_output();
#endif
switch (id)
{
case PLAYBACK_EVENT_START_PLAYBACK: