aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/pcm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-06-01 18:24:53 +0200
committerTakashi Iwai <tiwai@suse.de>2021-06-02 09:01:17 +0200
commitcdebd5530360cfd6240b1692a4c60212a2e39c8a (patch)
tree8e2b0c1188ec4bccb91f77a131f71eb6ad273265 /sound/usb/pcm.c
parentALSA: firewire-motu: sequence replay for source packet header (diff)
downloadlinux-dev-cdebd5530360cfd6240b1692a4c60212a2e39c8a.tar.xz
linux-dev-cdebd5530360cfd6240b1692a4c60212a2e39c8a.zip
ALSA: usb-audio: Make snd_usb_pcm_delay() static
It's a local function, let's make it static. Link: https://lore.kernel.org/r/20210601162457.4877-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/pcm.c')
-rw-r--r--sound/usb/pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index e5311b6bb3f6..359c759a7023 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -29,8 +29,8 @@
#define SUBSTREAM_FLAG_SYNC_EP_STARTED 1
/* return the estimated delay based on USB frame counters */
-snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
- unsigned int rate)
+static snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
+ unsigned int rate)
{
int current_frame_number;
int frame_diff;