mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Cosmetics
This commit is contained in:
parent
1c7056eeca
commit
76363aa060
1 changed files with 4 additions and 4 deletions
|
|
@ -208,7 +208,7 @@ ssize_t snd_pcm_plugin_src_samples_to_size(snd_pcm_plugin_t *plugin, size_t samp
|
||||||
if (plugin == NULL)
|
if (plugin == NULL)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
result = samples * plugin->src_format.voices * plugin->src_width;
|
result = samples * plugin->src_format.voices * plugin->src_width;
|
||||||
if ((result % 8) != 0)
|
if (result % 8 != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return result / 8;
|
return result / 8;
|
||||||
}
|
}
|
||||||
|
|
@ -220,7 +220,7 @@ ssize_t snd_pcm_plugin_dst_samples_to_size(snd_pcm_plugin_t *plugin, size_t samp
|
||||||
if (plugin == NULL)
|
if (plugin == NULL)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
result = samples * plugin->dst_format.voices * plugin->dst_width;
|
result = samples * plugin->dst_format.voices * plugin->dst_width;
|
||||||
if ((result % 8) != 0)
|
if (result % 8 != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return result / 8;
|
return result / 8;
|
||||||
}
|
}
|
||||||
|
|
@ -234,7 +234,7 @@ ssize_t snd_pcm_plugin_src_size_to_samples(snd_pcm_plugin_t *plugin, size_t size
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
result = size * 8;
|
result = size * 8;
|
||||||
tmp = plugin->src_format.voices * plugin->src_width;
|
tmp = plugin->src_format.voices * plugin->src_width;
|
||||||
if ((result % tmp) != 0)
|
if (result % tmp != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return result / tmp;
|
return result / tmp;
|
||||||
}
|
}
|
||||||
|
|
@ -248,7 +248,7 @@ ssize_t snd_pcm_plugin_dst_size_to_samples(snd_pcm_plugin_t *plugin, size_t size
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
result = size * 8;
|
result = size * 8;
|
||||||
tmp = plugin->dst_format.voices * plugin->dst_width;
|
tmp = plugin->dst_format.voices * plugin->dst_width;
|
||||||
if ((result % tmp) != 0)
|
if (result % tmp != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return result / tmp;
|
return result / tmp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue