[Feature][ZXW-65]merged P49 base code

Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/lib/libtinyalsa/audio_mixer_ctrl.c b/ap/lib/libtinyalsa/audio_mixer_ctrl.c
index 3ec6fe3..311ceca 100755
--- a/ap/lib/libtinyalsa/audio_mixer_ctrl.c
+++ b/ap/lib/libtinyalsa/audio_mixer_ctrl.c
@@ -1289,6 +1289,17 @@
 {
 		return 0;
 }
+int mix_set_vploop(struct mixer *mixer, int path)
+{
+
+	return 0;
+}
+int mix_get_vploop(struct mixer *mixer, int *state)
+{
+	return 0;
+}
+
+
 #else
 int mix_set_output_path(struct mixer *mixer, int path)
 {
@@ -1833,6 +1844,28 @@
 	
 }
 
+int mix_set_vploop(struct mixer *mixer, int path)
+{
+	struct mixer_ctl *ctl;
+	char name[] = "vp loop";
+	ctl = mixer_get_ctl_by_name(mixer, name);
+	if (!ctl) {
+		fprintf(stderr, "Invalid mixer control\n");
+		return -1;
+	}
+
+	mixer_ctl_set_value(ctl, 0, path);
+	
+	return 0;
+}
+int mix_get_vploop(struct mixer *mixer, int *state)
+{
+
+	mix_get_value_wrap(mixer, "vp loop", state);
+
+	return 0;
+
+}
 
 
 #endif