Skip to content

Commit 9d33f9c

Browse files
morimotobroonie
authored andcommitted
ASoC: soc-dapm: add prefix on dapm_xxx_event()
dapm_xxx_event() is global function. Let's add snd_soc_ prefix. Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 805c019 commit 9d33f9c

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

include/sound/soc-dapm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ struct snd_soc_pcm_runtime;
295295
#define SND_SOC_DAPM_CLOCK_SUPPLY(wname) \
296296
(struct snd_soc_dapm_widget) { \
297297
.id = snd_soc_dapm_clock_supply, .name = wname, \
298-
.reg = SND_SOC_NOPM, .event = dapm_clock_event, \
298+
.reg = SND_SOC_NOPM, .event = snd_soc_dapm_clock_event, \
299299
.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD }
300300

301301
/* generic widgets */
@@ -312,15 +312,15 @@ struct snd_soc_pcm_runtime;
312312
#define SND_SOC_DAPM_REGULATOR_SUPPLY(wname, wdelay, wflags) \
313313
(struct snd_soc_dapm_widget) { \
314314
.id = snd_soc_dapm_regulator_supply, .name = wname, \
315-
.reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \
315+
.reg = SND_SOC_NOPM, .shift = wdelay, .event = snd_soc_dapm_regulator_event, \
316316
.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \
317317
.on_val = wflags}
318318
#define SND_SOC_DAPM_PINCTRL(wname, active, sleep) \
319319
(struct snd_soc_dapm_widget) { \
320320
.id = snd_soc_dapm_pinctrl, .name = wname, \
321321
.priv = (&(struct snd_soc_dapm_pinctrl_priv) \
322322
{ .active_state = active, .sleep_state = sleep,}), \
323-
.reg = SND_SOC_NOPM, .event = dapm_pinctrl_event, \
323+
.reg = SND_SOC_NOPM, .event = snd_soc_dapm_pinctrl_event, \
324324
.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD }
325325

326326

@@ -630,9 +630,9 @@ enum snd_soc_dapm_direction {
630630
#define SND_SOC_DAPM_EP_SOURCE SND_SOC_DAPM_DIR_TO_EP(SND_SOC_DAPM_DIR_IN)
631631
#define SND_SOC_DAPM_EP_SINK SND_SOC_DAPM_DIR_TO_EP(SND_SOC_DAPM_DIR_OUT)
632632

633-
int dapm_regulator_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
634-
int dapm_clock_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
635-
int dapm_pinctrl_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
633+
int snd_soc_dapm_regulator_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
634+
int snd_soc_dapm_clock_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
635+
int snd_soc_dapm_pinctrl_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event);
636636

637637
/* dapm controls */
638638
int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);

sound/soc/mediatek/mt8188/mt8188-mt6359.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int mt8188_mt6359_mtkaif_calibration(struct snd_soc_pcm_runtime *rtd)
408408
}
409409

410410
if (pin_w)
411-
dapm_pinctrl_event(pin_w, NULL, SND_SOC_DAPM_PRE_PMU);
411+
snd_soc_dapm_pinctrl_event(pin_w, NULL, SND_SOC_DAPM_PRE_PMU);
412412
else
413413
dev_dbg(afe->dev, "%s(), no pinmux widget, please check if default on\n", __func__);
414414

@@ -510,7 +510,7 @@ static int mt8188_mt6359_mtkaif_calibration(struct snd_soc_pcm_runtime *rtd)
510510
param->mtkaif_phase_cycle[i] = mtkaif_phase_cycle[i];
511511

512512
if (pin_w)
513-
dapm_pinctrl_event(pin_w, NULL, SND_SOC_DAPM_POST_PMD);
513+
snd_soc_dapm_pinctrl_event(pin_w, NULL, SND_SOC_DAPM_POST_PMD);
514514

515515
dev_dbg(afe->dev, "%s(), end, calibration ok %d\n",
516516
__func__, param->mtkaif_calibration_ok);

sound/soc/soc-dapm.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,8 +1537,8 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_dai_free_widgets);
15371537
/*
15381538
* Handler for regulator supply widget.
15391539
*/
1540-
int dapm_regulator_event(struct snd_soc_dapm_widget *w,
1541-
struct snd_kcontrol *kcontrol, int event)
1540+
int snd_soc_dapm_regulator_event(struct snd_soc_dapm_widget *w,
1541+
struct snd_kcontrol *kcontrol, int event)
15421542
{
15431543
int ret;
15441544

@@ -1566,13 +1566,13 @@ int dapm_regulator_event(struct snd_soc_dapm_widget *w,
15661566
return regulator_disable_deferred(w->regulator, w->shift);
15671567
}
15681568
}
1569-
EXPORT_SYMBOL_GPL(dapm_regulator_event);
1569+
EXPORT_SYMBOL_GPL(snd_soc_dapm_regulator_event);
15701570

15711571
/*
15721572
* Handler for pinctrl widget.
15731573
*/
1574-
int dapm_pinctrl_event(struct snd_soc_dapm_widget *w,
1575-
struct snd_kcontrol *kcontrol, int event)
1574+
int snd_soc_dapm_pinctrl_event(struct snd_soc_dapm_widget *w,
1575+
struct snd_kcontrol *kcontrol, int event)
15761576
{
15771577
struct snd_soc_dapm_pinctrl_priv *priv = w->priv;
15781578
struct pinctrl *p = w->pinctrl;
@@ -1591,13 +1591,13 @@ int dapm_pinctrl_event(struct snd_soc_dapm_widget *w,
15911591

15921592
return pinctrl_select_state(p, s);
15931593
}
1594-
EXPORT_SYMBOL_GPL(dapm_pinctrl_event);
1594+
EXPORT_SYMBOL_GPL(snd_soc_dapm_pinctrl_event);
15951595

15961596
/*
15971597
* Handler for clock supply widget.
15981598
*/
1599-
int dapm_clock_event(struct snd_soc_dapm_widget *w,
1600-
struct snd_kcontrol *kcontrol, int event)
1599+
int snd_soc_dapm_clock_event(struct snd_soc_dapm_widget *w,
1600+
struct snd_kcontrol *kcontrol, int event)
16011601
{
16021602
if (!w->clk)
16031603
return -EIO;
@@ -1613,7 +1613,7 @@ int dapm_clock_event(struct snd_soc_dapm_widget *w,
16131613

16141614
return 0;
16151615
}
1616-
EXPORT_SYMBOL_GPL(dapm_clock_event);
1616+
EXPORT_SYMBOL_GPL(snd_soc_dapm_clock_event);
16171617

16181618
static int dapm_widget_power_check(struct snd_soc_dapm_widget *w)
16191619
{
@@ -3668,7 +3668,7 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
36683668
}
36693669

36703670
/* set to sleep_state when initializing */
3671-
dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
3671+
snd_soc_dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
36723672
break;
36733673
case snd_soc_dapm_clock_supply:
36743674
w->clk = devm_clk_get(dapm->dev, widget->name);

0 commit comments

Comments
 (0)