Lines Matching refs:dmic_cfg

45 static struct dmic_cfg dmic_cfg = {  variable
75 struct dmic_cfg *cfg) in do_pdm_transfer()
133 dmic_cfg.channel.req_num_chan = 1; in ZTEST()
134 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
136 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
137 dmic_cfg.streams[0].block_size = in ZTEST()
138 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
139 dmic_cfg.channel.req_num_chan); in ZTEST()
140 zassert_equal(do_pdm_transfer(dmic_dev, &dmic_cfg), 0, in ZTEST()
147 dmic_cfg.channel.req_num_chan = 2; in ZTEST()
148 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
151 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
152 dmic_cfg.streams[0].block_size = in ZTEST()
153 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
154 dmic_cfg.channel.req_num_chan); in ZTEST()
155 zassert_equal(do_pdm_transfer(dmic_dev, &dmic_cfg), 0, in ZTEST()
157 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
160 zassert_equal(do_pdm_transfer(dmic_dev, &dmic_cfg), 0, in ZTEST()
170 dmic_cfg.channel.req_num_chan = PDM_CHANNELS; in ZTEST()
171 dmic_cfg.channel.req_chan_map_lo = 0; in ZTEST()
172 dmic_cfg.channel.req_chan_map_hi = 0; in ZTEST()
177 dmic_cfg.channel.req_chan_map_lo |= in ZTEST()
180 dmic_cfg.channel.req_chan_map_hi |= in ZTEST()
185 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
186 dmic_cfg.streams[0].block_size = in ZTEST()
187 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
188 dmic_cfg.channel.req_num_chan); in ZTEST()
189 zassert_equal(do_pdm_transfer(dmic_dev, &dmic_cfg), 0, in ZTEST()
200 dmic_cfg.channel.req_num_chan = 1; in ZTEST()
201 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
203 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
204 dmic_cfg.streams[0].block_size = in ZTEST()
205 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
206 dmic_cfg.channel.req_num_chan); in ZTEST()
207 ret = dmic_configure(dmic_dev, &dmic_cfg); in ZTEST()
270 dmic_cfg.channel.req_num_chan = 2; in ZTEST()
271 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
274 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
275 dmic_cfg.streams[0].block_size = in ZTEST()
276 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
277 dmic_cfg.channel.req_num_chan); in ZTEST()
278 ret = dmic_configure(dmic_dev, &dmic_cfg); in ZTEST()
282 dmic_cfg.channel.req_num_chan = 2; in ZTEST()
283 dmic_cfg.channel.req_chan_map_lo = in ZTEST()
286 ret = dmic_configure(dmic_dev, &dmic_cfg); in ZTEST()