Lines Matching refs:pos_adj
421 int pos_adj, pos_align; in snd_hdac_stream_setup_periods() local
435 pos_adj = bus->bdl_pos_adj; in snd_hdac_stream_setup_periods()
436 if (!azx_dev->no_period_wakeup && pos_adj > 0) { in snd_hdac_stream_setup_periods()
437 pos_align = pos_adj; in snd_hdac_stream_setup_periods()
438 pos_adj = (pos_adj * runtime->rate + 47999) / 48000; in snd_hdac_stream_setup_periods()
439 if (!pos_adj) in snd_hdac_stream_setup_periods()
440 pos_adj = pos_align; in snd_hdac_stream_setup_periods()
442 pos_adj = ((pos_adj + pos_align - 1) / pos_align) * in snd_hdac_stream_setup_periods()
444 pos_adj = frames_to_bytes(runtime, pos_adj); in snd_hdac_stream_setup_periods()
445 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
447 pos_adj); in snd_hdac_stream_setup_periods()
448 pos_adj = 0; in snd_hdac_stream_setup_periods()
452 &bdl, ofs, pos_adj, true); in snd_hdac_stream_setup_periods()
457 pos_adj = 0; in snd_hdac_stream_setup_periods()
460 if (i == periods - 1 && pos_adj) in snd_hdac_stream_setup_periods()
463 period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods()