mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 00:21:46 +00:00
Reformat files to kernel style
No code changes, just reformatting. BUG=none BRANCH=none TEST=make runtests Change-Id: I30c7f74217c10ac7cc618aee30a22febe1e41f5c Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/42053 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
committed by
ChromeBot
parent
3b806ea951
commit
68f54d4475
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
||||
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*
|
||||
@@ -12,32 +12,32 @@
|
||||
#include "vboot_audio.h"
|
||||
|
||||
typedef struct VbDevMusicNote {
|
||||
uint16_t msec;
|
||||
uint16_t frequency;
|
||||
uint16_t msec;
|
||||
uint16_t frequency;
|
||||
} __attribute__((packed)) VbDevMusicNote;
|
||||
|
||||
typedef struct VbDevMusic {
|
||||
uint8_t sig[4]; /* "$SND" */
|
||||
uint32_t checksum; /* crc32 over count & all notes */
|
||||
uint32_t count; /* number of notes */
|
||||
VbDevMusicNote notes[1]; /* gcc allows [0], MSVC doesn't */
|
||||
/* more VbDevMusicNotes follow immediately */
|
||||
uint8_t sig[4]; /* "$SND" */
|
||||
uint32_t checksum; /* crc32 over count & all notes */
|
||||
uint32_t count; /* number of notes */
|
||||
VbDevMusicNote notes[1]; /* gcc allows [0], MSVC doesn't */
|
||||
/* more VbDevMusicNotes follow immediately */
|
||||
} __attribute__((packed)) VbDevMusic;
|
||||
|
||||
struct VbAudioContext {
|
||||
/* note tracking */
|
||||
VbDevMusicNote* music_notes;
|
||||
uint32_t note_count;
|
||||
uint32_t next_note;
|
||||
/* note tracking */
|
||||
VbDevMusicNote *music_notes;
|
||||
uint32_t note_count;
|
||||
uint32_t next_note;
|
||||
|
||||
/* implementation flags */
|
||||
int background_beep;
|
||||
int free_notes_when_done;
|
||||
/* implementation flags */
|
||||
int background_beep;
|
||||
int free_notes_when_done;
|
||||
|
||||
/* sound tracking */
|
||||
uint16_t current_frequency;
|
||||
uint64_t play_until;
|
||||
uint64_t last_time;
|
||||
/* sound tracking */
|
||||
uint16_t current_frequency;
|
||||
uint64_t play_until;
|
||||
uint64_t last_time;
|
||||
};
|
||||
|
||||
#ifdef FOR_TEST
|
||||
@@ -55,4 +55,3 @@ uint32_t VbExMaxMusicSize(void);
|
||||
#endif
|
||||
|
||||
#endif /* VBOOT_REFERENCE_VBOOT_AUDIO_PRIVATE_H_ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user