Documented in 1 files:
Defined in 1 files as a function:
Referenced in 5 files:
- sound/core/pcm_lib.c, line 2083
- sound/core/pcm_native.c
- sound/isa/gus/gus_pcm.c, line 379
- sound/soc/intel/atom/sst/sst_drv_interface.c, line 476
- sound/soc/stm/stm32_sai_sub.c, line 1394
Smatch caller information:
sound/soc/intel/atom/sst/sst_drv_interface.c sst_calc_tstamp() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &atimer->lock | ||
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex | ||
| HALF_LOCKED2 | irq |
sound/core/pcm_lib.c fill_silence() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 1 | size | $4 |
| BIT_INFO | 1 | size | 0x0,0x7fffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | runtime->rate_den | 0-u32max |
| USER_DATA | 0 | runtime->rate_num | 0-u32max |
| USER_DATA | 1 | size | 1-1152921503801540608[c] |
| UNITS | 1 | size | unit_byte |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex |
sound/core/pcm_native.c snd_pcm_readv() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| CAPPED_DATA | 0 | runtime->channels | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
sound/core/pcm_native.c snd_pcm_runtime_buffer_set_silence() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 0 | runtime | $0 |
| UNITS | 1 | size | unit_byte |
| LOCK2 | 0 | &runtime->buffer_mutex | |
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/core/pcm_native.c snd_pcm_writev() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| CAPPED_DATA | 0 | runtime->channels | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
sound/isa/gus/gus_pcm.c snd_gf1_pcm_playback_silence() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| CAPPED_DATA | 0 | runtime->oss.buffer_bytes | 1 |
| DATA_SOURCE | 1 | size | $3 |
| BIT_INFO | 1 | size | 0x0,0x7fffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | runtime->rate_den | 0-u32max |
| USER_DATA | 0 | runtime->rate_num | 0-u32max |
| USER_DATA | 1 | size | 1-1152921503801540608[c] |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex |
sound/soc/stm/stm32_sai_sub.c stm32_sai_pcm_process_spdif() -> bytes_to_samples()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 1 | size | $3 |