Home
last modified time | relevance | path

Searched refs:pos_adj (Results 1 – 1 of 1) sorted by relevance

/linux-4.4.14/sound/hda/
Dhdac_stream.c369 int pos_adj, pos_align; in snd_hdac_stream_setup_periods() local
383 pos_adj = bus->bdl_pos_adj; in snd_hdac_stream_setup_periods()
384 if (!azx_dev->no_period_wakeup && pos_adj > 0) { in snd_hdac_stream_setup_periods()
385 pos_align = pos_adj; in snd_hdac_stream_setup_periods()
386 pos_adj = (pos_adj * runtime->rate + 47999) / 48000; in snd_hdac_stream_setup_periods()
387 if (!pos_adj) in snd_hdac_stream_setup_periods()
388 pos_adj = pos_align; in snd_hdac_stream_setup_periods()
390 pos_adj = ((pos_adj + pos_align - 1) / pos_align) * in snd_hdac_stream_setup_periods()
392 pos_adj = frames_to_bytes(runtime, pos_adj); in snd_hdac_stream_setup_periods()
393 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
[all …]