compress.c (6324cf901e14c6662be508f30485e0f09c54694d) compress.c (ee8443050b2bf06d80fdd2c78cc25cae2abdedcd)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// Copyright 2021 NXP
4//
5// Author: Daniel Baluta <daniel.baluta@nxp.com>
6
7#include <sound/soc.h>
8#include <sound/sof.h>
9#include <sound/compress_driver.h>
10#include "sof-audio.h"
11#include "sof-priv.h"
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// Copyright 2021 NXP
4//
5// Author: Daniel Baluta <daniel.baluta@nxp.com>
6
7#include <sound/soc.h>
8#include <sound/sof.h>
9#include <sound/compress_driver.h>
10#include "sof-audio.h"
11#include "sof-priv.h"
12#include "sof-utils.h"
12
13static void sof_set_transferred_bytes(struct snd_compr_tstamp *tstamp,
14 u64 host_pos, u64 buffer_size)
15{
16 u64 prev_pos;
17 unsigned int copied;
18
19 div64_u64_rem(tstamp->copied_total, buffer_size, &prev_pos);

--- 301 unchanged lines hidden ---
13
14static void sof_set_transferred_bytes(struct snd_compr_tstamp *tstamp,
15 u64 host_pos, u64 buffer_size)
16{
17 u64 prev_pos;
18 unsigned int copied;
19
20 div64_u64_rem(tstamp->copied_total, buffer_size, &prev_pos);

--- 301 unchanged lines hidden ---