CRAS: Format test_iodev

Reformat codes with the .clang-format we just introduced.
To format whole files provided in-place:
clang-format -i -style=file [<file> ...]

BUG=chromium:950858
TEST=Add directory to check_format_error and run
FEATURES="test" USE=asan emerge-${BOARD} -v media-sound/adhd

Change-Id: I6a25ca2c85a3875e8d6f0b9be124e3b16c9e74a4
Reviewed-on: https://chromium-review.googlesource.com/1670830
Tested-by: En-Shuo Hsu <enshuo@google.com>
Commit-Ready: En-Shuo Hsu <enshuo@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
diff --git a/cras/src/server/test_iodev.c b/cras/src/server/test_iodev.c
index 37730d3..47ff336 100644
--- a/cras/src/server/test_iodev.c
+++ b/cras/src/server/test_iodev.c
@@ -21,18 +21,11 @@
 
 #define TEST_BUFFER_SIZE (16 * 1024)
 
-static size_t test_supported_rates[] = {
-	16000, 0
-};
+static size_t test_supported_rates[] = { 16000, 0 };
 
-static size_t test_supported_channel_counts[] = {
-	1, 0
-};
+static size_t test_supported_channel_counts[] = { 1, 0 };
 
-static snd_pcm_format_t test_supported_formats[] = {
-	SND_PCM_FORMAT_S16_LE,
-	0
-};
+static snd_pcm_format_t test_supported_formats[] = { SND_PCM_FORMAT_S16_LE, 0 };
 
 struct test_iodev {
 	struct cras_iodev base;
@@ -82,14 +75,13 @@
 
 	cras_iodev_init_audio_area(iodev, iodev->format->num_channels);
 	testio->fmt_bytes = cras_get_format_bytes(iodev->format);
-	testio->audbuff = byte_buffer_create(TEST_BUFFER_SIZE *
-						testio->fmt_bytes);
+	testio->audbuff =
+		byte_buffer_create(TEST_BUFFER_SIZE * testio->fmt_bytes);
 
 	return 0;
 }
 
-static int get_buffer(struct cras_iodev *iodev,
-		      struct cras_audio_area **area,
+static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area,
 		      unsigned *frames)
 {
 	struct test_iodev *testio = (struct test_iodev *)iodev;
@@ -116,8 +108,7 @@
 }
 
 static int get_buffer_fd_read(struct cras_iodev *iodev,
-			      struct cras_audio_area **area,
-			      unsigned *frames)
+			      struct cras_audio_area **area, unsigned *frames)
 {
 	struct test_iodev *testio = (struct test_iodev *)iodev;
 	int nread;
@@ -158,8 +149,7 @@
 	if (testio->fd >= 0) {
 		/* Remove audio thread callback from main thread. */
 		audio_thread_rm_callback_sync(
-				cras_iodev_list_get_audio_thread(),
-				testio->fd);
+			cras_iodev_list_get_audio_thread(), testio->fd);
 		close(testio->fd);
 	}
 
@@ -237,8 +227,7 @@
 	free(testio);
 }
 
-unsigned int test_iodev_add_samples(struct test_iodev *testio,
-				    uint8_t *samples,
+unsigned int test_iodev_add_samples(struct test_iodev *testio, uint8_t *samples,
 				    unsigned int count)
 {
 	unsigned int avail;
@@ -252,8 +241,7 @@
 }
 
 void test_iodev_command(struct cras_iodev *iodev,
-			enum CRAS_TEST_IODEV_CMD command,
-			unsigned int data_len,
+			enum CRAS_TEST_IODEV_CMD command, unsigned int data_len,
 			const uint8_t *data)
 {
 	struct test_iodev *testio = (struct test_iodev *)iodev;
diff --git a/cras/src/server/test_iodev.h b/cras/src/server/test_iodev.h
index f1039f5..782bf5c 100644
--- a/cras/src/server/test_iodev.h
+++ b/cras/src/server/test_iodev.h
@@ -26,8 +26,7 @@
 
 /* Handle a test commdn to the given iodev. */
 void test_iodev_command(struct cras_iodev *iodev,
-			enum CRAS_TEST_IODEV_CMD command,
-			unsigned int data_len,
+			enum CRAS_TEST_IODEV_CMD command, unsigned int data_len,
 			const uint8_t *data);
 
 #endif /* TEST_IODEV_H_ */