@@ -290,15 +290,15 @@ static const struct snd_kcontrol_new acp3x_dmic_mux_control =
290
290
SOC_DAPM_ENUM_EXT ("DMIC Select Mux" , acp3x_dmic_enum ,
291
291
dmic_get , dmic_set );
292
292
293
- static const struct snd_soc_dapm_widget acp3x_widgets [] = {
293
+ static const struct snd_soc_dapm_widget acp3x_5682_widgets [] = {
294
294
SND_SOC_DAPM_HP ("Headphone Jack" , NULL ),
295
295
SND_SOC_DAPM_SPK ("Spk" , NULL ),
296
296
SND_SOC_DAPM_MIC ("Headset Mic" , NULL ),
297
297
SND_SOC_DAPM_MUX ("Dmic Mux" , SND_SOC_NOPM , 0 , 0 ,
298
298
& acp3x_dmic_mux_control ),
299
299
};
300
300
301
- static const struct snd_soc_dapm_route acp3x_audio_route [] = {
301
+ static const struct snd_soc_dapm_route acp3x_5682_audio_route [] = {
302
302
{"Headphone Jack" , NULL , "HPOL" },
303
303
{"Headphone Jack" , NULL , "HPOR" },
304
304
{"IN1P" , NULL , "Headset Mic" },
@@ -307,23 +307,23 @@ static const struct snd_soc_dapm_route acp3x_audio_route[] = {
307
307
{"Dmic Mux" , "Rear Mic" , "DMIC" },
308
308
};
309
309
310
- static const struct snd_kcontrol_new acp3x_mc_controls [] = {
310
+ static const struct snd_kcontrol_new acp3x_5682_mc_controls [] = {
311
311
SOC_DAPM_PIN_SWITCH ("Headphone Jack" ),
312
312
SOC_DAPM_PIN_SWITCH ("Spk" ),
313
313
SOC_DAPM_PIN_SWITCH ("Headset Mic" ),
314
314
};
315
315
316
- static struct snd_soc_card acp3x_card = {
316
+ static struct snd_soc_card acp3x_5682 = {
317
317
.name = "acp3xalc5682m98357" ,
318
318
.owner = THIS_MODULE ,
319
319
.dai_link = acp3x_dai_5682_98357 ,
320
320
.num_links = ARRAY_SIZE (acp3x_dai_5682_98357 ),
321
- .dapm_widgets = acp3x_widgets ,
322
- .num_dapm_widgets = ARRAY_SIZE (acp3x_widgets ),
323
- .dapm_routes = acp3x_audio_route ,
324
- .num_dapm_routes = ARRAY_SIZE (acp3x_audio_route ),
325
- .controls = acp3x_mc_controls ,
326
- .num_controls = ARRAY_SIZE (acp3x_mc_controls ),
321
+ .dapm_widgets = acp3x_5682_widgets ,
322
+ .num_dapm_widgets = ARRAY_SIZE (acp3x_5682_widgets ),
323
+ .dapm_routes = acp3x_5682_audio_route ,
324
+ .num_dapm_routes = ARRAY_SIZE (acp3x_5682_audio_route ),
325
+ .controls = acp3x_5682_mc_controls ,
326
+ .num_controls = ARRAY_SIZE (acp3x_5682_mc_controls ),
327
327
};
328
328
329
329
static int acp3x_probe (struct platform_device * pdev )
@@ -336,8 +336,8 @@ static int acp3x_probe(struct platform_device *pdev)
336
336
if (!machine )
337
337
return - ENOMEM ;
338
338
339
- card = & acp3x_card ;
340
- acp3x_card .dev = & pdev -> dev ;
339
+ card = & acp3x_5682 ;
340
+ acp3x_5682 .dev = & pdev -> dev ;
341
341
platform_set_drvdata (pdev , card );
342
342
snd_soc_card_set_drvdata (card , machine );
343
343
@@ -348,11 +348,11 @@ static int acp3x_probe(struct platform_device *pdev)
348
348
return PTR_ERR (dmic_sel );
349
349
}
350
350
351
- ret = devm_snd_soc_register_card (& pdev -> dev , & acp3x_card );
351
+ ret = devm_snd_soc_register_card (& pdev -> dev , & acp3x_5682 );
352
352
if (ret ) {
353
353
dev_err (& pdev -> dev ,
354
354
"devm_snd_soc_register_card(%s) failed: %d\n" ,
355
- acp3x_card .name , ret );
355
+ acp3x_5682 .name , ret );
356
356
return ret ;
357
357
}
358
358
return 0 ;
0 commit comments