Lines Matching refs:pos_adj
339 int pos_adj = 0; in azx_setup_periods() local
354 pos_adj = chip->bdl_pos_adj[chip->dev_index]; in azx_setup_periods()
355 if (!azx_dev->no_period_wakeup && pos_adj > 0) { in azx_setup_periods()
357 int pos_align = pos_adj; in azx_setup_periods()
358 pos_adj = (pos_adj * runtime->rate + 47999) / 48000; in azx_setup_periods()
359 if (!pos_adj) in azx_setup_periods()
360 pos_adj = pos_align; in azx_setup_periods()
362 pos_adj = ((pos_adj + pos_align - 1) / pos_align) * in azx_setup_periods()
364 pos_adj = frames_to_bytes(runtime, pos_adj); in azx_setup_periods()
365 if (pos_adj >= period_bytes) { in azx_setup_periods()
367 pos_adj); in azx_setup_periods()
368 pos_adj = 0; in azx_setup_periods()
372 &bdl, ofs, pos_adj, true); in azx_setup_periods()
377 pos_adj = 0; in azx_setup_periods()
380 if (i == periods - 1 && pos_adj) in azx_setup_periods()
383 period_bytes - pos_adj, 0); in azx_setup_periods()