summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2020-12-03 07:13:00 +0300
committerJoy Cho <joy.cho@hardkernel.com>2020-12-04 04:41:09 +0300
commitadfcfdddb8edb5437043ab771d94338684ec446d (patch)
treedca9105e4dca8aba587e42ea8d93f3299b4b556b
parentee56599cdd2eb383c7127df0ff938fc7240b288d (diff)
downloadu-boot-adfcfdddb8edb5437043ab771d94338684ec446d.tar.xz
sound: rk817-codec: Change initial volume for playback path
Change-Id: Iabc77d02effa1ab3d34351cbdeda36c20e6b807c
-rw-r--r--drivers/sound/rk817_codec.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/sound/rk817_codec.c b/drivers/sound/rk817_codec.c
index 56e79b9d07..a86ec8752c 100644
--- a/drivers/sound/rk817_codec.c
+++ b/drivers/sound/rk817_codec.c
@@ -32,7 +32,11 @@
#define CODEC_SET_SPK 1
#define CODEC_SET_HP 2
-#define INITIAL_VOLUME 3
+#ifdef CONFIG_PLATFORM_ODROID_GOADV
+#define INITIAL_VOLUME 0x50 /* -30db */
+#else
+#define INITIAL_VOLUME 3 /* -1.125db */
+#endif
struct rk817_codec_priv {
struct udevice *dev;
@@ -310,6 +314,8 @@ static int rk817_startup(struct udevice *dev)
{
struct rk817_codec_priv *rk817 = dev_get_priv(dev);
+ /* For OGA, playback path is set
+ * from headphone detect status. */
#ifndef CONFIG_PLATFORM_ODROID_GOADV
rk817_playback_path_put(rk817, SPK_HP);
#endif