Skip to content

Commit af1fa22

Browse files
committed
audio: dmic: Format dmic.h
Remove whitespaces to make code easier to read and follow the common sense coding style. Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent ffa63a5 commit af1fa22

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

include/zephyr/audio/dmic.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ struct pdm_io_cfg {
8181
*@{
8282
*/
8383
/** Minimum clock frequency supported by the mic */
84-
uint32_t min_pdm_clk_freq;
84+
uint32_t min_pdm_clk_freq;
8585
/** Maximum clock frequency supported by the mic */
86-
uint32_t max_pdm_clk_freq;
86+
uint32_t max_pdm_clk_freq;
8787
/** Minimum duty cycle in % supported by the mic */
88-
uint8_t min_pdm_clk_dc;
88+
uint8_t min_pdm_clk_dc;
8989
/** Maximum duty cycle in % supported by the mic */
90-
uint8_t max_pdm_clk_dc;
90+
uint8_t max_pdm_clk_dc;
9191
/**
9292
* @}
9393
*/
@@ -97,11 +97,11 @@ struct pdm_io_cfg {
9797
* @{
9898
*/
9999
/** Bit mask to optionally invert PDM clock */
100-
uint8_t pdm_clk_pol;
100+
uint8_t pdm_clk_pol;
101101
/** Bit mask to optionally invert mic data */
102-
uint8_t pdm_data_pol;
102+
uint8_t pdm_data_pol;
103103
/** Collection of clock skew values for each PDM port */
104-
uint32_t pdm_clk_skew;
104+
uint32_t pdm_clk_skew;
105105
/**
106106
* @}
107107
*/
@@ -115,13 +115,13 @@ struct pdm_io_cfg {
115115
*/
116116
struct pcm_stream_cfg {
117117
/** PCM sample rate of stream */
118-
uint32_t pcm_rate;
118+
uint32_t pcm_rate;
119119
/** PCM sample width of stream */
120-
uint8_t pcm_width;
120+
uint8_t pcm_width;
121121
/** PCM sample block size per transfer */
122-
uint16_t block_size;
122+
uint16_t block_size;
123123
/** SLAB for DMIC driver to allocate buffers for stream */
124-
struct k_mem_slab *mem_slab;
124+
struct k_mem_slab *mem_slab;
125125
};
126126

127127
/**
@@ -150,26 +150,26 @@ struct pdm_chan_cfg {
150150
* @name Requested channel map
151151
* @{
152152
*/
153-
uint32_t req_chan_map_lo; /**< Channels 0 to 7 */
154-
uint32_t req_chan_map_hi; /**< Channels 8 to 15 */
153+
uint32_t req_chan_map_lo; /**< Channels 0 to 7 */
154+
uint32_t req_chan_map_hi; /**< Channels 8 to 15 */
155155
/** @} */
156156

157157
/**
158158
* @name Actual channel map that the driver could configure
159159
* @{
160160
*/
161-
uint32_t act_chan_map_lo; /**< Channels 0 to 7 */
162-
uint32_t act_chan_map_hi; /**< Channels 8 to 15 */
161+
uint32_t act_chan_map_lo; /**< Channels 0 to 7 */
162+
uint32_t act_chan_map_hi; /**< Channels 8 to 15 */
163163
/** @} */
164164

165165
/** Requested number of channels */
166-
uint8_t req_num_chan;
166+
uint8_t req_num_chan;
167167
/** Actual number of channels that the driver could configure */
168-
uint8_t act_num_chan;
168+
uint8_t act_num_chan;
169169
/** Requested number of streams for each channel */
170-
uint8_t req_num_streams;
170+
uint8_t req_num_streams;
171171
/** Actual number of streams that the driver could configure */
172-
uint8_t act_num_streams;
172+
uint8_t act_num_streams;
173173
};
174174

175175
/**

0 commit comments

Comments
 (0)