diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:33:34 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 08:17:19 +0000 |
commit | 8fa509fedb6bad4643fce269bd9e58ef1de9f6f1 (patch) | |
tree | 9ec603ab26b15d8d852e70ca6f58994e6338196c /common/audio_codec.c | |
parent | 8d06f607b9cfad14317406282b55e26357e7ae88 (diff) | |
download | chrome-ec-8fa509fedb6bad4643fce269bd9e58ef1de9f6f1.tar.gz |
common/audio_codec.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I5adfe7f0b323abe281633d8b9628ddd5d3119ec2
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729564
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'common/audio_codec.c')
-rw-r--r-- | common/audio_codec.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/common/audio_codec.c b/common/audio_codec.c index 3f7203ad15..719adb5d08 100644 --- a/common/audio_codec.c +++ b/common/audio_codec.c @@ -9,15 +9,14 @@ #include "host_command.h" #include "util.h" -#define CPRINTS(format, args...) cprints(CC_AUDIO_CODEC, format, ## args) +#define CPRINTS(format, args...) cprints(CC_AUDIO_CODEC, format, ##args) -static const uint32_t capabilities = - 0 +static const uint32_t capabilities = 0 #ifdef CONFIG_AUDIO_CODEC_CAP_WOV_AUDIO_SHM - | BIT(EC_CODEC_CAP_WOV_AUDIO_SHM) + | BIT(EC_CODEC_CAP_WOV_AUDIO_SHM) #endif #ifdef CONFIG_AUDIO_CODEC_CAP_WOV_LANG_SHM - | BIT(EC_CODEC_CAP_WOV_LANG_SHM) + | BIT(EC_CODEC_CAP_WOV_LANG_SHM) #endif ; @@ -122,8 +121,8 @@ int audio_codec_capable(uint8_t cap) return capabilities & BIT(cap); } -int audio_codec_register_shm(uint8_t shm_id, uint8_t cap, - uintptr_t *addr, uint32_t len, uint8_t type) +int audio_codec_register_shm(uint8_t shm_id, uint8_t cap, uintptr_t *addr, + uint32_t len, uint8_t type) { if (shm_id >= EC_CODEC_SHM_ID_LAST) return EC_ERROR_INVAL; @@ -140,8 +139,8 @@ int audio_codec_register_shm(uint8_t shm_id, uint8_t cap, return EC_SUCCESS; } -__attribute__((weak)) -int audio_codec_memmap_ap_to_ec(uintptr_t ap_addr, uintptr_t *ec_addr) +__attribute__((weak)) int audio_codec_memmap_ap_to_ec(uintptr_t ap_addr, + uintptr_t *ec_addr) { return EC_ERROR_UNIMPLEMENTED; } |