ASoC: rt1015: set snd_soc_dai_ops in rt1015_dai driver
Subsystems (3)
PATCH 1/1 ASoC: rt1015: set snd_soc_dai_ops in rt1015_dai driver
snd_soc_dai_driver should set ops in rt1015_dai driver. Also make the two variable static to fix sparse warnings.
Fixes df31007400c3 ("ASoC: rt1015: add rt1015 amplifier driver")
Signed-off-by YueHaibing <[email protected]>
--- sound/soc/codecs/rt1015.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt1015.c +3 -2
@@ -841,12 +841,12 @@ static void rt1015_remove(struct snd_soc_component *component)#define RT1015_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8) -struct snd_soc_dai_ops rt1015_aif_dai_ops = { +static struct snd_soc_dai_ops rt1015_aif_dai_ops = { .hw_params = rt1015_hw_params, .set_fmt = rt1015_set_dai_fmt, }; -struct snd_soc_dai_driver rt1015_dai[] = { +static struct snd_soc_dai_driver rt1015_dai[] = { { .name ="rt1015-aif" , .id =0 ,
@@ -857,6 +857,7 @@ struct snd_soc_dai_driver rt1015_dai[] = { .rates = RT1015_STEREO_RATES, .formats = RT1015_FORMATS, }, + .ops = &rt1015_aif_dai_ops, } };
Signature · 1 line
2.7.4