Lines Matching refs:cfg
32 struct dmic_cfg *cfg, in do_pdm_transfer() argument
38 cfg->streams[0].pcm_rate, cfg->channel.req_num_chan); in do_pdm_transfer()
40 ret = dmic_configure(dmic_dev, cfg); in do_pdm_transfer()
92 struct dmic_cfg cfg = { in main() local
109 cfg.channel.req_num_chan = 1; in main()
110 cfg.channel.req_chan_map_lo = in main()
112 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main()
113 cfg.streams[0].block_size = in main()
114 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
116 ret = do_pdm_transfer(dmic_dev, &cfg, 2 * BLOCK_COUNT); in main()
121 cfg.channel.req_num_chan = 2; in main()
122 cfg.channel.req_chan_map_lo = in main()
125 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main()
126 cfg.streams[0].block_size = in main()
127 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
129 ret = do_pdm_transfer(dmic_dev, &cfg, 2 * BLOCK_COUNT); in main()