summaryrefslogtreecommitdiff
path: root/cras/src/server/test_iodev.c
diff options
context:
space:
mode:
authorHsin-Yu Chao <hychao@chromium.org>2015-05-18 18:11:33 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-22 16:49:02 +0000
commitbb28140f38fdf6627ec26696c943dfa4f9188450 (patch)
tree751a003cb5ba4935bd741d1e991766bfbacce7bb /cras/src/server/test_iodev.c
parente01a61796e1d5e5dc34639d8ab97b6ece97078fd (diff)
downloadadhd-bb28140f38fdf6627ec26696c943dfa4f9188450.tar.gz
CRAS: iodev_list - Remove selected input/ouput
This change removes the selected input/output node from server state, since now we allow multiple nodes be enalbed using extension API and it makes less sense to store the Chrome UI selected node. Note that the selected input/ouput nodes were looked up when calling update_active_node() to select different nodes on an iodev. This is changed to pass in the node index to the callback. BUG=None TEST=Plug headphone jack, select between headphone and speaker on UI, unplug headphone jack. Do the same test for mic jack and internal mic, verify everthing works as it should be. Change-Id: I5600ee775980e5bec4b314e259391da810368873 Reviewed-on: https://chromium-review.googlesource.com/272343 Reviewed-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Hsinyu Chao <hychao@chromium.org> Tested-by: Hsinyu Chao <hychao@chromium.org>
Diffstat (limited to 'cras/src/server/test_iodev.c')
-rw-r--r--cras/src/server/test_iodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cras/src/server/test_iodev.c b/cras/src/server/test_iodev.c
index 13ed1efd..72a0f3d3 100644
--- a/cras/src/server/test_iodev.c
+++ b/cras/src/server/test_iodev.c
@@ -161,7 +161,7 @@ static int get_buffer_fd_read(struct cras_iodev *iodev,
return nread;
}
-static void update_active_node(struct cras_iodev *iodev)
+static void update_active_node(struct cras_iodev *iodev, unsigned node_idx)
{
}