diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-08-08 22:55:59 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-14 13:10:08 +0100 |
commit | ca6b2aac2ad49101d058f8f1d5099d36fd7b5360 (patch) | |
tree | 549220213e68dade54adbe520da89c06ce5df728 /sound/soc/img/img-i2s-out.c | |
parent | ac27ca16a0bbbac2d38211634c15827d37a5150e (diff) | |
download | linux-ca6b2aac2ad49101d058f8f1d5099d36fd7b5360.tar.gz linux-ca6b2aac2ad49101d058f8f1d5099d36fd7b5360.tar.bz2 linux-ca6b2aac2ad49101d058f8f1d5099d36fd7b5360.zip |
ASoC: img: merge DAI call back functions into ops
ALSA SoC merges DAI call backs into .ops.
This patch merge these into one.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87il9pb0u8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/img/img-i2s-out.c')
-rw-r--r-- | sound/soc/img/img-i2s-out.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/img/img-i2s-out.c b/sound/soc/img/img-i2s-out.c index fe95ddfb8407..41ea5ba52181 100644 --- a/sound/soc/img/img-i2s-out.c +++ b/sound/soc/img/img-i2s-out.c @@ -376,12 +376,6 @@ static int img_i2s_out_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) return 0; } -static const struct snd_soc_dai_ops img_i2s_out_dai_ops = { - .trigger = img_i2s_out_trigger, - .hw_params = img_i2s_out_hw_params, - .set_fmt = img_i2s_out_set_fmt -}; - static int img_i2s_out_dai_probe(struct snd_soc_dai *dai) { struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai); @@ -391,6 +385,13 @@ static int img_i2s_out_dai_probe(struct snd_soc_dai *dai) return 0; } +static const struct snd_soc_dai_ops img_i2s_out_dai_ops = { + .probe = img_i2s_out_dai_probe, + .trigger = img_i2s_out_trigger, + .hw_params = img_i2s_out_hw_params, + .set_fmt = img_i2s_out_set_fmt +}; + static const struct snd_soc_component_driver img_i2s_out_component = { .name = "img-i2s-out", .legacy_dai_naming = 1, @@ -504,7 +505,6 @@ static int img_i2s_out_probe(struct platform_device *pdev) i2s->dma_data.addr_width = 4; i2s->dma_data.maxburst = 4; - i2s->dai_driver.probe = img_i2s_out_dai_probe; i2s->dai_driver.playback.channels_min = 2; i2s->dai_driver.playback.channels_max = i2s->max_i2s_chan * 2; i2s->dai_driver.playback.rates = SNDRV_PCM_RATE_8000_192000; |