~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/core/pcm_local.h

Version: ~ [ linux-5.10-rc1 ] ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * pcm_local.h - a local header file for snd-pcm module.
  3  *
  4  * Copyright (c) Takashi Sakamoto <o-takashi@sakamocchi.jp>
  5  *
  6  * Licensed under the terms of the GNU General Public License, version 2.
  7  */
  8 
  9 #ifndef __SOUND_CORE_PCM_LOCAL_H
 10 #define __SOUND_CORE_PCM_LOCAL_H
 11 
 12 extern const struct snd_pcm_hw_constraint_list snd_pcm_known_rates;
 13 
 14 void snd_interval_mul(const struct snd_interval *a,
 15                       const struct snd_interval *b, struct snd_interval *c);
 16 void snd_interval_div(const struct snd_interval *a,
 17                       const struct snd_interval *b, struct snd_interval *c);
 18 void snd_interval_muldivk(const struct snd_interval *a,
 19                           const struct snd_interval *b,
 20                           unsigned int k, struct snd_interval *c);
 21 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k,
 22                           const struct snd_interval *b, struct snd_interval *c);
 23 
 24 int snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream);
 25 int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream);
 26 
 27 int snd_pcm_hw_constraint_mask(struct snd_pcm_runtime *runtime,
 28                                snd_pcm_hw_param_t var, u_int32_t mask);
 29 
 30 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
 31                            snd_pcm_uframes_t appl_ptr);
 32 int snd_pcm_update_state(struct snd_pcm_substream *substream,
 33                          struct snd_pcm_runtime *runtime);
 34 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
 35 
 36 void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
 37                               snd_pcm_uframes_t new_hw_ptr);
 38 
 39 static inline snd_pcm_uframes_t
 40 snd_pcm_avail(struct snd_pcm_substream *substream)
 41 {
 42         if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
 43                 return snd_pcm_playback_avail(substream->runtime);
 44         else
 45                 return snd_pcm_capture_avail(substream->runtime);
 46 }
 47 
 48 static inline snd_pcm_uframes_t
 49 snd_pcm_hw_avail(struct snd_pcm_substream *substream)
 50 {
 51         if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
 52                 return snd_pcm_playback_hw_avail(substream->runtime);
 53         else
 54                 return snd_pcm_capture_hw_avail(substream->runtime);
 55 }
 56 
 57 #ifdef CONFIG_SND_PCM_TIMER
 58 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream);
 59 void snd_pcm_timer_init(struct snd_pcm_substream *substream);
 60 void snd_pcm_timer_done(struct snd_pcm_substream *substream);
 61 #else
 62 static inline void
 63 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) {}
 64 static inline void snd_pcm_timer_init(struct snd_pcm_substream *substream) {}
 65 static inline void snd_pcm_timer_done(struct snd_pcm_substream *substream) {}
 66 #endif
 67 
 68 #endif  /* __SOUND_CORE_PCM_LOCAL_H */
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp