summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvivian,zhang <vivian.zhang@intel.com>2013-11-15 08:39:41 (GMT)
committerZhang,Vivian <vivian.zhang@intel.com>2013-11-15 08:39:41 (GMT)
commitca997914fc41b228c9db9aed9ef96cf1ee2873ba (patch)
tree7e0aa7333d5919681cb55bf6fec470f2c5761158
parent2b73b722a0b4471439f1cff515fdfc6ac9c6c011 (diff)
downloadsound-plugin-hal-clovertrail-ca997914fc41b228c9db9aed9ef96cf1ee2873ba.zip
sound-plugin-hal-clovertrail-ca997914fc41b228c9db9aed9ef96cf1ee2873ba.tar.gz
sound-plugin-hal-clovertrail-ca997914fc41b228c9db9aed9ef96cf1ee2873ba.tar.bz2
Setup the initial volume which is required after audio HDMI is disabled in kernel
Change-Id: I107591c6d00b114443da33d8e2b4bc327fe25320
-rw-r--r--src/audio_hal_plugin_clv.c11
-rw-r--r--src/sound_card_control_clv.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/audio_hal_plugin_clv.c b/src/audio_hal_plugin_clv.c
index 0038492..780b659 100644
--- a/src/audio_hal_plugin_clv.c
+++ b/src/audio_hal_plugin_clv.c
@@ -174,6 +174,17 @@ static int hal_plug_init()
sound_card_ctrl_set(10, 194);
sound_card_ctrl_set(6, 180);
+
+ sound_card_ctrl_set(71, 50);
+ sound_card_ctrl_set(63, 62);
+ sound_card_ctrl_set(4, 0);
+ sound_card_ctrl_set(94, 1);
+ sound_card_ctrl_set(93, 1);
+ sound_card_ctrl_set(67, 61);
+ sound_card_ctrl_set(74, 1);
+ sound_card_ctrl_set(95, 1);
+ sound_card_ctrl_set(96, 1);
+
lpe_setup_clv();
debug_fleave();
return AUDIO_HAL_STATE_SUCCESS;
diff --git a/src/sound_card_control_clv.c b/src/sound_card_control_clv.c
index d2a92a9..4ad8460 100644
--- a/src/sound_card_control_clv.c
+++ b/src/sound_card_control_clv.c
@@ -24,7 +24,7 @@
#include <mm_debug.h>
#include <mm_error.h>
-const char * card = "hw:4";
+const char * card = "hw:3";
typedef struct {
snd_ctl_elem_info_t *info;