Merge " agm: workaround for 24000 framerate for device"
diff --git a/plugins/tinyalsa/test/agmcap.c b/plugins/tinyalsa/test/agmcap.c
index 07a247d..441be72 100644
--- a/plugins/tinyalsa/test/agmcap.c
+++ b/plugins/tinyalsa/test/agmcap.c
@@ -90,8 +90,8 @@
{
FILE *file;
struct wav_header header;
- unsigned int card = 0;
- unsigned int device = 0;
+ unsigned int card = 100;
+ unsigned int device = 101;
unsigned int channels = 2;
unsigned int rate = 44100;
unsigned int bits = 16;
@@ -104,7 +104,7 @@
struct device_config config;
enum pcm_format format;
int ret = 0;
- unsigned int devicepp_kv = DEVICEPP_TX_AUDIO_FLUENCE_SMECNS;
+ unsigned int devicepp_kv = 0;
unsigned int stream_kv = 0;
unsigned int instance_kv = INSTANCE_1;
diff --git a/plugins/tinyalsa/test/agmmixer.c b/plugins/tinyalsa/test/agmmixer.c
index 7458d27..d875bfb 100755
--- a/plugins/tinyalsa/test/agmmixer.c
+++ b/plugins/tinyalsa/test/agmmixer.c
@@ -970,7 +970,7 @@
gkv[index].value = val;
index++;
} else if (usecase == CAPTURE) {
- gkv[index].key = STREAMRX;
+ gkv[index].key = STREAMTX;
gkv[index].value = val;
index++;
}
diff --git a/plugins/tinyalsa/test/agmplay.c b/plugins/tinyalsa/test/agmplay.c
index 44bd986..4482857 100644
--- a/plugins/tinyalsa/test/agmplay.c
+++ b/plugins/tinyalsa/test/agmplay.c
@@ -96,10 +96,12 @@
struct chunk_fmt chunk_fmt;
unsigned int card = 100, device = 100, i=0;
int intf_num = 1;
- unsigned int *device_kv = NULL;
+ uint32_t dkv = SPEAKER;
+ uint32_t dppkv = DEVICEPP_RX_AUDIO_MBDRC;
+ unsigned int *device_kv = &dkv;
unsigned int stream_kv = 0;
unsigned int instance_kv = INSTANCE_1;
- unsigned int *devicepp_kv = NULL;
+ unsigned int *devicepp_kv = &dppkv;
bool haptics = false;
char **intf_name = NULL;
char *filename;