mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 09:29:41 +00:00
ASoC: sti: sti_uniperiph_dai_create_ctrl() can be static
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fa050796b3
commit
f2da454226
@ -14,7 +14,7 @@
|
|||||||
* This function is used to create Ctrl associated to DAI but also pcm device.
|
* This function is used to create Ctrl associated to DAI but also pcm device.
|
||||||
* Request is done by front end to associate ctrl with pcm device id
|
* Request is done by front end to associate ctrl with pcm device id
|
||||||
*/
|
*/
|
||||||
int sti_uniperiph_dai_create_ctrl(struct snd_soc_dai *dai)
|
static int sti_uniperiph_dai_create_ctrl(struct snd_soc_dai *dai)
|
||||||
{
|
{
|
||||||
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
|
struct sti_uniperiph_data *priv = snd_soc_dai_get_drvdata(dai);
|
||||||
struct uniperif *uni = priv->dai_data.uni;
|
struct uniperif *uni = priv->dai_data.uni;
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
* Note: snd_pcm_hardware is linked to DMA controller but is declared here to
|
* Note: snd_pcm_hardware is linked to DMA controller but is declared here to
|
||||||
* integrate DAI_CPU capability in term of rate and supported channels
|
* integrate DAI_CPU capability in term of rate and supported channels
|
||||||
*/
|
*/
|
||||||
const struct snd_pcm_hardware uni_player_pcm_hw = {
|
static const struct snd_pcm_hardware uni_player_pcm_hw = {
|
||||||
.info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
.info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||||
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_MMAP_VALID,
|
SNDRV_PCM_INFO_MMAP_VALID,
|
||||||
@ -175,7 +175,7 @@ static irqreturn_t uni_player_irq_handler(int irq, void *dev_id)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int uni_player_clk_set_rate(struct uniperif *player, unsigned long rate)
|
static int uni_player_clk_set_rate(struct uniperif *player, unsigned long rate)
|
||||||
{
|
{
|
||||||
int rate_adjusted, rate_achieved, delta, ret;
|
int rate_adjusted, rate_achieved, delta, ret;
|
||||||
int adjustment = player->clk_adj;
|
int adjustment = player->clk_adj;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* Note: snd_pcm_hardware is linked to DMA controller but is declared here to
|
* Note: snd_pcm_hardware is linked to DMA controller but is declared here to
|
||||||
* integrate unireader capability in term of rate and supported channels
|
* integrate unireader capability in term of rate and supported channels
|
||||||
*/
|
*/
|
||||||
const struct snd_pcm_hardware uni_reader_pcm_hw = {
|
static const struct snd_pcm_hardware uni_reader_pcm_hw = {
|
||||||
.info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
.info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
|
||||||
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP |
|
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_MMAP_VALID,
|
SNDRV_PCM_INFO_MMAP_VALID,
|
||||||
@ -324,7 +324,7 @@ static int uni_reader_parse_dt(struct platform_device *pdev,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct snd_soc_dai_ops uni_reader_dai_ops = {
|
static const struct snd_soc_dai_ops uni_reader_dai_ops = {
|
||||||
.shutdown = uni_reader_shutdown,
|
.shutdown = uni_reader_shutdown,
|
||||||
.prepare = uni_reader_prepare,
|
.prepare = uni_reader_prepare,
|
||||||
.trigger = uni_reader_trigger,
|
.trigger = uni_reader_trigger,
|
||||||
|
Loading…
Reference in New Issue
Block a user