X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=include%2Fsound%2Fpcm.h;h=d854fb31c000756e46bc9c677e6a9979232b8453;hb=1857a5b65c52be3e8837cc68d0ee3f4741c5c45f;hp=4883499ab38b07834dc6b4ee3fe085bf93b0efdf;hpb=2fd4e6698f0863f47558e63b67c7c3a026513541;p=cascardo%2Flinux.git diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 4883499ab38b..d854fb31c000 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -932,7 +932,7 @@ static inline void snd_pcm_gettime(struct snd_pcm_runtime *runtime, struct timespec *tv) { if (runtime->tstamp_type == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC) - do_posix_clock_monotonic_gettime(tv); + ktime_get_ts(tv); else getnstimeofday(tv); } @@ -1141,4 +1141,12 @@ static inline u64 pcm_format_to_bits(snd_pcm_format_t pcm_format) return 1ULL << (__force int) pcm_format; } +/* printk helpers */ +#define pcm_err(pcm, fmt, args...) \ + dev_err((pcm)->card->dev, fmt, ##args) +#define pcm_warn(pcm, fmt, args...) \ + dev_warn((pcm)->card->dev, fmt, ##args) +#define pcm_dbg(pcm, fmt, args...) \ + dev_dbg((pcm)->card->dev, fmt, ##args) + #endif /* __SOUND_PCM_H */