linux/sound/core/pcm_timer.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0-or-later
   2/*
   3 *  Digital Audio (PCM) abstract layer
   4 *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
   5 */
   6
   7#include <linux/time.h>
   8#include <linux/gcd.h>
   9#include <sound/core.h>
  10#include <sound/pcm.h>
  11#include <sound/timer.h>
  12
  13#include "pcm_local.h"
  14
  15/*
  16 *  Timer functions
  17 */
  18
  19void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)
  20{
  21        unsigned long rate, mult, fsize, l, post;
  22        struct snd_pcm_runtime *runtime = substream->runtime;
  23
  24        mult = 1000000000;
  25        rate = runtime->rate;
  26        if (snd_BUG_ON(!rate))
  27                return;

The original LXR software by the LXR community, this experimental version by lxr@linux.no.