ASoC: convert to snd_soc_dapm_xxx()
Subsystems (42)
Kuninori Morimoto
maintainercover ASoC: convert to snd_soc_dapm_xxx()
Hi Mark
This patch-set convert many functions to snd_soc_dapm_xxx(). This is preparation to move struct snd_soc_dapm_context into soc-dapm.c.
For backport easy, this patch-set is added for each drivers.
Kuninori Morimoto (292):
ASoC: arizona-haptics: convert to snd_soc_dapm_xxx()
ASoC: arizona-micsupp: convert to snd_soc_dapm_xxx()
ASoC: audio_codec: convert to snd_soc_dapm_xxx()
ASoC: audio_helper: convert to snd_soc_dapm_xxx()
ASoC: audio_topology: convert to snd_soc_dapm_xxx()
ASoC: soc.h: convert to snd_soc_dapm_xxx()
ASoC: asoc.h: convert to snd_soc_dapm_xxx()
ASoC: amd: acp-mach-common: convert to snd_soc_dapm_xxx()
ASoC: amd: acp3x-es83xx: convert to snd_soc_dapm_xxx()
ASoC: amd: acp5x-mach: convert to snd_soc_dapm_xxx()
ASoC: atmel: sam9g20_wm8731: convert to snd_soc_dapm_xxx()
ASoC: atmel: tse850-pcm5142: convert to snd_soc_dapm_xxx()
ASoC: codecs: ab8500: convert to snd_soc_dapm_xxx()
ASoC: codecs: 88pm860x: convert to snd_soc_dapm_xxx()
ASoC: codecs: ad1836: convert to snd_soc_dapm_xxx()
ASoC: codecs: ad193x: convert to snd_soc_dapm_xxx()
ASoC: codecs: adau1761: convert to snd_soc_dapm_xxx()
ASoC: codecs: adau1781: convert to snd_soc_dapm_xxx()
ASoC: codecs: adau17x1: convert to snd_soc_dapm_xxx()
ASoC: codecs: adau1977: convert to snd_soc_dapm_xxx()
ASoC: codecs: adau7118: convert to snd_soc_dapm_xxx()
ASoC: codecs: adav80x: convert to snd_soc_dapm_xxx()
ASoC: codecs: ak4641: convert to snd_soc_dapm_xxx()
ASoC: codecs: alc5623: convert to snd_soc_dapm_xxx()
ASoC: codecs: arizona-jack: convert to snd_soc_dapm_xxx()
ASoC: codecs: arizona: convert to snd_soc_dapm_xxx()
ASoC: codecs: audio-iio-aux: convert to snd_soc_dapm_xxx()
ASoC: codecs: aw88261: convert to snd_soc_dapm_xxx()
ASoC: codecs: aw88395: convert to snd_soc_dapm_xxx()
ASoC: codecs: cpcap: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs35l33: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs35l41: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs35l45: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs35l56: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs4234: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l43-jack: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l43: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l51: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l52: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l56: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42l73: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs42xx8: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l15: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l24: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l35: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l85: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l90: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs47l92: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs48l32: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs530x: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs53l30: convert to snd_soc_dapm_xxx()
ASoC: codecs: cx20442: convert to snd_soc_dapm_xxx()
ASoC: codecs: cs2072x: convert to snd_soc_dapm_xxx()
ASoC: codecs: da7213: convert to snd_soc_dapm_xxx()
ASoC: codecs: da7218: convert to snd_soc_dapm_xxx()
ASoC: codecs: da7219-aad: convert to snd_soc_dapm_xxx()
ASoC: codecs: da7219: convert to snd_soc_dapm_xxx()
ASoC: codecs: da732x: convert to snd_soc_dapm_xxx()
ASoC: codecs: da9055: convert to snd_soc_dapm_xxx()
ASoC: codecs: es7134: convert to snd_soc_dapm_xxx()
ASoC: codecs: es8311: convert to snd_soc_dapm_xxx()
ASoC: codecs: es8316: convert to snd_soc_dapm_xxx()
ASoC: codecs: es8326: convert to snd_soc_dapm_xxx()
ASoC: codecs: es8328: convert to snd_soc_dapm_xxx()
ASoC: codecs: es8389: convert to snd_soc_dapm_xxx()
ASoC: codecs: hda: convert to snd_soc_dapm_xxx()
ASoC: codecs: hdac_hda: convert to snd_soc_dapm_xxx()
ASoC: codecs: hdac_hdmi: convert to snd_soc_dapm_xxx()
ASoC: codecs: hdmi-codec: convert to snd_soc_dapm_xxx()
ASoC: codecs: jz4740: convert to snd_soc_dapm_xxx()
ASoC: codecs: jz4760: convert to snd_soc_dapm_xxx()
ASoC: codecs: jz4770: convert to snd_soc_dapm_xxx()
ASoC: codecs: lm49453: convert to snd_soc_dapm_xxx()
ASoC: codecs: lpass-rx-macro: convert to snd_soc_dapm_xxx()
ASoC: codecs: lpass-tx-macro: convert to snd_soc_dapm_xxx()
ASoC: codecs: lpass-va-macro: convert to snd_soc_dapm_xxx()
ASoC: codecs: lpass-wsa-macro: convert to snd_soc_dapm_xxx()
ASoC: codecs: madera: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98088: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98090: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98095: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98373: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98390: convert to snd_soc_dapm_xxx()
ASoC: codecs: max98396: convert to snd_soc_dapm_xxx()
ASoC: codecs: max9850: convert to snd_soc_dapm_xxx()
ASoC: codecs: max9867: convert to snd_soc_dapm_xxx()
ASoC: codecs: ml26124: convert to snd_soc_dapm_xxx()
ASoC: codecs: mt6357: convert to snd_soc_dapm_xxx()
ASoC: codecs: mt6358: convert to snd_soc_dapm_xxx()
ASoC: codecs: mt6359: convert to snd_soc_dapm_xxx()
ASoC: codecs: nau8810: convert to snd_soc_dapm_xxx()
ASoC: codecs: nau8821: convert to snd_soc_dapm_xxx()
ASoC: codecs: nau8822: convert to snd_soc_dapm_xxx()
ASoC: codecs: nau8824: convert to snd_soc_dapm_xxx()
ASoC: codecs: nau8825: convert to snd_soc_dapm_xxx()
ASoC: codecs: pcm186x: convert to snd_soc_dapm_xxx()
ASoC: codecs: pcm512x: convert to snd_soc_dapm_xxx()
ASoC: codecs: rk3308: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt1011: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt1015: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt274: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt286: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt298: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5514: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5516: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5631: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5640: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5645: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5651: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5659: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5660: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5663: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5665: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5668: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5670: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5677: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5682: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt5682s: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt700: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt711-sdca: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt711: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt712-sdca-dmic: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt712-sdca: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt715-sdca: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt715: convert to snd_soc_dapm_xxx()
ASoC: codecs: rt721-sdca: convert to snd_soc_dapm_xxx()
ASoC: codecs: simple-mux: convert to snd_soc_dapm_xxx()
ASoC: codecs: sma1303: convert to snd_soc_dapm_xxx()
ASoC: codecs: sma1307: convert to snd_soc_dapm_xxx()
ASoC: codecs: ssm2518: convert to snd_soc_dapm_xxx()
ASoC: codecs: ssm2602: convert to snd_soc_dapm_xxx()
ASoC: codecs: ssm4567: convert to snd_soc_dapm_xxx()
ASoC: codecs: sta32x: convert to snd_soc_dapm_xxx()
ASoC: codecs: sta350: convert to snd_soc_dapm_xxx()
ASoC: codecs: sta529: convert to snd_soc_dapm_xxx()
ASoC: codecs: tas571x: convert to snd_soc_dapm_xxx()
ASoC: codecs: tas6424: convert to snd_soc_dapm_xxx()
ASoC: codecs: tlv320adc3xxx: convert to snd_soc_dapm_xxx()
ASoC: codecs: tlv320aic31xx: convert to snd_soc_dapm_xxx()
ASoC: codecs: tlv320aic32x4: convert to snd_soc_dapm_xxx()
ASoC: codecs: tlv320aic3x: convert to snd_soc_dapm_xxx()
ASoC: codecs: tlv320dac33: convert to snd_soc_dapm_xxx()
ASoC: codecs: twl4030: convert to snd_soc_dapm_xxx()
ASoC: codecs: twl6040: convert to snd_soc_dapm_xxx()
ASoC: codecs: uda1380: convert to snd_soc_dapm_xxx()
ASoC: codecs: wcd9335: convert to snd_soc_dapm_xxx()
ASoC: codecs: wcd934x: convert to snd_soc_dapm_xxx()
ASoC: codecs: wcd937x: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm0010: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm5100: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm5102: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm5110: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8350: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8400: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8510: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8523: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8580: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8711: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8728: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8731: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8737: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8750: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8753: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8770: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8776: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8804: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8900: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8903: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8904: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8940: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8955: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8960: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8961: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8962: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8971: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8974: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8978: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8983: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8985: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8988: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8990: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8991: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8993: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8994: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8995: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8996: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8997: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm8998: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm9081: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm9090: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm9712: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm9713: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm_adsp: convert to snd_soc_dapm_xxx()
ASoC: codecs: wm_hubs: convert to snd_soc_dapm_xxx()
ASoC: fsl: fsl-asoc-card: convert to snd_soc_dapm_xxx()
ASoC: fsl: imx-rpmsg: convert to snd_soc_dapm_xxx()
ASoC: generic: audio-graph-card: convert to snd_soc_dapm_xxx()
ASoC: intel: atom: sst-atom-controls: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: da7219: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: es8336: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: nau8825: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: rt274: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: rt5514: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: rt5640: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: control: convert to snd_soc_dapm_xxx()
ASoC: intel: avs: pcm: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bdw-rt5677: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bytcht_cx2072x: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bytcht_es8316: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bytcr_rt5640: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bytcr_rt5651: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: bytcr_wm5102: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: cht_bsw_max98090_ti: convert to
snd_soc_dapm_xxx()
ASoC: intel: boards: cht_bsw_rt5645: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: cht_bsw_rt5672: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_board_helpers: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_cirrus_common: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_da7219: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_es8336: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_maxim_common: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_nau8825: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_nuvoton_common: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_pcm512x: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_realtek_common: convert to snd_soc_dapm_xxx()
ASoC: intel: boards: sof_rt5682: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mtk-afe-platform-driver: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mtk-dsp-sof-common: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mt8186-mt6366-common: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mt8186-mt6366: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mt8188-mt6359: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mt8195-mt6359: convert to snd_soc_dapm_xxx()
ASoC: mediatek: mt8365-afe-pcm: convert to snd_soc_dapm_xxx()
ASoC: meson: aiu-acodec-ctrl: convert to snd_soc_dapm_xxx()
ASoC: meson: aiu-codec-ctrl: convert to snd_soc_dapm_xxx()
ASoC: meson: axg-spdifout: convert to snd_soc_dapm_xxx()
ASoC: meson: axg-tdm-interface: convert to snd_soc_dapm_xxx()
ASoC: meson: g12a-toacodec: convert to snd_soc_dapm_xxx()
ASoC: meson: g12a-tohdmitx: convert to snd_soc_dapm_xxx()
ASoC: meson: t9015: convert to snd_soc_dapm_xxx()
ASoC: pxa: spitz: convert to snd_soc_dapm_xxx()
ASoC: qcom: q6routing: convert to snd_soc_dapm_xxx()
ASoC: qcom: q6usb: convert to snd_soc_dapm_xxx()
ASoC: qcom: topology: convert to snd_soc_dapm_xxx()
ASoC: qcom: sc7180: convert to snd_soc_dapm_xxx()
ASoC: rockchip: rk3288_hdmi_analog: convert to snd_soc_dapm_xxx()
ASoC: rockchip: rockchip_max98090: convert to snd_soc_dapm_xxx()
ASoC: samsung: aries_wm8994: convert to snd_soc_dapm_xxx()
ASoC: samsung: bells: convert to snd_soc_dapm_xxx()
ASoC: samsung: littlemill: convert to snd_soc_dapm_xxx()
ASoC: samsung: lowland: convert to snd_soc_dapm_xxx()
ASoC: samsung: midas_wm1811: convert to snd_soc_dapm_xxx()
ASoC: samsung: smdk_wm8994: convert to snd_soc_dapm_xxx()
ASoC: samsung: speyside: convert to snd_soc_dapm_xxx()
ASoC: samsung: tm2_wm5110: convert to snd_soc_dapm_xxx()
ASoC: samsung: tobermory: convert to snd_soc_dapm_xxx()
ASoC: sdca: sdca_asoc: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_bridge_cs35l56: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_cs42l42: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_cs42l43: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_cs_amp: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_dmic: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_maxim: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt5682: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt700: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt711: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt_amp: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt_mf_sdca: convert to snd_soc_dapm_xxx()
ASoC: sdw_utils: soc_sdw_rt_sdca_jack_common: convert to
snd_soc_dapm_xxx()318 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Kuninori Morimoto
maintainerPATCH 1/292 ASoC: arizona-haptics: convert to snd_soc_dapm_xxx()
This patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- drivers/input/misc/arizona-haptics.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
drivers/input/misc/arizona-haptics.c +5 -9
@@ -34,8 +34,6 @@ static void arizona_haptics_work(struct work_struct *work) struct arizona_haptics, work);struct arizona *arizona = haptics->arizona; -struct snd_soc_component *component = -snd_soc_dapm_to_component (arizona->dapm);int ret;if (!haptics->arizona->dapm) {
@@ -65,7 +63,7 @@ static void arizona_haptics_work(struct work_struct *work)return ; } - ret =snd_soc_component_enable_pin (component,"HAPTICS" ); + ret =snd_soc_dapm_enable_pin (arizona->dapm,"HAPTICS" );if (ret !=0 ) {dev_err (arizona->dev,"Failed to start HAPTICS: %d\n" , ret);
@@ -80,7 +78,7 @@ static void arizona_haptics_work(struct work_struct *work) } }else {/* This disable sequence will be a noop if already enabled */ - ret =snd_soc_component_disable_pin (component,"HAPTICS" ); + ret =snd_soc_dapm_disable_pin (arizona->dapm,"HAPTICS" );if (ret !=0 ) {dev_err (arizona->dev,"Failed to disable HAPTICS: %d\n" , ret);
@@ -139,14 +137,12 @@ static int arizona_haptics_play(struct input_dev *input, void *data,static void arizona_haptics_close (struct input_dev *input) {struct arizona_haptics *haptics =input_get_drvdata (input); -struct snd_soc_component *component; +struct snd_soc_dapm_context *dapm = haptics->arizona->dapm;cancel_work_sync (&haptics->work); -if (haptics->arizona->dapm) { - component =snd_soc_dapm_to_component (haptics->arizona->dapm); -snd_soc_component_disable_pin (component,"HAPTICS" ); - } +if (dapm) +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); }static int arizona_haptics_probe (struct platform_device *pdev)
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 2/292 ASoC: arizona-micsupp: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- drivers/regulator/arizona-micsupp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/regulator/arizona-micsupp.c +2 -6
@@ -48,7 +48,6 @@ static void arizona_micsupp_check_cp(struct work_struct *work)struct arizona_micsupp *micsupp = container_of(work, struct arizona_micsupp, check_cp_work);struct snd_soc_dapm_context *dapm = *micsupp->dapm; -struct snd_soc_component *component;const struct regulator_desc *desc = micsupp->desc;unsigned int val;int ret;
@@ -61,14 +60,11 @@ static void arizona_micsupp_check_cp(struct work_struct *work) }if (dapm) { - component =snd_soc_dapm_to_component (dapm); -if ((val & (desc->enable_mask | desc->bypass_mask)) == desc->enable_mask) -snd_soc_component_force_enable_pin (component, -"MICSUPP" ); +snd_soc_dapm_force_enable_pin (dapm,"MICSUPP" );else -snd_soc_component_disable_pin (component,"MICSUPP" ); +snd_soc_dapm_disable_pin (dapm,"MICSUPP" );snd_soc_dapm_sync (dapm); }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 3/292 ASoC: audio_codec: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- drivers/staging/greybus/audio_codec.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/staging/greybus/audio_codec.c +11 -5
@@ -807,6 +807,7 @@ int gbaudio_register_module(struct gbaudio_module_info *module) {int ret;struct snd_soc_component *comp; +struct snd_soc_dapm_context *dapm;struct gbaudio_jack *jack =NULL ;if (!gbcodec) {
@@ -815,6 +816,7 @@ int gbaudio_register_module(struct gbaudio_module_info *module) } comp = gbcodec->component; + dapm =snd_soc_component_to_dapm (comp);mutex_lock (&gbcodec->register_mutex);
@@ -833,18 +835,18 @@ int gbaudio_register_module(struct gbaudio_module_info *module) }if (module->dapm_widgets) -snd_soc_dapm_new_controls (&comp->dapm, module->dapm_widgets, +snd_soc_dapm_new_controls (dapm, module->dapm_widgets, module->num_dapm_widgets);if (module->controls)snd_soc_add_component_controls (comp, module->controls, module->num_controls);if (module->dapm_routes) -snd_soc_dapm_add_routes (&comp->dapm, module->dapm_routes, +snd_soc_dapm_add_routes (dapm, module->dapm_routes, module->num_dapm_routes);/* card already instantiated, create widgets here only */ if (comp->card->instantiated) { -gbaudio_dapm_link_component_dai_widgets (comp->card, &comp->dapm); +gbaudio_dapm_link_component_dai_widgets (comp->card, dapm);#ifdef CONFIG_SND_JACK /* * register jack devices for this module
@@ -966,9 +968,11 @@ void gbaudio_unregister_module(struct gbaudio_module_info *module)#endif if (module->dapm_routes) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (comp); +dev_dbg (comp->dev,"Removing %d routes\n" , module->num_dapm_routes); -snd_soc_dapm_del_routes (&comp->dapm, module->dapm_routes, +snd_soc_dapm_del_routes (dapm, module->dapm_routes, module->num_dapm_routes); }if (module->controls) {
@@ -979,9 +983,11 @@ void gbaudio_unregister_module(struct gbaudio_module_info *module) module->num_controls); }if (module->dapm_widgets) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (comp); +dev_dbg (comp->dev,"Removing %d widgets\n" , module->num_dapm_widgets); -gbaudio_dapm_free_controls (&comp->dapm, module->dapm_widgets, +gbaudio_dapm_free_controls (dapm, module->dapm_widgets, module->num_dapm_widgets); }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 4/292 ASoC: audio_helper: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- drivers/staging/greybus/audio_helper.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/staging/greybus/audio_helper.c +5 -4
@@ -115,12 +115,13 @@ int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, {int i;struct snd_soc_dapm_widget *w, *tmp_w; +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm); -mutex_lock (&dapm->card->dapm_mutex); +mutex_lock (&card->dapm_mutex);for (i =0 ; i < num; i++) {/* below logic can be optimized to identify widget pointer */ w =NULL ; -list_for_each_entry (tmp_w, &dapm->card->widgets, list) { +list_for_each_entry (tmp_w, &card->widgets, list) {if (tmp_w->dapm == dapm && !strcmp (tmp_w->name, widget->name)) { w = tmp_w;
@@ -128,7 +129,7 @@ int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, } }if (!w) { -dev_err (dapm->dev,"%s: widget not found\n" , +dev_err (card->dev,"%s: widget not found\n" , widget->name); widget++;continue ;
@@ -136,7 +137,7 @@ int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, widget++;gbaudio_dapm_free_widget (w); } -mutex_unlock (&dapm->card->dapm_mutex); +mutex_unlock (&card->dapm_mutex);return 0 ; }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 5/292 ASoC: audio_topology: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- drivers/staging/greybus/audio_topology.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/greybus/audio_topology.c +7 -7
@@ -380,7 +380,7 @@ static int gbcodec_mixer_dapm_ctl_get(struct snd_kcontrol *kcontrol,struct gbaudio_module_info *module;struct snd_soc_dapm_widget_list *wlist =snd_kcontrol_chip (kcontrol);struct snd_soc_dapm_widget *widget = wlist->widgets[0 ]; -struct device *codec_dev = widget->dapm->dev; +struct device *codec_dev =snd_soc_dapm_to_dev (widget->dapm);struct gbaudio_codec_info *gb =dev_get_drvdata (codec_dev);struct gb_bundle *bundle;
@@ -393,7 +393,7 @@ static int gbcodec_mixer_dapm_ctl_get(struct snd_kcontrol *kcontrol, bundle =to_gb_bundle (module->dev);if (data->vcount ==2 ) -dev_warn (widget->dapm->dev, +dev_warn (codec_dev,"GB: Control '%s' is stereo, which is not supported\n" , kcontrol->id.name);
@@ -429,7 +429,7 @@ static int gbcodec_mixer_dapm_ctl_put(struct snd_kcontrol *kcontrol,struct gbaudio_module_info *module;struct snd_soc_dapm_widget_list *wlist =snd_kcontrol_chip (kcontrol);struct snd_soc_dapm_widget *widget = wlist->widgets[0 ]; -struct device *codec_dev = widget->dapm->dev; +struct device *codec_dev =snd_soc_dapm_to_dev (widget->dapm);struct gbaudio_codec_info *gb =dev_get_drvdata (codec_dev);struct gb_bundle *bundle;
@@ -443,7 +443,7 @@ static int gbcodec_mixer_dapm_ctl_put(struct snd_kcontrol *kcontrol, bundle =to_gb_bundle (module->dev);if (data->vcount ==2 ) -dev_warn (widget->dapm->dev, +dev_warn (codec_dev,"GB: Control '%s' is stereo, which is not supported\n" , kcontrol->id.name);
@@ -712,7 +712,7 @@ static int gbcodec_enum_dapm_ctl_get(struct snd_kcontrol *kcontrol,struct snd_soc_dapm_widget *widget = wlist->widgets[0 ];struct gbaudio_module_info *module;struct gb_audio_ctl_elem_value gbvalue; -struct device *codec_dev = widget->dapm->dev; +struct device *codec_dev =snd_soc_dapm_to_dev (widget->dapm);struct gbaudio_codec_info *gb =dev_get_drvdata (codec_dev);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct gb_bundle *bundle;
@@ -759,7 +759,7 @@ static int gbcodec_enum_dapm_ctl_put(struct snd_kcontrol *kcontrol,struct snd_soc_dapm_widget *widget = wlist->widgets[0 ];struct gb_audio_ctl_elem_value gbvalue;struct gbaudio_module_info *module; -struct device *codec_dev = widget->dapm->dev; +struct device *codec_dev =snd_soc_dapm_to_dev (widget->dapm);struct gbaudio_codec_info *gb =dev_get_drvdata (codec_dev);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct gb_bundle *bundle;
@@ -924,7 +924,7 @@ static int gbaudio_widget_event(struct snd_soc_dapm_widget *w, {int wid;int ret; -struct device *codec_dev = w->dapm->dev; +struct device *codec_dev =snd_soc_dapm_to_dev (w->dapm);struct gbaudio_codec_info *gbcodec =dev_get_drvdata (codec_dev);struct gbaudio_module_info *module;struct gb_bundle *bundle;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 6/292 ASoC: soc.h: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- include/sound/soc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
include/sound/soc.h +4 -4
@@ -1467,22 +1467,22 @@ static inline void _snd_soc_dapm_mutex_assert_held_c(struct snd_soc_card *card)static inline void _snd_soc_dapm_mutex_lock_root_d (struct snd_soc_dapm_context *dapm) { -_snd_soc_dapm_mutex_lock_root_c (dapm->card); +_snd_soc_dapm_mutex_lock_root_c (snd_soc_dapm_to_card (dapm)); }static inline void _snd_soc_dapm_mutex_lock_d (struct snd_soc_dapm_context *dapm) { -_snd_soc_dapm_mutex_lock_c (dapm->card); +_snd_soc_dapm_mutex_lock_c (snd_soc_dapm_to_card (dapm)); }static inline void _snd_soc_dapm_mutex_unlock_d (struct snd_soc_dapm_context *dapm) { -_snd_soc_dapm_mutex_unlock_c (dapm->card); +_snd_soc_dapm_mutex_unlock_c (snd_soc_dapm_to_card (dapm)); }static inline void _snd_soc_dapm_mutex_assert_held_d (struct snd_soc_dapm_context *dapm) { -_snd_soc_dapm_mutex_assert_held_c (dapm->card); +_snd_soc_dapm_mutex_assert_held_c (snd_soc_dapm_to_card (dapm)); }#define snd_soc_dapm_mutex_lock_root (x) _Generic((x), \
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 7/292 ASoC: asoc.h: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- include/trace/events/asoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/trace/events/asoc.h +2 -2
@@ -27,8 +27,8 @@ DECLARE_EVENT_CLASS(snd_soc_dapm,TP_ARGS (dapm, val),TP_STRUCT__entry ( - __string( card_name, dapm->card->name) - __string( comp_name, dapm->component ? dapm->component->name : "(none)") + __string( card_name, snd_soc_dapm_to_card(dapm)->name) + __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)")__field ( int, val) ),
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 8/292 ASoC: amd: acp-mach-common: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/amd/acp/acp-mach-common.c | 40 +++++++++++++++++------------ 1 file changed, 23 insertions(+), 17 deletions(-)
sound/soc/amd/acp/acp-mach-common.c +23 -17
@@ -116,6 +116,7 @@ static const struct snd_soc_dapm_route rt5682_map[] = {static int acp_card_rt5682_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;struct snd_soc_dai *codec_dai =snd_soc_rtd_to_codec (rtd,0 );struct snd_soc_component *component = codec_dai->component;
@@ -129,7 +130,7 @@ static int acp_card_rt5682_init(struct snd_soc_pcm_runtime *rtd) drvdata->wclk =clk_get (component->dev,"rt5682-dai-wclk" ); drvdata->bclk =clk_get (component->dev,"rt5682-dai-bclk" ); - ret =snd_soc_dapm_new_controls (&card->dapm, rt5682_widgets, + ret =snd_soc_dapm_new_controls (dapm, rt5682_widgets,ARRAY_SIZE (rt5682_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -166,7 +167,7 @@ static int acp_card_rt5682_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, rt5682_map,ARRAY_SIZE (rt5682_map)); +return snd_soc_dapm_add_routes (dapm, rt5682_map,ARRAY_SIZE (rt5682_map)); }static int acp_card_hs_startup (struct snd_pcm_substream *substream)
@@ -357,6 +358,7 @@ static const struct snd_soc_dapm_route rt5682s_map[] = {static int acp_card_rt5682s_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;struct snd_soc_dai *codec_dai =snd_soc_rtd_to_codec (rtd,0 );struct snd_soc_component *component = codec_dai->component;
@@ -372,7 +374,7 @@ static int acp_card_rt5682s_init(struct snd_soc_pcm_runtime *rtd) drvdata->bclk =clk_get (component->dev,"rt5682-dai-bclk" ); } - ret =snd_soc_dapm_new_controls (&card->dapm, rt5682s_widgets, + ret =snd_soc_dapm_new_controls (dapm, rt5682s_widgets,ARRAY_SIZE (rt5682s_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -409,7 +411,7 @@ static int acp_card_rt5682s_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, rt5682s_map,ARRAY_SIZE (rt5682s_map)); +return snd_soc_dapm_add_routes (dapm, rt5682s_map,ARRAY_SIZE (rt5682s_map)); } static int acp_card_rt5682s_hw_params(struct snd_pcm_substream *substream,
@@ -581,13 +583,14 @@ static struct snd_soc_codec_conf rt1019_conf[] = {static int acp_card_rt1019_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;int ret;if (drvdata->amp_codec_id !=RT1019 )return -EINVAL ; - ret =snd_soc_dapm_new_controls (&card->dapm, rt1019_widgets, + ret =snd_soc_dapm_new_controls (dapm, rt1019_widgets,ARRAY_SIZE (rt1019_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -601,7 +604,7 @@ static int acp_card_rt1019_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, rt1019_map_lr, +return snd_soc_dapm_add_routes (dapm, rt1019_map_lr,ARRAY_SIZE (rt1019_map_lr)); }
@@ -746,13 +749,14 @@ static const struct snd_soc_dapm_route max98360a_map[] = {static int acp_card_maxim_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;int ret;if (drvdata->amp_codec_id !=MAX98360A )return -EINVAL ; - ret =snd_soc_dapm_new_controls (&card->dapm, max98360a_widgets, + ret =snd_soc_dapm_new_controls (dapm, max98360a_widgets,ARRAY_SIZE (max98360a_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -766,7 +770,7 @@ static int acp_card_maxim_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, max98360a_map, +return snd_soc_dapm_add_routes (dapm, max98360a_map,ARRAY_SIZE (max98360a_map)); }
@@ -882,13 +886,14 @@ static int acp_card_max98388_startup(struct snd_pcm_substream *substream)static int acp_card_max98388_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;int ret;if (drvdata->amp_codec_id !=MAX98388 )return -EINVAL ; - ret =snd_soc_dapm_new_controls (&card->dapm, max98388_widgets, + ret =snd_soc_dapm_new_controls (dapm, max98388_widgets,ARRAY_SIZE (max98388_widgets));if (ret) {
@@ -904,7 +909,7 @@ static int acp_card_max98388_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, max98388_map, +return snd_soc_dapm_add_routes (dapm, max98388_map,ARRAY_SIZE (max98388_map)); }
@@ -966,6 +971,7 @@ static const struct snd_soc_dapm_route nau8825_map[] = {static int acp_card_nau8825_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct acp_card_drvdata *drvdata = card->drvdata;struct snd_soc_dai *codec_dai =snd_soc_rtd_to_codec (rtd,0 );struct snd_soc_component *component = codec_dai->component;
@@ -976,7 +982,7 @@ static int acp_card_nau8825_init(struct snd_soc_pcm_runtime *rtd)if (drvdata->hs_codec_id !=NAU8825 )return -EINVAL ; - ret =snd_soc_dapm_new_controls (&card->dapm, nau8825_widgets, + ret =snd_soc_dapm_new_controls (dapm, nau8825_widgets,ARRAY_SIZE (nau8825_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -1013,7 +1019,7 @@ static int acp_card_nau8825_init(struct snd_soc_pcm_runtime *rtd)return ret; } -return snd_soc_dapm_add_routes (&rtd->card->dapm, nau8825_map,ARRAY_SIZE (nau8825_map)); +return snd_soc_dapm_add_routes (dapm, nau8825_map,ARRAY_SIZE (nau8825_map)); } static int acp_nau8825_hw_params(struct snd_pcm_substream *substream,
@@ -1102,8 +1108,7 @@ static const struct snd_soc_ops acp_card_nau8825_ops = {static int platform_clock_control (struct snd_soc_dapm_widget *w,struct snd_kcontrol *k,int event) { -struct snd_soc_dapm_context *dapm = w->dapm; -struct snd_soc_card *card = dapm->card; +struct snd_soc_card *card =snd_soc_dapm_to_card (w->dapm);struct snd_soc_dai *codec_dai;int ret =0 ;
@@ -1181,13 +1186,14 @@ static struct snd_pcm_hw_constraint_list constraints_sample_bits = {static int acp_8821_init (struct snd_soc_pcm_runtime *rtd) {struct snd_soc_card *card = rtd->card; +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card);struct snd_soc_dai *codec_dai =snd_soc_rtd_to_codec (rtd,0 );struct snd_soc_component *component = codec_dai->component;int ret;dev_info (rtd->dev,"codec dai name = %s\n" , codec_dai->name); - ret =snd_soc_dapm_new_controls (&card->dapm, nau8821_widgets, + ret =snd_soc_dapm_new_controls (dapm, nau8821_widgets,ARRAY_SIZE (nau8821_widgets));if (ret) {dev_err (rtd->dev,"unable to add widget dapm controls, ret %d\n" , ret);
@@ -1221,7 +1227,7 @@ static int acp_8821_init(struct snd_soc_pcm_runtime *rtd)nau8821_enable_jack_detect (component, &nau8821_jack); -return snd_soc_dapm_add_routes (&rtd->card->dapm, nau8821_audio_route, +return snd_soc_dapm_add_routes (dapm, nau8821_audio_route,ARRAY_SIZE (nau8821_audio_route)); }
@@ -1340,7 +1346,7 @@ static int acp_rtk_set_bias_level(struct snd_soc_card *card,struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) { - struct snd_soc_component *component = dapm->component; + struct snd_soc_component *component = snd_soc_dapm_to_component(dapm);struct acp_card_drvdata *drvdata = card->drvdata;int ret =0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 9/292 ASoC: amd: acp3x-es83xx: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c +7 -3
@@ -159,7 +159,8 @@ static int acp3x_es83xx_configure_widgets(struct snd_soc_card *card)static int acp3x_es83xx_headphone_power_event (struct snd_soc_dapm_widget *w,struct snd_kcontrol *kcontrol,int event) { -struct acp3x_es83xx_private *priv =get_mach_priv (w->dapm->card); +struct snd_soc_card *card =snd_soc_dapm_to_card (w->dapm); +struct acp3x_es83xx_private *priv =get_mach_priv (card);dev_dbg (priv->codec_dev,"headphone power event = %d\n" , event);if (SND_SOC_DAPM_EVENT_ON (event))
@@ -176,7 +177,8 @@ static int acp3x_es83xx_headphone_power_event(struct snd_soc_dapm_widget *w,static int acp3x_es83xx_speaker_power_event (struct snd_soc_dapm_widget *w,struct snd_kcontrol *kcontrol,int event) { -struct acp3x_es83xx_private *priv =get_mach_priv (w->dapm->card); +struct snd_soc_card *card =snd_soc_dapm_to_card (w->dapm); +struct acp3x_es83xx_private *priv =get_mach_priv (card);dev_dbg (priv->codec_dev,"speaker power event: %d\n" , event);if (SND_SOC_DAPM_EVENT_ON (event))
@@ -314,7 +316,9 @@ static int acp3x_es83xx_init(struct snd_soc_pcm_runtime *runtime) num_routes =acp3x_es83xx_configure_mics (priv);if (num_routes >0 ) { - ret =snd_soc_dapm_add_routes (&card->dapm, priv->mic_map, num_routes); +struct snd_soc_dapm_context *dapm =snd_soc_card_to_dapm (card); + + ret =snd_soc_dapm_add_routes (dapm, priv->mic_map, num_routes);if (ret !=0 )device_remove_software_node (priv->codec_dev); }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 10/292 ASoC: amd: acp5x-mach: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/amd/vangogh/acp5x-mach.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/amd/vangogh/acp5x-mach.c +1 -2
@@ -61,8 +61,7 @@ static const struct snd_kcontrol_new acp5x_8821_controls[] = {static int platform_clock_control (struct snd_soc_dapm_widget *w,struct snd_kcontrol *k,int event) { -struct snd_soc_dapm_context *dapm = w->dapm; -struct snd_soc_card *card = dapm->card; +struct snd_soc_card *card =snd_soc_dapm_to_card (w->dapm);struct snd_soc_dai *dai;int ret =0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 11/292 ASoC: atmel: sam9g20_wm8731: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/atmel/sam9g20_wm8731.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/atmel/sam9g20_wm8731.c +1 -1
@@ -80,7 +80,7 @@ static int at91sam9g20ek_wm8731_init(struct snd_soc_pcm_runtime *rtd) }#ifndef ENABLE_MIC_INPUT -snd_soc_dapm_nc_pin (&rtd->card->dapm,"Int Mic" ); +snd_soc_dapm_disable_pin (snd_soc_card_to_dapm (rtd->card),"Int Mic" );#endif return 0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 12/292 ASoC: atmel: tse850-pcm5142: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/atmel/tse850-pcm5142.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
sound/soc/atmel/tse850-pcm5142.c +16 -16
@@ -58,8 +58,8 @@ struct tse850_priv {static int tse850_get_mux1 (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card); ucontrol->value.enumerated.item[0 ] = tse850->loop1_cache;
@@ -70,8 +70,8 @@ static int tse850_get_mux1(struct snd_kcontrol *kctrl,static int tse850_put_mux1 (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card);struct soc_enum *e = (struct soc_enum *)kctrl->private_value;unsigned int val = ucontrol->value.enumerated.item[0 ];
@@ -88,8 +88,8 @@ static int tse850_put_mux1(struct snd_kcontrol *kctrl,static int tse850_get_mux2 (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card); ucontrol->value.enumerated.item[0 ] = tse850->loop2_cache;
@@ -100,8 +100,8 @@ static int tse850_get_mux2(struct snd_kcontrol *kctrl,static int tse850_put_mux2 (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card);struct soc_enum *e = (struct soc_enum *)kctrl->private_value;unsigned int val = ucontrol->value.enumerated.item[0 ];
@@ -118,8 +118,8 @@ static int tse850_put_mux2(struct snd_kcontrol *kctrl,static int tse850_get_mix (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card); ucontrol->value.enumerated.item[0 ] = tse850->add_cache;
@@ -130,8 +130,8 @@ static int tse850_get_mix(struct snd_kcontrol *kctrl,static int tse850_put_mix (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card);int connect = !!ucontrol->value.integer.value[0 ];
@@ -152,8 +152,8 @@ static int tse850_put_mix(struct snd_kcontrol *kctrl,static int tse850_get_ana (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card);int ret;
@@ -185,8 +185,8 @@ static int tse850_get_ana(struct snd_kcontrol *kctrl,static int tse850_put_ana (struct snd_kcontrol *kctrl,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kctrl); -struct snd_soc_card *card = dapm->card; +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kctrl); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct tse850_priv *tse850 =snd_soc_card_get_drvdata (card);struct soc_enum *e = (struct soc_enum *)kctrl->private_value;unsigned int uV = ucontrol->value.enumerated.item[0 ];
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 13/292 ASoC: codecs: ab8500: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ab8500-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/ab8500-codec.c +3 -3
@@ -1197,7 +1197,7 @@ static int anc_status_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct ab8500_codec_drvdata *drvdata =dev_get_drvdata (component->dev);struct device *dev = component->dev;bool apply_fir, apply_iir;
@@ -1934,7 +1934,7 @@ static int ab8500_audio_init_audioblock(struct snd_soc_component *component)static int ab8500_audio_setup_mics (struct snd_soc_component *component,struct amic_settings *amics) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);u8 value8;unsigned int value;int status;
@@ -2449,7 +2449,7 @@ static void ab8500_codec_of_probe(struct device *dev, struct device_node *np,static int ab8500_codec_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct device *dev = component->dev;struct device_node *np = dev->of_node;struct ab8500_codec_drvdata *drvdata =dev_get_drvdata (dev);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 14/292 ASoC: codecs: 88pm860x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/88pm860x-codec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/88pm860x-codec.c +2 -1
@@ -1106,6 +1106,7 @@ static int pm860x_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct pm860x_priv *pm860x =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int data;switch (level) {
@@ -1116,7 +1117,7 @@ static int pm860x_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* Enable Audio PLL & Audio section */ data =AUDIO_PLL |AUDIO_SECTION_ON ;pm860x_reg_write (pm860x->i2c,REG_MISC2 , data);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 15/292 ASoC: codecs: ad1836: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ad1836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/ad1836.c +1 -1
@@ -250,7 +250,7 @@ static int ad1836_resume(struct snd_soc_component *component)static int ad1836_probe (struct snd_soc_component *component) {struct ad1836_priv *ad1836 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int num_dacs, num_adcs;int ret =0 ;int i;
Signature · 1 line
2.43.0
Re: [PATCH 015/292] ASoC: codecs: ad1836: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 16 lines
sound/soc/codecs/ad1836.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/codecs/ad1836.c +1
-1@@ -250,7 +250,7 @@ static int ad1836_resume(struct snd_soc_component *component) static int ad1836_probe(struct snd_soc_component *component) { struct ad1836_priv *ad1836 = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); int num_dacs, num_adcs; int ret = 0; int i;
Kuninori Morimoto
maintainerPATCH 16/292 ASoC: codecs: ad193x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ad193x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/ad193x.c +2 -2
@@ -282,7 +282,7 @@ static int ad193x_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, unsigned int freq, int dir) { struct snd_soc_component *component = codec_dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct ad193x_priv *ad193x =snd_soc_component_get_drvdata (component);if (clk_id ==AD193X_SYSCLK_MCLK ) {
@@ -476,7 +476,7 @@ static void ad193x_reg_default_init(struct ad193x_priv *ad193x)static int ad193x_component_probe (struct snd_soc_component *component) {struct ad193x_priv *ad193x =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int num, ret;/* default setting for ad193x */
Signature · 1 line
2.43.0
Re: [PATCH 016/292] ASoC: codecs: ad193x: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 25 lines
sound/soc/codecs/ad193x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)sound/soc/codecs/ad193x.c +1
-1@@ -282,7 +282,7 @@ static int ad193x_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, unsigned int freq, int dir) { struct snd_soc_component *component = codec_dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(component);
if (clk_id==AD193X_SYSCLK_MCLK) {sound/soc/codecs/ad193x.c +1
-1@@ -476,7 +476,7 @@ static void ad193x_reg_default_init(struct ad193x_priv *ad193x) static int ad193x_component_probe(struct snd_soc_component *component) { struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); int num, ret;
/* default setting for ad193x */
Kuninori Morimoto
maintainerPATCH 17/292 ASoC: codecs: adau1761: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adau1761.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/codecs/adau1761.c +5 -4
@@ -621,6 +621,7 @@ static int adau1761_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct adau *adau =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -632,7 +633,7 @@ static int adau1761_set_bias_level(struct snd_soc_component *component,regmap_update_bits (adau->regmap,ADAU17X1_CLOCK_CONTROL ,ADAU17X1_CLOCK_CONTROL_SYSCLK_EN ,ADAU17X1_CLOCK_CONTROL_SYSCLK_EN ); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )regcache_sync (adau->regmap);break ;case SND_SOC_BIAS_OFF :
@@ -658,7 +659,7 @@ static enum adau1761_output_mode adau1761_get_lineout_mode(static int adau1761_setup_digmic_jackdetect (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau1761_platform_data *pdata = component->dev->platform_data;struct adau *adau =snd_soc_component_get_drvdata (component);enum adau1761_digmic_jackdet_pin_mode mode;
@@ -721,7 +722,7 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component)static int adau1761_setup_headphone_mode (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =snd_soc_component_get_drvdata (component);struct adau1761_platform_data *pdata = component->dev->platform_data;enum adau1761_output_mode mode;
@@ -819,7 +820,7 @@ static bool adau1761_readable_register(struct device *dev, unsigned int reg)static int adau1761_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau1761_platform_data *pdata = component->dev->platform_data;struct adau *adau =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Re: [PATCH 017/292] ASoC: codecs: adau1761: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 52 lines
sound/soc/codecs/adau1761.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)sound/soc/codecs/adau1761.c +1
-0@@ -621,6 +621,7 @@ static int adau1761_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) { struct adau *adau = snd_soc_component_get_drvdata(component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);
switch (level) {
caseSND_SOC_BIAS_ON:sound/soc/codecs/adau1761.c +1
-1@@ -632,7 +633,7 @@ static int adau1761_set_bias_level(struct snd_soc_component *component, regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL, ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, ADAU17X1_CLOCK_CONTROL_SYSCLK_EN); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) regcache_sync(adau->regmap); break;case
SND_SOC_BIAS_OFF:sound/soc/codecs/adau1761.c +0
-0@@ -658,7 +659,7 @@ static enum adau1761_output_mode adau1761_get_lineout_mode(
static intadau1761_setup_digmic_jackdetect(struct snd_soc_component *component){sound/soc/codecs/adau1761.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct
adau1761_platform_data*pdata =component->dev->platform_data; struct adau *adau =snd_soc_component_get_drvdata(component); enumadau1761_digmic_jackdet_pin_modemode;sound/soc/codecs/adau1761.c +0
-0@@ -721,7 +722,7 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component)
static intadau1761_setup_headphone_mode(struct snd_soc_component *component){sound/soc/codecs/adau1761.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =
snd_soc_component_get_drvdata(component); structadau1761_platform_data*pdata =component->dev->platform_data; enumadau1761_output_modemode;sound/soc/codecs/adau1761.c +0
-0@@ -819,7 +820,7 @@ static bool adau1761_readable_register(struct device *dev, unsigned int reg)
static intadau1761_component_probe(struct snd_soc_component *component){sound/soc/codecs/adau1761.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct
adau1761_platform_data*pdata =component->dev->platform_data; struct adau *adau =snd_soc_component_get_drvdata(component); int ret;
Kuninori Morimoto
maintainerPATCH 18/292 ASoC: codecs: adau1781: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adau1781.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/adau1781.c +1 -1
@@ -381,7 +381,7 @@ static int adau1781_set_input_mode(struct adau *adau, unsigned int reg,static int adau1781_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau1781_platform_data *pdata =dev_get_platdata (component->dev);struct adau *adau =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Re: [PATCH 018/292] ASoC: codecs: adau1781: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 16 lines
sound/soc/codecs/adau1781.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/codecs/adau1781.c +0
-0@@ -381,7 +381,7 @@ static int adau1781_set_input_mode(struct adau *adau, unsigned int reg,
static intadau1781_component_probe(struct snd_soc_component *component){sound/soc/codecs/adau1781.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct
adau1781_platform_data*pdata =dev_get_platdata(component->dev); struct adau *adau =snd_soc_component_get_drvdata(component); int ret;
Kuninori Morimoto
maintainerPATCH 19/292 ASoC: codecs: adau17x1: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adau17x1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
sound/soc/codecs/adau17x1.c +7 -7
@@ -185,8 +185,8 @@ static const struct snd_soc_dapm_route adau17x1_dapm_pll_route = {static int adau17x1_dsp_mux_enum_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct snd_soc_dapm_update update = {};
@@ -230,7 +230,7 @@ static int adau17x1_dsp_mux_enum_put(struct snd_kcontrol *kcontrol,static int adau17x1_dsp_mux_enum_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct adau *adau =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int stream = e->shift_l;
@@ -383,7 +383,7 @@ static int adau17x1_set_dai_pll(struct snd_soc_dai *dai, int pll_id,static int adau17x1_set_dai_sysclk (struct snd_soc_dai *dai,int clk_id,unsigned int freq,int dir) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (dai->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (dai->component);struct adau *adau =snd_soc_component_get_drvdata (dai->component);bool is_pll;bool was_pll;
@@ -881,7 +881,7 @@ static int adau17x1_setup_firmware(struct snd_soc_component *component,int ret;int dspsr, dsp_run;struct adau *adau =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);/* Check if sample rate is the same as before. If it is there is no * point in performing the below steps as the call to
@@ -922,7 +922,7 @@ static int adau17x1_setup_firmware(struct snd_soc_component *component,int adau17x1_add_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =snd_soc_component_get_drvdata (component);int ret;
@@ -958,7 +958,7 @@ EXPORT_SYMBOL_GPL(adau17x1_add_widgets);int adau17x1_add_routes (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Re: [PATCH 019/292] ASoC: codecs: adau17x1: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 63 lines
sound/soc/codecs/adau17x1.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)sound/soc/codecs/adau17x1.c +5
-5@@ -185,8 +185,8 @@ static const struct snd_soc_dapm_route adau17x1_dapm_pll_route = { static int adau17x1_dsp_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); struct adau *adau = snd_soc_component_get_drvdata(component); struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; struct snd_soc_dapm_update update = {};@@ -230,7 +230,7 @@ static int adau17x1_dsp_mux_enum_put(struct snd_kcontrol *kcontrol, static int adau17x1_dsp_mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); struct adau *adau = snd_soc_component_get_drvdata(component); struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; unsigned int stream = e->shift_l;@@ -383,7 +383,7 @@ static int adau17x1_set_dai_pll(struct snd_soc_dai *dai, int pll_id, static int adau17x1_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (dai->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (dai->component); struct adau *adau = snd_soc_component_get_drvdata(dai->component); bool is_pll; bool was_pll;@@ -881,7 +881,7 @@ static int adau17x1_setup_firmware(struct snd_soc_component *component, int ret; int dspsr, dsp_run; struct adau *adau = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);
/* Check if sample rate is the same as before. If it is there is no
* point in performing the below steps as the call tosound/soc/codecs/adau17x1.c +0
-0@@ -922,7 +922,7 @@ static int adau17x1_setup_firmware(struct snd_soc_component *component,
intadau17x1_add_widgets(struct snd_soc_component *component){sound/soc/codecs/adau17x1.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =
snd_soc_component_get_drvdata(component); int ret;sound/soc/codecs/adau17x1.c +0
-0@@ -958,7 +958,7 @@ EXPORT_SYMBOL_GPL(adau17x1_add_widgets);
intadau17x1_add_routes(struct snd_soc_component *component){sound/soc/codecs/adau17x1.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau *adau =
snd_soc_component_get_drvdata(component); int ret;
Kuninori Morimoto
maintainerPATCH 20/292 ASoC: codecs: adau1977: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adau1977.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/adau1977.c +3 -2
@@ -473,6 +473,7 @@ static int adau1977_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct adau1977 *adau1977 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret =0 ;switch (level) {
@@ -481,7 +482,7 @@ static int adau1977_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) ret =adau1977_power_enable (adau1977);break ;case SND_SOC_BIAS_OFF :
@@ -845,7 +846,7 @@ static int adau1977_set_sysclk(struct snd_soc_component *component,static int adau1977_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau1977 *adau1977 =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Re: [PATCH 020/292] ASoC: codecs: adau1977: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 33 lines
sound/soc/codecs/adau1977.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)sound/soc/codecs/adau1977.c +1
-0@@ -473,6 +473,7 @@ static int adau1977_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) { struct adau1977 *adau1977 = snd_soc_component_get_drvdata(component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); int ret = 0;
switch (level) {sound/soc/codecs/adau1977.c +0
-0@@ -481,7 +482,7 @@ static int adau1977_set_bias_level(struct snd_soc_component *component,case
SND_SOC_BIAS_PREPARE:
break;
caseSND_SOC_BIAS_STANDBY:sound/soc/codecs/adau1977.c +1
-1-if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )ret =
adau1977_power_enable(adau1977); break;
caseSND_SOC_BIAS_OFF:sound/soc/codecs/adau1977.c +0
-0@@ -845,7 +846,7 @@ static int adau1977_set_sysclk(struct snd_soc_component *component,
static intadau1977_component_probe(struct snd_soc_component *component){sound/soc/codecs/adau1977.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adau1977 *adau1977 =
snd_soc_component_get_drvdata(component); int ret;
Kuninori Morimoto
maintainerPATCH 21/292 ASoC: codecs: adau7118: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adau7118.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
sound/soc/codecs/adau7118.c +3 -4
@@ -335,6 +335,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct adau7118_data *st =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret =0 ;dev_dbg (st->dev,"Set bias level %d\n" , level);
@@ -345,8 +346,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) == -SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* power on */ ret =regulator_enable (st->iovdd);if (ret)
@@ -393,8 +393,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component,static int adau7118_component_probe (struct snd_soc_component *component) {struct adau7118_data *st =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret =0 ;if (st->hw_mode) {
Signature · 1 line
2.43.0
Re: [PATCH 021/292] ASoC: codecs: adau7118: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 35 lines
sound/soc/codecs/adau7118.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)sound/soc/codecs/adau7118.c +1
-0@@ -335,6 +335,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) { struct adau7118_data *st = snd_soc_component_get_drvdata(component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); int ret = 0;
dev_dbg(st->dev, "Set bias level %d\n", level);sound/soc/codecs/adau7118.c +0
-0@@ -345,8 +346,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component, break;
caseSND_SOC_BIAS_STANDBY:sound/soc/codecs/adau7118.c +1
-2-if (snd_soc_component_get_bias_level (component) == -SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* power on */
ret =regulator_enable(st->iovdd); if (ret)sound/soc/codecs/adau7118.c +1
-2@@ -393,8 +393,7 @@ static int adau7118_set_bias_level(struct snd_soc_component *component, static int adau7118_component_probe(struct snd_soc_component *component) { struct adau7118_data *st = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); int ret = 0;
if (st->hw_mode) {
Kuninori Morimoto
maintainerPATCH 22/292 ASoC: codecs: adav80x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/adav80x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/adav80x.c +3 -3
@@ -539,7 +539,7 @@ static int adav80x_set_sysclk(struct snd_soc_component *component, unsigned int freq, int dir) {struct adav80x *adav80x =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (dir ==SND_SOC_CLOCK_IN ) {switch (clk_id) {
@@ -622,7 +622,7 @@ static int adav80x_set_sysclk(struct snd_soc_component *component,static int adav80x_set_pll (struct snd_soc_component *component,int pll_id,int source,unsigned int freq_in,unsigned int freq_out) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adav80x *adav80x =snd_soc_component_get_drvdata (component);unsigned int pll_ctrl1 =0 ;unsigned int pll_ctrl2 =0 ;
@@ -802,7 +802,7 @@ static struct snd_soc_dai_driver adav80x_dais[] = {static int adav80x_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adav80x *adav80x =snd_soc_component_get_drvdata (component);/* Force PLLs on for SYSCLK output */
Signature · 1 line
2.43.0
Re: [PATCH 022/292] ASoC: codecs: adav80x: convert to snd_soc_dapm_xxx()
Quoted 22 lines · Kuninori Morimoto
This patch converts below functions.
dapm->dev->snd_soc_dapm_to_dev()dapm->card->snd_soc_dapm_to_card()dapm->component->snd_soc_dapm_to_component()
dapm_kcontrol_get_value()->snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin()->snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked()->snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin()->snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked()->snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin()->snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked()->snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status()->snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin()->snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked()->snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level()->snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level()->snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level()->snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm()->snd_soc_component_to_dapm()
Quoted 7 lines
snd_soc_dapm_kcontrol_component()->snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget()->snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm()->snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin()->snd_soc_dapm_disable_pin()Signed-off-by Kuninori Morimoto <[email protected]>---
Quoted 34 lines
sound/soc/codecs/adav80x.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)sound/soc/codecs/adav80x.c +1
-1@@ -539,7 +539,7 @@ static int adav80x_set_sysclk(struct snd_soc_component *component, unsigned int freq, int dir) { struct adav80x *adav80x = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);
if (dir ==SND_SOC_CLOCK_IN) {
switch (clk_id) {sound/soc/codecs/adav80x.c +1
-1@@ -622,7 +622,7 @@ static int adav80x_set_sysclk(struct snd_soc_component *component, static int adav80x_set_pll(struct snd_soc_component *component, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); struct adav80x *adav80x = snd_soc_component_get_drvdata(component); unsigned int pll_ctrl1 = 0; unsigned int pll_ctrl2 = 0;@@ -802,7 +802,7 @@ static struct snd_soc_dai_driver adav80x_dais[] = {
static intadav80x_probe(struct snd_soc_component *component){sound/soc/codecs/adav80x.c +1
-1-struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adav80x *adav80x =
snd_soc_component_get_drvdata(component);
/* Force PLLs on for SYSCLK output */
Kuninori Morimoto
maintainerPATCH 23/292 ASoC: codecs: ak4641: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ak4641.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/ak4641.c +2 -1
@@ -415,6 +415,7 @@ static int ak4641_mute(struct snd_soc_dai *dai, int mute, int direction)static int ak4641_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct ak4641_priv *ak4641 =snd_soc_component_get_drvdata (component);struct ak4641_platform_data *pdata = component->dev->platform_data;int ret;
@@ -429,7 +430,7 @@ static int ak4641_set_bias_level(struct snd_soc_component *component,snd_soc_component_update_bits (component,AK4641_DAC ,0x20 ,0x20 );break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {if (pdata &&gpio_is_valid (pdata->gpio_power))gpio_set_value (pdata->gpio_power,1 );mdelay (1 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 24/292 ASoC: codecs: alc5623: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/alc5623.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/alc5623.c +1 -1
@@ -888,7 +888,7 @@ static int alc5623_resume(struct snd_soc_component *component)static int alc5623_probe (struct snd_soc_component *component) {struct alc5623_priv *alc5623 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);alc5623_reset (component);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 25/292 ASoC: codecs: arizona-jack: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/arizona-jack.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
sound/soc/codecs/arizona-jack.c +3 -5
@@ -212,17 +212,16 @@ static void arizona_extcon_pulse_micbias(struct arizona_priv *info)struct arizona *arizona = info->arizona;const char *widget =arizona_extcon_get_micbias (info);struct snd_soc_dapm_context *dapm = arizona->dapm; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);int ret; - ret =snd_soc_component_force_enable_pin (component, widget); + ret =snd_soc_dapm_force_enable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to enable %s: %d\n" , widget, ret);snd_soc_dapm_sync (dapm);if (!arizona->pdata.micd_force_micbias) { - ret =snd_soc_component_disable_pin (component, widget); + ret =snd_soc_dapm_disable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to disable %s: %d\n" , widget, ret);
@@ -287,7 +286,6 @@ static void arizona_stop_mic(struct arizona_priv *info)struct arizona *arizona = info->arizona;const char *widget =arizona_extcon_get_micbias (info);struct snd_soc_dapm_context *dapm = arizona->dapm; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);bool change = false;int ret;
@@ -297,7 +295,7 @@ static void arizona_stop_mic(struct arizona_priv *info)if (ret <0 )dev_err (arizona->dev,"Failed to disable micd: %d\n" , ret); - ret =snd_soc_component_disable_pin (component, widget); + ret =snd_soc_dapm_disable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to disable %s: %d\n" , widget, ret);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 25/292 ASoC: codecs: arizona-jack: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/arizona-jack.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
sound/soc/codecs/arizona-jack.c +3 -5
@@ -212,17 +212,16 @@ static void arizona_extcon_pulse_micbias(struct arizona_priv *info)struct arizona *arizona = info->arizona;const char *widget =arizona_extcon_get_micbias (info);struct snd_soc_dapm_context *dapm = arizona->dapm; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);int ret; - ret =snd_soc_component_force_enable_pin (component, widget); + ret =snd_soc_dapm_force_enable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to enable %s: %d\n" , widget, ret);snd_soc_dapm_sync (dapm);if (!arizona->pdata.micd_force_micbias) { - ret =snd_soc_component_disable_pin (component, widget); + ret =snd_soc_dapm_disable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to disable %s: %d\n" , widget, ret);
@@ -287,7 +286,6 @@ static void arizona_stop_mic(struct arizona_priv *info)struct arizona *arizona = info->arizona;const char *widget =arizona_extcon_get_micbias (info);struct snd_soc_dapm_context *dapm = arizona->dapm; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);bool change = false;int ret;
@@ -297,7 +295,7 @@ static void arizona_stop_mic(struct arizona_priv *info)if (ret <0 )dev_err (arizona->dev,"Failed to disable micd: %d\n" , ret); - ret =snd_soc_component_disable_pin (component, widget); + ret =snd_soc_dapm_disable_pin (dapm, widget);if (ret)dev_warn (arizona->dev,"Failed to disable %s: %d\n" , widget, ret);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 26/292 ASoC: codecs: arizona: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/arizona.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
sound/soc/codecs/arizona.c +8 -10
@@ -169,7 +169,7 @@ static const struct snd_soc_dapm_widget arizona_spkr =int arizona_init_spk (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int ret;
@@ -238,7 +238,7 @@ static const struct snd_soc_dapm_route arizona_mono_routes[] = {int arizona_init_mono (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int i;
@@ -255,6 +255,7 @@ EXPORT_SYMBOL_GPL(arizona_init_mono);int arizona_init_gpio (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int i;
@@ -262,24 +263,21 @@ int arizona_init_gpio(struct snd_soc_component *component)switch (arizona->type) {case WM5110 :case WM8280 : -snd_soc_component_disable_pin (component, -"DRC2 Signal Activity" ); +snd_soc_dapm_disable_pin (dapm,"DRC2 Signal Activity" );break ;default :break ; } -snd_soc_component_disable_pin (component,"DRC1 Signal Activity" ); +snd_soc_dapm_disable_pin (dapm,"DRC1 Signal Activity" );for (i =0 ; i <ARRAY_SIZE (arizona->pdata.gpio_defaults); i++) {switch (arizona->pdata.gpio_defaults[i] &ARIZONA_GPN_FN_MASK ) {case ARIZONA_GP_FN_DRC1_SIGNAL_DETECT : -snd_soc_component_enable_pin (component, -"DRC1 Signal Activity" ); +snd_soc_dapm_enable_pin (dapm,"DRC1 Signal Activity" );break ;case ARIZONA_GP_FN_DRC2_SIGNAL_DETECT : -snd_soc_component_enable_pin (component, -"DRC2 Signal Activity" ); +snd_soc_dapm_enable_pin (dapm,"DRC2 Signal Activity" );break ;default :break ;
@@ -1911,7 +1909,7 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona_dai_priv *dai_priv = &priv->dai[dai->id -1 ];struct snd_soc_dapm_route routes[2 ];
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 27/292 ASoC: codecs: audio-iio-aux: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/audio-iio-aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/audio-iio-aux.c +1 -1
@@ -131,7 +131,7 @@ static_assert(ARRAY_SIZE(routes) >= 2, "2 routes are needed");static int audio_iio_aux_add_dapms (struct snd_soc_component *component,struct audio_iio_aux_chan *chan) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;/* Allocated names are not needed afterwards (duplicated in ASoC internals) */
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 28/292 ASoC: codecs: aw88261: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/aw88261.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/aw88261.c +1 -1
@@ -1131,7 +1131,7 @@ static int aw88261_request_firmware_file(struct aw88261 *aw88261)static int aw88261_codec_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct aw88261 *aw88261 =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 29/292 ASoC: codecs: aw88395: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/aw88395/aw88395.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/aw88395/aw88395.c +1 -1
@@ -401,7 +401,7 @@ static const struct snd_soc_dapm_route aw88395_audio_map[] = {static int aw88395_codec_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct aw88395 *aw88395 =snd_soc_component_get_drvdata (component);int ret;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 30/292 ASoC: codecs: cpcap: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cpcap.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-)
sound/soc/codecs/cpcap.c +9 -12
@@ -380,7 +380,7 @@ static SOC_ENUM_SINGLE_DECL(cpcap_emu_r_mux_enum, 0, 8, cpcap_out_mux_texts);static int cpcap_output_mux_get_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int shift = e->shift_l;
@@ -423,10 +423,9 @@ static int cpcap_output_mux_get_enum(struct snd_kcontrol *kcontrol,static int cpcap_output_mux_put_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int muxval = ucontrol->value.enumerated.item[0 ];unsigned int mask =BIT (e->shift_l);
@@ -468,7 +467,7 @@ static int cpcap_output_mux_put_enum(struct snd_kcontrol *kcontrol,static int cpcap_input_right_mux_get_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component);int regval, mask;int err;
@@ -507,10 +506,9 @@ static int cpcap_input_right_mux_get_enum(struct snd_kcontrol *kcontrol,static int cpcap_input_right_mux_put_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int muxval = ucontrol->value.enumerated.item[0 ];int regval =0 , mask;
@@ -552,7 +550,7 @@ static int cpcap_input_right_mux_put_enum(struct snd_kcontrol *kcontrol,static int cpcap_input_left_mux_get_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component);int regval, mask;int err;
@@ -583,10 +581,9 @@ static int cpcap_input_left_mux_get_enum(struct snd_kcontrol *kcontrol,static int cpcap_input_left_mux_put_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct cpcap_audio *cpcap =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int muxval = ucontrol->value.enumerated.item[0 ];int regval =0 , mask;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 31/292 ASoC: codecs: cs35l33: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs35l33.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs35l33.c +2 -2
@@ -547,7 +547,7 @@ static int cs35l33_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) { struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs35l33_private *priv =snd_soc_component_get_drvdata (component);unsigned int reg, bit_pos, i;int slot, slot_num;
@@ -695,7 +695,7 @@ static int cs35l33_set_hg_data(struct snd_soc_component *component, struct cs35l33_pdata *pdata) {struct cs35l33_hg *hg_config = &pdata->hg_config; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs35l33_private *priv =snd_soc_component_get_drvdata (component);if (hg_config->enable_hg_algo) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 32/292 ASoC: codecs: cs35l41: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs35l41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs35l41.c +1 -1
@@ -928,7 +928,7 @@ static const struct snd_soc_dapm_widget cs35l41_ext_bst_widget[] = {static int cs35l41_component_probe (struct snd_soc_component *component) {struct cs35l41_private *cs35l41 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;if (cs35l41->hw_cfg.bst_type ==CS35L41_EXT_BOOST ) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 33/292 ASoC: codecs: cs35l45: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs35l45.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/cs35l45.c +3 -3
@@ -214,7 +214,7 @@ static int cs35l45_amplifier_mode_put(struct snd_kcontrol *kcontrol,struct cs35l45_private *cs35l45 =snd_soc_component_get_drvdata (component);struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +snd_soc_component_to_dapm (component);unsigned int amp_state;int ret;
@@ -233,7 +233,7 @@ static int cs35l45_amplifier_mode_put(struct snd_kcontrol *kcontrol,regmap_clear_bits (cs35l45->regmap,CS35L45_BLOCK_ENABLES ,CS35L45_AMP_EN_MASK ); -snd_soc_component_disable_pin_unlocked (component,"SPK" ); +snd_soc_dapm_disable_pin_unlocked (dapm,"SPK" );snd_soc_dapm_sync_unlocked (dapm);if (ucontrol->value.integer.value[0 ] ==AMP_MODE_SPK ) {
@@ -287,7 +287,7 @@ static int cs35l45_amplifier_mode_put(struct snd_kcontrol *kcontrol,regmap_set_bits (cs35l45->regmap,CS35L45_BLOCK_ENABLES ,CS35L45_AMP_EN_MASK ); -snd_soc_component_enable_pin_unlocked (component,"SPK" ); +snd_soc_dapm_enable_pin_unlocked (dapm,"SPK" );snd_soc_dapm_sync_unlocked (dapm);snd_soc_dapm_mutex_unlock (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 34/292 ASoC: codecs: cs35l56: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs35l56.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
sound/soc/codecs/cs35l56.c +8 -6
@@ -880,10 +880,10 @@ static void cs35l56_dsp_work(struct work_struct *work)static struct snd_soc_dapm_context *cs35l56_power_up_for_cal (struct cs35l56_private *cs35l56) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (cs35l56->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (cs35l56->component);int ret; - ret =snd_soc_component_enable_pin (cs35l56->component,"Calibrate" ); + ret =snd_soc_dapm_enable_pin (dapm,"Calibrate" );if (ret)return ERR_PTR (ret);
@@ -894,9 +894,9 @@ static struct snd_soc_dapm_context *cs35l56_power_up_for_cal(struct cs35l56_privstatic void cs35l56_power_down_after_cal (struct cs35l56_private *cs35l56) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (cs35l56->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (cs35l56->component); -snd_soc_component_disable_pin (cs35l56->component,"Calibrate" ); +snd_soc_dapm_disable_pin (dapm,"Calibrate" );snd_soc_dapm_sync (dapm); }
@@ -1054,6 +1054,7 @@ static int cs35l56_set_fw_suffix(struct cs35l56_private *cs35l56)static int cs35l56_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs35l56_private *cs35l56 =snd_soc_component_get_drvdata (component);struct dentry *debugfs_root = component->debugfs_root;unsigned short vendor, device;
@@ -1121,7 +1122,7 @@ static int cs35l56_component_probe(struct snd_soc_component *component)if (ret)return dev_err_probe (cs35l56->base.dev, ret,"unable to add controls\n" ); - ret =snd_soc_component_disable_pin (component,"Calibrate" ); + ret =snd_soc_dapm_disable_pin (dapm,"Calibrate" );if (ret)return ret;
@@ -1159,6 +1160,7 @@ static int cs35l56_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cs35l56_private *cs35l56 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_STANDBY :
@@ -1166,7 +1168,7 @@ static int cs35l56_set_bias_level(struct snd_soc_component *component,* Wait for patching to complete when transitioning from * BIAS_OFF to BIAS_STANDBY */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )cs35l56_wait_dsp_ready (cs35l56);break ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 35/292 ASoC: codecs: cs4234: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs4234.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs4234.c +3 -2
@@ -87,7 +87,7 @@ static int cs4234_dac14_grp_delay_put(struct snd_kcontrol *kctrl, {struct snd_soc_component *component =snd_kcontrol_chip (kctrl);struct cs4234 *cs4234 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val =0 ;int ret =0 ;
@@ -126,10 +126,11 @@ static int cs4234_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cs4234 *cs4234 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_PREPARE : -switch (snd_soc_component_get_bias_level (component)) { +switch (snd_soc_dapm_get_bias_level (dapm)) {case SND_SOC_BIAS_STANDBY :wait_for_completion (&cs4234->vq_ramp_complete);break ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 36/292 ASoC: codecs: cs42l43-jack: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l43-jack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/cs42l43-jack.c +4 -4
@@ -502,7 +502,7 @@ static void cs42l43_start_load_detect(struct cs42l43_codec *priv)dev_dbg (priv->dev,"Start load detect\n" ); -snd_soc_dapm_mutex_lock (snd_soc_component_get_dapm (priv->component)); +snd_soc_dapm_mutex_lock (snd_soc_component_to_dapm (priv->component)); priv->load_detect_running = true;
@@ -539,7 +539,7 @@ static void cs42l43_start_load_detect(struct cs42l43_codec *priv)CS42L43_HPLOAD_DET_EN_MASK , CS42L43_HPLOAD_DET_EN_MASK); -snd_soc_dapm_mutex_unlock (snd_soc_component_get_dapm (priv->component)); +snd_soc_dapm_mutex_unlock (snd_soc_component_to_dapm (priv->component)); }static void cs42l43_stop_load_detect (struct cs42l43_codec *priv)
@@ -548,7 +548,7 @@ static void cs42l43_stop_load_detect(struct cs42l43_codec *priv)dev_dbg (priv->dev,"Stop load detect\n" ); -snd_soc_dapm_mutex_lock (snd_soc_component_get_dapm (priv->component)); +snd_soc_dapm_mutex_lock (snd_soc_component_to_dapm (priv->component));regmap_update_bits (cs42l43->regmap,CS42L43_LOADDETENA ,CS42L43_HPLOAD_DET_EN_MASK ,0 );
@@ -587,7 +587,7 @@ static void cs42l43_stop_load_detect(struct cs42l43_codec *priv) priv->load_detect_running = false; -snd_soc_dapm_mutex_unlock (snd_soc_component_get_dapm (priv->component)); +snd_soc_dapm_mutex_unlock (snd_soc_component_to_dapm (priv->component)); }static int cs42l43_run_load_detect (struct cs42l43_codec *priv,bool mic)
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 37/292 ASoC: codecs: cs42l43: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l43.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
sound/soc/codecs/cs42l43.c +8 -8
@@ -154,7 +154,7 @@ static void cs42l43_hp_ilimit_clear_work(struct work_struct *work) { struct cs42l43_codec *priv = container_of(work, struct cs42l43_codec, hp_ilimit_clear_work.work); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (priv->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (priv->component);snd_soc_dapm_mutex_lock (dapm);
@@ -170,7 +170,7 @@ static void cs42l43_hp_ilimit_clear_work(struct work_struct *work)static irqreturn_t cs42l43_hp_ilimit (int irq,void *data) {struct cs42l43_codec *priv = data; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (priv->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (priv->component);struct cs42l43 *cs42l43 = priv->core;dev_dbg (priv->dev,"headphone ilimit IRQ\n" );
@@ -451,7 +451,7 @@ static int cs42l43_asp_hw_params(struct snd_pcm_substream *substream,static int cs42l43_asp_set_fmt (struct snd_soc_dai *dai,unsigned int fmt) {struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs42l43_codec *priv =snd_soc_component_get_drvdata (component);struct cs42l43 *cs42l43 = priv->core; int provider = regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2,
@@ -950,7 +950,7 @@ static int cs42l43_dapm_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;snd_soc_dapm_mutex_lock (dapm);
@@ -964,7 +964,7 @@ static int cs42l43_dapm_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;snd_soc_dapm_mutex_lock (dapm);
@@ -978,7 +978,7 @@ static int cs42l43_dapm_get_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;snd_soc_dapm_mutex_lock (dapm);
@@ -992,7 +992,7 @@ static int cs42l43_dapm_put_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;snd_soc_dapm_mutex_lock (dapm);
@@ -1017,7 +1017,7 @@ static int cs42l43_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs42l43_codec *priv =snd_soc_component_get_drvdata (component);snd_soc_dapm_mutex_lock (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 38/292 ASoC: codecs: cs42l51: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l51.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs42l51.c +1 -1
@@ -567,7 +567,7 @@ static int cs42l51_component_probe(struct snd_soc_component *component)struct cs42l51_private *cs42l51; cs42l51 =snd_soc_component_get_drvdata (component); - dapm =snd_soc_component_get_dapm (component); + dapm =snd_soc_component_to_dapm (component);if (cs42l51->mclk_handle)snd_soc_dapm_new_controls (dapm, cs42l51_dapm_mclk_widgets,1 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 39/292 ASoC: codecs: cs42l52: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l52.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l52.c +3 -2
@@ -851,6 +851,7 @@ static int cs42l52_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cs42l52_private *cs42l52 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -860,7 +861,7 @@ static int cs42l52_set_bias_level(struct snd_soc_component *component, CS42L52_PWRCTL1_PDN_CODEC, 0);break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {regcache_cache_only (cs42l52->regmap, false);regcache_sync (cs42l52->regmap); }
@@ -919,7 +920,7 @@ static void cs42l52_beep_work(struct work_struct *work)struct cs42l52_private *cs42l52 = container_of(work, struct cs42l52_private, beep_work);struct snd_soc_component *component = cs42l52->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int i;int val =0 ;int best =0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 40/292 ASoC: codecs: cs42l56: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l56.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l56.c +3 -2
@@ -911,6 +911,7 @@ static int cs42l56_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cs42l56_private *cs42l56 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -923,7 +924,7 @@ static int cs42l56_set_bias_level(struct snd_soc_component *component, CS42L56_PDN_ALL_MASK, 0);break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {regcache_cache_only (cs42l56->regmap, false);regcache_sync (cs42l56->regmap); ret = regulator_bulk_enable(ARRAY_SIZE(cs42l56->supplies),
@@ -996,7 +997,7 @@ static void cs42l56_beep_work(struct work_struct *work)struct cs42l56_private *cs42l56 = container_of(work, struct cs42l56_private, beep_work);struct snd_soc_component *component = cs42l56->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int i;int val =0 ;int best =0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 41/292 ASoC: codecs: cs42l73: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42l73.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/cs42l73.c +2 -1
@@ -1101,6 +1101,7 @@ static int cs42l73_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cs42l73_private *cs42l73 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -1112,7 +1113,7 @@ static int cs42l73_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {regcache_cache_only (cs42l73->regmap, false);regcache_sync (cs42l73->regmap); }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 42/292 ASoC: codecs: cs42xx8: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs42xx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs42xx8.c +1 -1
@@ -465,7 +465,7 @@ EXPORT_SYMBOL_GPL(cs42xx8_regmap_config);static int cs42xx8_component_probe (struct snd_soc_component *component) {struct cs42xx8_priv *cs42xx8 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (cs42xx8->drvdata->num_adcs) {case 3 :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 43/292 ASoC: codecs: cs47l15: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l15.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs47l15.c +3 -2
@@ -1278,6 +1278,7 @@ static const struct snd_soc_dapm_route cs47l15_mono_routes[] = {static int cs47l15_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l15 *cs47l15 =snd_soc_component_get_drvdata (component);struct madera *madera = cs47l15->core.madera;int ret;
@@ -1285,7 +1286,7 @@ static int cs47l15_component_probe(struct snd_soc_component *component)snd_soc_component_init_regmap (component, madera->regmap);mutex_lock (&madera->dapm_ptr_lock); - madera->dapm =snd_soc_component_get_dapm (component); + madera->dapm =snd_soc_component_to_dapm (component);mutex_unlock (&madera->dapm_ptr_lock); ret =madera_init_inputs (component);
@@ -1298,7 +1299,7 @@ static int cs47l15_component_probe(struct snd_soc_component *component)if (ret)return ret; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); ret = snd_soc_add_component_controls(component, madera_adsp_rate_controls,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 44/292 ASoC: codecs: cs47l24: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l24.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs47l24.c +2 -2
@@ -1124,7 +1124,7 @@ static irqreturn_t cs47l24_adsp2_irq(int irq, void *data)static int cs47l24_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l24_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->core.arizona;int ret;
@@ -1153,7 +1153,7 @@ static int cs47l24_component_probe(struct snd_soc_component *component)if (ret) goto err_adsp2_codec_probe; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" );return 0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 45/292 ASoC: codecs: cs47l35: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l35.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs47l35.c +3 -2
@@ -1559,6 +1559,7 @@ static const struct snd_soc_dapm_route cs47l35_mono_routes[] = {static int cs47l35_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l35 *cs47l35 =snd_soc_component_get_drvdata (component);struct madera *madera = cs47l35->core.madera;int i, ret;
@@ -1566,7 +1567,7 @@ static int cs47l35_component_probe(struct snd_soc_component *component)snd_soc_component_init_regmap (component, madera->regmap);mutex_lock (&madera->dapm_ptr_lock); - madera->dapm =snd_soc_component_get_dapm (component); + madera->dapm =snd_soc_component_to_dapm (component);mutex_unlock (&madera->dapm_ptr_lock); ret =madera_init_inputs (component);
@@ -1579,7 +1580,7 @@ static int cs47l35_component_probe(struct snd_soc_component *component)if (ret)return ret; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); ret = snd_soc_add_component_controls(component, madera_adsp_rate_controls,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 46/292 ASoC: codecs: cs47l85: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l85.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs47l85.c +3 -2
@@ -2497,6 +2497,7 @@ static irqreturn_t cs47l85_adsp2_irq(int irq, void *data)static int cs47l85_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l85 *cs47l85 =snd_soc_component_get_drvdata (component);struct madera *madera = cs47l85->core.madera;int i, ret;
@@ -2504,7 +2505,7 @@ static int cs47l85_component_probe(struct snd_soc_component *component)snd_soc_component_init_regmap (component, madera->regmap);mutex_lock (&madera->dapm_ptr_lock); - madera->dapm =snd_soc_component_get_dapm (component); + madera->dapm =snd_soc_component_to_dapm (component);mutex_unlock (&madera->dapm_ptr_lock); ret =madera_init_inputs (component);
@@ -2516,7 +2517,7 @@ static int cs47l85_component_probe(struct snd_soc_component *component)if (ret)return ret; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); ret = snd_soc_add_component_controls(component, madera_adsp_rate_controls,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 47/292 ASoC: codecs: cs47l90: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l90.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs47l90.c +3 -2
@@ -2416,6 +2416,7 @@ static irqreturn_t cs47l90_adsp2_irq(int irq, void *data)static int cs47l90_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l90 *cs47l90 =snd_soc_component_get_drvdata (component);struct madera *madera = cs47l90->core.madera;int ret, i;
@@ -2423,7 +2424,7 @@ static int cs47l90_component_probe(struct snd_soc_component *component)snd_soc_component_init_regmap (component, madera->regmap);mutex_lock (&madera->dapm_ptr_lock); - madera->dapm =snd_soc_component_get_dapm (component); + madera->dapm =snd_soc_component_to_dapm (component);mutex_unlock (&madera->dapm_ptr_lock); ret =madera_init_inputs (component);
@@ -2435,7 +2436,7 @@ static int cs47l90_component_probe(struct snd_soc_component *component)if (ret)return ret; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); ret = snd_soc_add_component_controls(component, madera_adsp_rate_controls,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 48/292 ASoC: codecs: cs47l92: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs47l92.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
sound/soc/codecs/cs47l92.c +5 -6
@@ -52,10 +52,8 @@ static const char * const cs47l92_outdemux_texts[] = {static int cs47l92_put_demux (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l92 *cs47l92 =snd_soc_component_get_drvdata (component);struct madera_priv *priv = &cs47l92->core;struct madera *madera = priv->madera;
@@ -1887,6 +1885,7 @@ static const struct snd_soc_dapm_route cs47l92_mono_routes[] = {static int cs47l92_component_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs47l92 *cs47l92 =snd_soc_component_get_drvdata (component);struct madera *madera = cs47l92->core.madera;int ret;
@@ -1894,7 +1893,7 @@ static int cs47l92_component_probe(struct snd_soc_component *component)snd_soc_component_init_regmap (component, madera->regmap);mutex_lock (&madera->dapm_ptr_lock); - madera->dapm =snd_soc_component_get_dapm (component); + madera->dapm =snd_soc_component_to_dapm (component);mutex_unlock (&madera->dapm_ptr_lock); ret =madera_init_inputs (component);
@@ -1907,7 +1906,7 @@ static int cs47l92_component_probe(struct snd_soc_component *component)if (ret)return ret; -snd_soc_component_disable_pin (component,"HAPTICS" ); +snd_soc_dapm_disable_pin (dapm,"HAPTICS" ); ret = snd_soc_add_component_controls(component, madera_adsp_rate_controls,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 49/292 ASoC: codecs: cs48l32: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs48l32.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
sound/soc/codecs/cs48l32.c +9 -9
@@ -320,8 +320,8 @@ static const struct soc_enum cs48l32_sample_rate[] = {static int cs48l32_inmux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);struct cs48l32_codec *cs48l32_codec =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *) kcontrol->private_value;unsigned int mux, src_val, in_type;
@@ -347,7 +347,7 @@ static int cs48l32_inmux_put(struct snd_kcontrol *kcontrol,if (in_type ==CS48L32_IN_TYPE_SE ) src_val |=1 << CS48L32_INx_SRC_SHIFT; - ret =snd_soc_component_update_bits (dapm->component, + ret =snd_soc_component_update_bits (component, e->reg, CS48L32_INx_SRC_MASK, src_val);
@@ -385,7 +385,7 @@ static const char * const cs48l32_dmode_texts[] = {static int cs48l32_dmode_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);struct soc_enum *e = (struct soc_enum *) kcontrol->private_value;unsigned int mode;
@@ -705,7 +705,7 @@ static int cs48l32_in_rate_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;int ret;
@@ -756,7 +756,7 @@ static int cs48l32_low_power_mode_put(struct snd_kcontrol *kcontrol, {struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;snd_soc_dapm_mutex_lock (dapm);
@@ -962,7 +962,7 @@ static int cs48l32_eq_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs48l32_codec *cs48l32_codec =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *) kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -1026,7 +1026,7 @@ static int cs48l32_eq_coeff_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs48l32_codec *cs48l32_codec =snd_soc_component_get_drvdata (component);struct cs48l32_eq_control *params = (void *)kcontrol->private_value;__be16 *coeffs;
@@ -1083,7 +1083,7 @@ static int cs48l32_dsp_rate_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs48l32_codec *cs48l32_codec =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *) kcontrol->private_value;const unsigned int rate_num = e->mask;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 50/292 ASoC: codecs: cs530x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs530x.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/cs530x.c +6 -6
@@ -131,7 +131,7 @@ static int cs530x_put_volsw_vu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs530x_priv *cs530x =snd_soc_component_get_drvdata (component);struct regmap *regmap = cs530x->regmap;int ret;
@@ -522,7 +522,7 @@ static const struct snd_soc_dapm_route adc_ch5_8_routes[] = {static void cs530x_add_12_adc_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); snd_soc_add_component_controls(component, cs530x_in_1_to_2_controls,
@@ -537,7 +537,7 @@ static void cs530x_add_12_adc_widgets(struct snd_soc_component *component)static void cs530x_add_34_adc_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); snd_soc_add_component_controls(component, cs530x_in_3_to_4_controls,
@@ -669,7 +669,7 @@ static const struct snd_soc_dapm_route dac_ch5_8_routes[] = {static void cs530x_add_12_dac_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); snd_soc_add_component_controls(component, cs530x_out_1_to_2_controls,
@@ -684,7 +684,7 @@ static void cs530x_add_12_dac_widgets(struct snd_soc_component *component)static void cs530x_add_34_dac_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); snd_soc_add_component_controls(component, cs530x_out_3_to_4_controls,
@@ -1007,7 +1007,7 @@ static int cs530x_set_pll(struct snd_soc_component *component, int pll_id,static int cs530x_component_probe (struct snd_soc_component *component) {struct cs530x_priv *cs530x =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int num_widgets; snd_soc_dapm_new_controls(dapm, cs530x_gen_dapm_widgets,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 51/292 ASoC: codecs: cs53l30: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cs53l30.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/codecs/cs53l30.c +5 -4
@@ -649,8 +649,9 @@ static int cs53l30_pcm_hw_params(struct snd_pcm_substream *substream,static int cs53l30_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct cs53l30_private *priv =snd_soc_component_get_drvdata (component); +enum snd_soc_bias_level bias_level =snd_soc_dapm_get_bias_level (dapm);unsigned int reg;int i, inter_max_check, ret;
@@ -658,12 +659,12 @@ static int cs53l30_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_ON :break ;case SND_SOC_BIAS_PREPARE : -if (dapm->bias_level ==SND_SOC_BIAS_STANDBY ) +if (bias_level ==SND_SOC_BIAS_STANDBY )regmap_update_bits (priv->regmap,CS53L30_PWRCTL ,CS53L30_PDN_LP_MASK ,0 );break ;case SND_SOC_BIAS_STANDBY : -if (dapm->bias_level ==SND_SOC_BIAS_OFF ) { +if (bias_level ==SND_SOC_BIAS_OFF ) { ret =clk_prepare_enable (priv->mclk);if (ret) { dev_err(component->dev,
@@ -857,7 +858,7 @@ static struct snd_soc_dai_driver cs53l30_dai = {static int cs53l30_component_probe (struct snd_soc_component *component) {struct cs53l30_private *priv =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (priv->use_sdout2) snd_soc_dapm_add_routes(dapm, cs53l30_dapm_routes_sdout2,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 52/292 ASoC: codecs: cx20442: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cx20442.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cx20442.c +3 -2
@@ -315,11 +315,12 @@ static int cx20442_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct cx20442_priv *cx20442 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int err =0 ;switch (level) {case SND_SOC_BIAS_PREPARE : -if (snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_STANDBY )break ;if (IS_ERR (cx20442->por)) err =PTR_ERR (cx20442->por);
@@ -327,7 +328,7 @@ static int cx20442_set_bias_level(struct snd_soc_component *component, err =regulator_enable (cx20442->por);break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_PREPARE ) +if (snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_PREPARE )break ;if (IS_ERR (cx20442->por)) err =PTR_ERR (cx20442->por);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 53/292 ASoC: codecs: cs2072x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/cx2072x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/cx2072x.c +3 -3
@@ -1341,8 +1341,8 @@ static int cx2072x_set_bias_level(struct snd_soc_component *codec, enum snd_soc_bias_level level) {struct cx2072x_priv *cx2072x =snd_soc_component_get_drvdata (codec); -const enum snd_soc_bias_level old_level = -snd_soc_component_get_bias_level (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec); +const enum snd_soc_bias_level old_level =snd_soc_dapm_get_bias_level (dapm);if (level ==SND_SOC_BIAS_STANDBY && old_level ==SND_SOC_BIAS_OFF )regmap_write (cx2072x->regmap,CX2072X_AFG_POWER_STATE ,0 );
@@ -1363,7 +1363,7 @@ static int cx2072x_set_bias_level(struct snd_soc_component *codec,static void cx2072x_enable_jack_detect (struct snd_soc_component *codec) {struct cx2072x_priv *cx2072x =snd_soc_component_get_drvdata (codec); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);/* No-sticky input type */ regmap_write (cx2072x->regmap,CX2072X_GPIO_STICKY_MASK ,0x1f );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 54/292 ASoC: codecs: da7213: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da7213.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/da7213.c +3 -2
@@ -1816,6 +1816,7 @@ static int da7213_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct da7213_priv *da7213 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1823,7 +1824,7 @@ static int da7213_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_PREPARE :/* Enable MCLK for transition to ON state */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {if (da7213->mclk) { ret =clk_prepare_enable (da7213->mclk);if (ret) {
@@ -1837,7 +1838,7 @@ static int da7213_set_bias_level(struct snd_soc_component *component, }break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* Enable VMID reference & master bias */ snd_soc_component_update_bits(component, DA7213_REFERENCES, DA7213_VMID_EN | DA7213_BIAS_EN,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 55/292 ASoC: codecs: da7218: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da7218.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/da7218.c +3 -2
@@ -2562,6 +2562,7 @@ static int da7218_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct da7218_priv *da7218 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -2569,7 +2570,7 @@ static int da7218_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_PREPARE :/* Enable MCLK for transition to ON state */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {if (da7218->mclk) { ret =clk_prepare_enable (da7218->mclk);if (ret) {
@@ -2581,7 +2582,7 @@ static int da7218_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* Master bias */ snd_soc_component_update_bits(component, DA7218_REFERENCES, DA7218_BIAS_EN_MASK,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 56/292 ASoC: codecs: da7219-aad: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da7219-aad.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/da7219-aad.c +5 -5
@@ -53,7 +53,7 @@ static void da7219_aad_btn_det_work(struct work_struct *work)struct da7219_aad_priv *da7219_aad = container_of(work, struct da7219_aad_priv, btn_det_work);struct snd_soc_component *component = da7219_aad->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component);u8 statusa, micbias_ctrl;bool micbias_up = false;
@@ -109,7 +109,7 @@ static void da7219_aad_hptest_work(struct work_struct *work)struct da7219_aad_priv *da7219_aad = container_of(work, struct da7219_aad_priv, hptest_work);struct snd_soc_component *component = da7219_aad->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component);__le16 tonegen_freq_hptest;
@@ -351,7 +351,7 @@ static irqreturn_t da7219_aad_irq_thread(int irq, void *data) {struct da7219_aad_priv *da7219_aad = data;struct snd_soc_component *component = da7219_aad->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component);u8 events[DA7219_AAD_IRQ_REG_MAX ];u8 statusa;
@@ -928,7 +928,7 @@ void da7219_aad_suspend(struct snd_soc_component *component) {struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component);struct da7219_aad_priv *da7219_aad = da7219->aad; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);u8 micbias_ctrl;disable_irq (da7219_aad->irq);
@@ -962,7 +962,7 @@ void da7219_aad_resume(struct snd_soc_component *component) {struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component);struct da7219_aad_priv *da7219_aad = da7219->aad; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (da7219_aad->jack) {/* Re-enable micbias if previously enabled for 4-pole jack */
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 57/292 ASoC: codecs: da7219: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da7219.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
sound/soc/codecs/da7219.c +8 -5
@@ -1807,6 +1807,7 @@ static int da7219_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1814,7 +1815,7 @@ static int da7219_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_PREPARE :/* Enable MCLK for transition to ON state */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {if (da7219->mclk) { ret =clk_prepare_enable (da7219->mclk);if (ret) {
@@ -1827,13 +1828,13 @@ static int da7219_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )/* Master bias */ snd_soc_component_update_bits (component,DA7219_REFERENCES ,DA7219_BIAS_EN_MASK ,DA7219_BIAS_EN_MASK ); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_PREPARE ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_PREPARE ) {/* Remove MCLK */ if (da7219->mclk)clk_disable_unprepare (da7219->mclk);
@@ -2613,12 +2614,13 @@ static void da7219_remove(struct snd_soc_component *component)static int da7219_suspend (struct snd_soc_component *component) {struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);/* Suspend AAD if we're not a wake-up source */ if (!da7219->wakeup_source)da7219_aad_suspend (component); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );return 0 ; }
@@ -2626,8 +2628,9 @@ static int da7219_suspend(struct snd_soc_component *component)static int da7219_resume (struct snd_soc_component *component) {struct da7219_priv *da7219 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );/* Resume AAD if previously suspended */ if (!da7219->wakeup_source)
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 58/292 ASoC: codecs: da732x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da732x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/da732x.c +2 -1
@@ -1408,6 +1408,7 @@ static int da732x_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct da732x_priv *da732x =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -1418,7 +1419,7 @@ static int da732x_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* Init Codec */ snd_soc_component_write (component,DA732X_REG_REF1 ,DA732X_VMID_FASTCHG );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 59/292 ASoC: codecs: da9055: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/da9055.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/codecs/da9055.c +3 -1
@@ -1352,12 +1352,14 @@ static struct snd_soc_dai_driver da9055_dai = {static int da9055_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_ON :case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* Enable VMID reference & master bias */ snd_soc_component_update_bits(component, DA9055_REFERENCES, DA9055_VMID_EN | DA9055_BIAS_EN,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 60/292 ASoC: codecs: es7134: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es7134.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/es7134.c +1 -1
@@ -104,7 +104,7 @@ static int es7134_set_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)static int es7134_component_probe (struct snd_soc_component *c) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (c); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (c);struct es7134_data *priv =snd_soc_component_get_drvdata (c);const struct es7134_chip *chip = priv->chip;int ret;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 61/292 ASoC: codecs: es8311: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es8311.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/es8311.c +2 -1
@@ -760,6 +760,7 @@ static int es8311_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct es8311_priv *es8311 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -767,7 +768,7 @@ static int es8311_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {int ret =clk_prepare_enable (es8311->mclk);if (ret) { dev_err(component->dev,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 62/292 ASoC: codecs: es8316: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es8316.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/es8316.c +2 -2
@@ -590,7 +590,7 @@ static struct snd_soc_dai_driver es8316_dai = {static void es8316_enable_micbias_for_mic_gnd_short_detect (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_force_enable_pin_unlocked (dapm,"Bias" );
@@ -605,7 +605,7 @@ static void es8316_enable_micbias_for_mic_gnd_short_detect(static void es8316_disable_micbias_for_mic_gnd_short_detect (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_disable_pin_unlocked (dapm,"Mic Bias" );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 63/292 ASoC: codecs: es8326: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es8326.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/es8326.c +2 -2
@@ -737,7 +737,7 @@ static struct snd_soc_dai_driver es8326_dai = {static void es8326_enable_micbias (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_force_enable_pin_unlocked (dapm,"MICBIAS1" );
@@ -748,7 +748,7 @@ static void es8326_enable_micbias(struct snd_soc_component *component)static void es8326_disable_micbias (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_disable_pin_unlocked (dapm,"MICBIAS1" );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 64/292 ASoC: codecs: es8328: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es8328.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/codecs/es8328.c +3 -1
@@ -643,6 +643,8 @@ static int es8328_set_dai_fmt(struct snd_soc_dai *codec_dai,static int es8328_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_ON :break ;
@@ -658,7 +660,7 @@ static int es8328_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { snd_soc_component_update_bits(component, ES8328_CONTROL1, ES8328_CONTROL1_VMIDSEL_MASK | ES8328_CONTROL1_ENREF,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 65/292 ASoC: codecs: es8389: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/es8389.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/es8389.c +2 -2
@@ -57,8 +57,8 @@ static const DECLARE_TLV_DB_SCALE(alc_max_level, -3200, 200, 0);static int es8389_dmic_set (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct es8389_private *es8389 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int val;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 66/292 ASoC: codecs: hda: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/hda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/hda.c +1 -1
@@ -96,7 +96,7 @@ static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_compoif (ret <0 )return ret; - dapm =snd_soc_component_get_dapm (component); + dapm =snd_soc_component_to_dapm (component);list_for_each_entry (pcm, &codec->pcm_list_head, list) {struct snd_soc_dai *dai;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 67/292 ASoC: codecs: hdac_hda: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/hdac_hda.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/codecs/hdac_hda.c +1 -3
@@ -405,8 +405,6 @@ static int hdac_hda_codec_probe(struct snd_soc_component *component) {struct hdac_hda_priv *hda_pvt =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component);struct hdac_device *hdev = &hda_pvt->codec->core;struct hda_codec *hcodec = hda_pvt->codec;struct hda_codec_driver *driver =hda_codec_to_driver (hcodec);
@@ -470,7 +468,7 @@ static int hdac_hda_codec_probe(struct snd_soc_component *component)*/ pm_runtime_get_noresume (&hdev->dev); - hcodec->bus->card = dapm->card->snd_card; + hcodec->bus->card = component->card->snd_card; ret =snd_hda_codec_set_name (hcodec, hcodec->preset->name);if (ret <0 ) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 68/292 ASoC: codecs: hdac_hdmi: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/hdac_hdmi.c | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-)
sound/soc/codecs/hdac_hdmi.c +20 -15
@@ -769,7 +769,8 @@ static int hdac_hdmi_pin_output_widget_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kc, int event) {struct hdac_hdmi_port *port = w->priv; -struct hdac_device *hdev =dev_to_hdac_dev (w->dapm->dev); +struct device *dev =snd_soc_dapm_to_dev (w->dapm); +struct hdac_device *hdev =dev_to_hdac_dev (dev);struct hdac_hdmi_pcm *pcm; dev_dbg(&hdev->dev, "%s: widget: %s event: %x\n",
@@ -814,7 +815,8 @@ static int hdac_hdmi_cvt_output_widget_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kc, int event) {struct hdac_hdmi_cvt *cvt = w->priv; -struct hdac_device *hdev =dev_to_hdac_dev (w->dapm->dev); +struct device *dev =snd_soc_dapm_to_dev (w->dapm); +struct hdac_device *hdev =dev_to_hdac_dev (dev);struct hdac_hdmi_priv *hdmi =hdev_to_hdmi_priv (hdev);struct hdac_hdmi_pcm *pcm;
@@ -869,7 +871,8 @@ static int hdac_hdmi_pin_mux_widget_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kc, int event) {struct hdac_hdmi_port *port = w->priv; -struct hdac_device *hdev =dev_to_hdac_dev (w->dapm->dev); +struct device *dev =snd_soc_dapm_to_dev (w->dapm); +struct hdac_device *hdev =dev_to_hdac_dev (dev);int mux_idx; dev_dbg(&hdev->dev, "%s: widget: %s event: %x\n",
@@ -878,7 +881,7 @@ static int hdac_hdmi_pin_mux_widget_event(struct snd_soc_dapm_widget *w,if (!kc) kc = w->kcontrols[0 ]; - mux_idx =dapm_kcontrol_get_value (kc); + mux_idx =snd_soc_dapm_kcontrol_get_value (kc);/* set the device if pin is mst_capable */ if (hdac_hdmi_port_select_set (hdev, port) <0 )
@@ -901,10 +904,11 @@ static int hdac_hdmi_set_pin_port_mux(struct snd_kcontrol *kcontrol,int ret;struct hdac_hdmi_port *p, *p_next;struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; -struct snd_soc_dapm_widget *w =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *w =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_dapm_context *dapm = w->dapm; +struct device *dev =snd_soc_dapm_to_dev (dapm);struct hdac_hdmi_port *port = w->priv; -struct hdac_device *hdev =dev_to_hdac_dev (dapm->dev); +struct hdac_device *hdev =dev_to_hdac_dev (dev);struct hdac_hdmi_priv *hdmi =hdev_to_hdmi_priv (hdev);struct hdac_hdmi_pcm *pcm;const char *cvt_name = e->texts[ucontrol->value.enumerated.item[0 ]];
@@ -1070,9 +1074,11 @@ static void hdac_hdmi_add_pinmux_cvt_route(struct hdac_device *hdev,*/ static int create_fill_widget_route_map (struct snd_soc_dapm_context *dapm) { +struct device *dev =snd_soc_dapm_to_dev (dapm); +struct snd_soc_card *card =snd_soc_dapm_to_card (dapm);struct snd_soc_dapm_widget *widgets;struct snd_soc_dapm_route *route; -struct hdac_device *hdev =dev_to_hdac_dev (dapm->dev); +struct hdac_device *hdev =dev_to_hdac_dev (dev);struct hdac_hdmi_priv *hdmi =hdev_to_hdmi_priv (hdev);struct snd_soc_dai_driver *dai_drv = hdmi->dai_drv;char widget_name[NAME_SIZE ];
@@ -1083,7 +1089,7 @@ static int create_fill_widget_route_map(struct snd_soc_dapm_context *dapm)if (list_empty (&hdmi->cvt_list) ||list_empty (&hdmi->pin_list))return -EINVAL ; - widgets =devm_kzalloc (dapm->dev, (sizeof (*widgets) * + widgets =devm_kzalloc (dev, (sizeof (*widgets) * ((2 * hdmi->num_ports) + hdmi->num_cvt)),GFP_KERNEL );
@@ -1093,7 +1099,7 @@ static int create_fill_widget_route_map(struct snd_soc_dapm_context *dapm)/* DAPM widgets to represent each converter widget */ list_for_each_entry (cvt, &hdmi->cvt_list, head) {sprintf (widget_name,"Converter %d" , cvt->nid); - ret = hdac_hdmi_fill_widget_info(dapm->dev, &widgets[i], + ret = hdac_hdmi_fill_widget_info(dev, &widgets[i], snd_soc_dapm_aif_in, cvt, widget_name, dai_drv[i].playback.stream_name, NULL, 0, hdac_hdmi_cvt_output_widget_event,
@@ -1107,7 +1113,7 @@ static int create_fill_widget_route_map(struct snd_soc_dapm_context *dapm)for (j =0 ; j < pin->num_ports; j++) {sprintf (widget_name,"hif%d-%d Output" , pin->nid, pin->ports[j].id); - ret = hdac_hdmi_fill_widget_info(dapm->dev, &widgets[i], + ret = hdac_hdmi_fill_widget_info(dev, &widgets[i], snd_soc_dapm_output, &pin->ports[j], widget_name, NULL, NULL, 0, hdac_hdmi_pin_output_widget_event,
@@ -1140,7 +1146,7 @@ static int create_fill_widget_route_map(struct snd_soc_dapm_context *dapm) } } - route =devm_kzalloc (dapm->dev, (sizeof (*route) * num_routes), + route =devm_kzalloc (dev, (sizeof (*route) * num_routes),GFP_KERNEL );if (!route)return -ENOMEM ;
@@ -1166,7 +1172,7 @@ static int create_fill_widget_route_map(struct snd_soc_dapm_context *dapm) ((2 * hdmi->num_ports) + hdmi->num_cvt));snd_soc_dapm_add_routes (dapm, route, num_routes); -snd_soc_dapm_new_widgets (dapm->card); +snd_soc_dapm_new_widgets (card);return 0 ;
@@ -1666,8 +1672,7 @@ static int hdmi_codec_probe(struct snd_soc_component *component) {struct hdac_hdmi_priv *hdmi =snd_soc_component_get_drvdata (component);struct hdac_device *hdev = hdmi->hdev; -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct hdac_ext_link *hlink;int ret;
@@ -1698,7 +1703,7 @@ static int hdmi_codec_probe(struct snd_soc_component *component)hdac_hdmi_present_sense_all_pins (hdev, hdmi, true);/* Imp: Store the card pointer in hda_codec */ - hdmi->card = dapm->card->snd_card; + hdmi->card = component->card->snd_card;/* * Setup a device_link between card device and HDMI codec device.
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 69/292 ASoC: codecs: hdmi-codec: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/hdmi-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/hdmi-codec.c +1 -1
@@ -908,7 +908,7 @@ static int hdmi_dai_probe(struct snd_soc_dai *dai) };int ret, i; - dapm =snd_soc_component_get_dapm (dai->component); + dapm =snd_soc_component_to_dapm (dai->component);/* One of the directions might be omitted for unidirectional DAIs */ for (i =0 ; i <ARRAY_SIZE (route); i++) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 70/292 ASoC: codecs: jz4740: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/jz4740.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/jz4740.c +2 -1
@@ -231,6 +231,7 @@ static void jz4740_codec_wakeup(struct regmap *regmap)static int jz4740_codec_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct jz4740_codec *jz4740_codec =snd_soc_component_get_drvdata (component);struct regmap *regmap = jz4740_codec->regmap;unsigned int mask;
@@ -247,7 +248,7 @@ static int jz4740_codec_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY :/* The only way to clear the suspend flag is to reset the codec */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )jz4740_codec_wakeup (regmap); mask = JZ4740_CODEC_1_VREF_DISABLE |
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 71/292 ASoC: codecs: jz4760: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/jz4760.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/codecs/jz4760.c +4 -3
@@ -197,7 +197,7 @@ static int jz4760_codec_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {struct snd_soc_component *codec = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);int ret =0 ;/*
@@ -214,7 +214,7 @@ static void jz4760_codec_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {struct snd_soc_component *codec = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);if (substream->stream ==SNDRV_PCM_STREAM_PLAYBACK )snd_soc_dapm_disable_pin (dapm,"SYSCLK" );
@@ -225,6 +225,7 @@ static int jz4760_codec_pcm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) { struct snd_soc_component *codec = dai->component; +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);int ret =0 ;switch (cmd) {
@@ -232,7 +233,7 @@ static int jz4760_codec_pcm_trigger(struct snd_pcm_substream *substream,case SNDRV_PCM_TRIGGER_RESUME :case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (substream->stream !=SNDRV_PCM_STREAM_PLAYBACK ) -snd_soc_component_force_bias_level (codec,SND_SOC_BIAS_ON ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_ON );break ;case SNDRV_PCM_TRIGGER_STOP :case SNDRV_PCM_TRIGGER_SUSPEND :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 72/292 ASoC: codecs: jz4770: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/jz4770.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/jz4770.c +4 -4
@@ -217,7 +217,7 @@ static int jz4770_codec_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {struct snd_soc_component *codec = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);/* * SYSCLK output from the codec to the AIC is required to keep the
@@ -234,7 +234,7 @@ static void jz4770_codec_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {struct snd_soc_component *codec = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);if (substream->stream ==SNDRV_PCM_STREAM_PLAYBACK )snd_soc_dapm_disable_pin (dapm,"SYSCLK" );
@@ -245,6 +245,7 @@ static int jz4770_codec_pcm_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) { struct snd_soc_component *codec = dai->component; +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (codec);int ret =0 ;switch (cmd) {
@@ -252,8 +253,7 @@ static int jz4770_codec_pcm_trigger(struct snd_pcm_substream *substream,case SNDRV_PCM_TRIGGER_RESUME :case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :if (substream->stream !=SNDRV_PCM_STREAM_PLAYBACK ) -snd_soc_component_force_bias_level (codec, -SND_SOC_BIAS_ON ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_ON );break ;case SNDRV_PCM_TRIGGER_STOP :case SNDRV_PCM_TRIGGER_SUSPEND :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 73/292 ASoC: codecs: lm49453: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/lm49453.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/lm49453.c +2 -1
@@ -1255,6 +1255,7 @@ static int lm49453_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct lm49453_priv *lm49453 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -1262,7 +1263,7 @@ static int lm49453_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )regcache_sync (lm49453->regmap); snd_soc_component_update_bits(component, LM49453_P0_PMC_SETUP_REG,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 74/292 ASoC: codecs: lpass-rx-macro: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/lpass-rx-macro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/lpass-rx-macro.c +4 -4
@@ -1682,7 +1682,7 @@ static const struct regmap_config rx_regmap_config = {static int rx_macro_int_dem_inp_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct rx_macro *rx =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
@@ -2458,7 +2458,7 @@ static int rx_macro_set_compander(struct snd_kcontrol *kcontrol,static int rx_macro_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct rx_macro *rx =snd_soc_component_get_drvdata (component);
@@ -2470,7 +2470,7 @@ static int rx_macro_mux_get(struct snd_kcontrol *kcontrol,static int rx_macro_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct snd_soc_dapm_update *update =NULL ;
@@ -3609,7 +3609,7 @@ static const struct snd_soc_dapm_route rx_audio_map[] = {static int rx_macro_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rx_macro *rx =snd_soc_component_get_drvdata (component);const struct snd_soc_dapm_widget *widgets;const struct snd_kcontrol_new *controls;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 75/292 ASoC: codecs: lpass-tx-macro: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/lpass-tx-macro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/lpass-tx-macro.c +4 -4
@@ -800,7 +800,7 @@ static void tx_macro_update_smic_sel_v9_2(struct snd_soc_component *component,static int tx_macro_put_dec_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct tx_macro *tx =snd_soc_component_get_drvdata (component);
@@ -859,7 +859,7 @@ static int tx_macro_put_dec_enum(struct snd_kcontrol *kcontrol,static int tx_macro_tx_mixer_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;u32 dai_id = widget->shift;
@@ -877,7 +877,7 @@ static int tx_macro_tx_mixer_get(struct snd_kcontrol *kcontrol,static int tx_macro_tx_mixer_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct snd_soc_dapm_update *update =NULL ;struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;
@@ -2081,7 +2081,7 @@ static const struct snd_kcontrol_new tx_macro_snd_controls[] = {static int tx_macro_component_extend (struct snd_soc_component *comp) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (comp); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (comp);struct tx_macro *tx =snd_soc_component_get_drvdata (comp);int ret;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 76/292 ASoC: codecs: lpass-va-macro: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/lpass-va-macro.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/lpass-va-macro.c +3 -6
@@ -524,8 +524,7 @@ static int va_macro_mclk_event(struct snd_soc_dapm_widget *w,static int va_macro_put_dec_enum (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget = -snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
@@ -564,8 +563,7 @@ static int va_macro_put_dec_enum(struct snd_kcontrol *kcontrol,static int va_macro_tx_mixer_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget = -snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm); struct soc_mixer_control *mc =
@@ -585,8 +583,7 @@ static int va_macro_tx_mixer_get(struct snd_kcontrol *kcontrol,static int va_macro_tx_mixer_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget = -snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct snd_soc_dapm_update *update =NULL ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 77/292 ASoC: codecs: lpass-wsa-macro: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/lpass-wsa-macro.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
sound/soc/codecs/lpass-wsa-macro.c +5 -7
@@ -2186,8 +2186,7 @@ static int wsa_macro_ear_spkr_pa_gain_put(struct snd_kcontrol *kcontrol,static int wsa_macro_rx_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget = -snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct wsa_macro *wsa =snd_soc_component_get_drvdata (component);
@@ -2200,8 +2199,7 @@ static int wsa_macro_rx_mux_get(struct snd_kcontrol *kcontrol,static int wsa_macro_rx_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget = -snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
@@ -2331,7 +2329,7 @@ static const struct snd_kcontrol_new rx_mux[WSA_MACRO_RX_MAX] = {static int wsa_macro_vi_feed_mixer_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_mixer_control *mixer = (struct soc_mixer_control *)kcontrol->private_value;struct wsa_macro *wsa =snd_soc_component_get_drvdata (component);
@@ -2349,7 +2347,7 @@ static int wsa_macro_vi_feed_mixer_get(struct snd_kcontrol *kcontrol,static int wsa_macro_vi_feed_mixer_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_widget (kcontrol); +struct snd_soc_dapm_widget *widget =snd_soc_dapm_kcontrol_to_widget (kcontrol);struct snd_soc_component *component =snd_soc_dapm_to_component (widget->dapm);struct soc_mixer_control *mixer = (struct soc_mixer_control *)kcontrol->private_value;struct wsa_macro *wsa =snd_soc_component_get_drvdata (component);
@@ -2665,7 +2663,7 @@ static int wsa_swrm_clock(struct wsa_macro *wsa, bool enable)static int wsa_macro_component_probe (struct snd_soc_component *comp) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (comp); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (comp);struct wsa_macro *wsa =snd_soc_component_get_drvdata (comp);const struct snd_soc_dapm_widget *widgets;unsigned int num_widgets;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 78/292 ASoC: codecs: madera: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/madera.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-)
sound/soc/codecs/madera.c +9 -18
@@ -541,10 +541,8 @@ EXPORT_SYMBOL_GPL(madera_domain_clk_ev);int madera_out1_demux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct madera_priv *priv =snd_soc_component_get_drvdata (component);struct madera *madera = priv->madera;struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
@@ -632,8 +630,7 @@ EXPORT_SYMBOL_GPL(madera_out1_demux_put);int madera_out1_demux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);unsigned int val; val =snd_soc_component_read (component,MADERA_OUTPUT_ENABLES_1 );
@@ -648,10 +645,8 @@ EXPORT_SYMBOL_GPL(madera_out1_demux_get);static int madera_inmux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct madera_priv *priv =snd_soc_component_get_drvdata (component);struct madera *madera = priv->madera;struct regmap *regmap = madera->regmap;
@@ -1211,8 +1206,7 @@ int madera_init_outputs(struct snd_soc_component *component,const struct snd_soc_dapm_route *routes, int n_mono_routes, int n_real) { - struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); + struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);struct madera_priv *priv =snd_soc_component_get_drvdata (component);struct madera *madera = priv->madera;const struct madera_codec_pdata *pdata = &madera->pdata.codec;
@@ -2161,8 +2155,7 @@ int madera_dfc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int reg = e->reg;unsigned int val;
@@ -2193,8 +2186,7 @@ int madera_lp_mode_put(struct snd_kcontrol *kcontrol,struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val, mask;int ret;
@@ -3236,8 +3228,7 @@ static int madera_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct madera_priv *priv =snd_soc_component_get_drvdata (component);struct madera_dai_priv *dai_priv = &priv->dai[dai->id -1 ];struct snd_soc_dapm_route routes[2 ];
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 79/292 ASoC: codecs: max98088: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98088.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/max98088.c +3 -3
@@ -1296,6 +1296,7 @@ static int max98088_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct max98088_priv *max98088 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1311,8 +1312,7 @@ static int max98088_set_bias_level(struct snd_soc_component *component,* enable it. */ if (!IS_ERR (max98088->mclk)) { -if (snd_soc_component_get_bias_level (component) == -SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (max98088->mclk); }else { ret =clk_prepare_enable (max98088->mclk);
@@ -1323,7 +1323,7 @@ static int max98088_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )regcache_sync (max98088->regmap); snd_soc_component_update_bits(component, M98088_REG_4C_PWR_EN_IN,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 80/292 ASoC: codecs: max98090: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98090.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/codecs/max98090.c +4 -3
@@ -1469,7 +1469,7 @@ static const struct snd_soc_dapm_route max98091_dapm_routes[] = {static int max98090_add_widgets (struct snd_soc_component *component) {struct max98090_priv *max98090 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_add_component_controls (component, max98090_snd_controls,ARRAY_SIZE (max98090_snd_controls));
@@ -1751,6 +1751,7 @@ static int max98090_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct max98090_priv *max98090 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1768,7 +1769,7 @@ static int max98090_set_bias_level(struct snd_soc_component *component,if (IS_ERR (max98090->mclk))break ; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (max98090->mclk); }else { ret =clk_prepare_enable (max98090->mclk);
@@ -1778,7 +1779,7 @@ static int max98090_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =regcache_sync (max98090->regmap);if (ret !=0 ) { dev_err(component->dev,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 81/292 ASoC: codecs: max98095: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98095.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
sound/soc/codecs/max98095.c +7 -4
@@ -1359,6 +1359,7 @@ static int max98095_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct max98095_priv *max98095 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1376,7 +1377,7 @@ static int max98095_set_bias_level(struct snd_soc_component *component,if (IS_ERR (max98095->mclk))break ; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (max98095->mclk); }else { ret =clk_prepare_enable (max98095->mclk);
@@ -1386,7 +1387,7 @@ static int max98095_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =regcache_sync (max98095->regmap);if (ret !=0 ) {
@@ -1917,11 +1918,12 @@ EXPORT_SYMBOL_GPL(max98095_jack_detect);static int max98095_suspend (struct snd_soc_component *component) {struct max98095_priv *max98095 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (max98095->headphone_jack || max98095->mic_jack)max98095_jack_detect_disable (component); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );return 0 ; }
@@ -1930,8 +1932,9 @@ static int max98095_resume(struct snd_soc_component *component) {struct max98095_priv *max98095 =snd_soc_component_get_drvdata (component);struct i2c_client *client =to_i2c_client (component->dev); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );if (max98095->headphone_jack || max98095->mic_jack) {max98095_jack_detect_enable (component);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 82/292 ASoC: codecs: max98373: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98373.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/max98373.c +2 -1
@@ -174,12 +174,13 @@ static int max98373_feedback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct max98373_priv *max98373 =snd_soc_component_get_drvdata (component);int i; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* * Register values will be cached before suspend. The cached value * will be a valid value and userspace will happy with that.
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 83/292 ASoC: codecs: max98390: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/max98390.c +1 -1
@@ -628,7 +628,7 @@ static int max98390_dsm_calib_put(struct snd_kcontrol *kcontrol, {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol);struct max98390_priv *max98390 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int rdc, rdc_cal_result, rdc_integer, rdc_factor, temp, val;snd_soc_dapm_mutex_lock (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 84/292 ASoC: codecs: max98396: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max98396.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
sound/soc/codecs/max98396.c +5 -6
@@ -953,8 +953,7 @@ static const DECLARE_TLV_DB_RANGE(max98397_spk_tlv,static int max98396_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct max98396_priv *max98396 =snd_soc_component_get_drvdata (component);int reg, val;
@@ -973,9 +972,8 @@ static int max98396_mux_get(struct snd_kcontrol *kcontrol,static int max98396_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct max98396_priv *max98396 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -1107,6 +1105,7 @@ static int max98396_adc_value_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct max98396_priv *max98396 =snd_soc_component_get_drvdata (component);
@@ -1115,7 +1114,7 @@ static int max98396_adc_value_get(struct snd_kcontrol *kcontrol,int reg = mc->reg;/* ADC value is not available if the device is powered down */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) goto exit;if (max98396->device_id ==CODEC_TYPE_MAX98397 ) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 85/292 ASoC: codecs: max9850: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max9850.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/max9850.c +2 -1
@@ -225,6 +225,7 @@ static int max9850_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct max9850_priv *max9850 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -233,7 +234,7 @@ static int max9850_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =regcache_sync (max9850->regmap);if (ret) { dev_err(component->dev,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 86/292 ASoC: codecs: max9867: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/max9867.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
sound/soc/codecs/max9867.c +8 -3
@@ -556,14 +556,18 @@ static struct snd_soc_dai_driver max9867_dai[] = {#ifdef CONFIG_PM static int max9867_suspend (struct snd_soc_component *component) { -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); + +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );return 0 ; }static int max9867_resume (struct snd_soc_component *component) { -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); + +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );return 0 ; }
@@ -577,6 +581,7 @@ static int max9867_set_bias_level(struct snd_soc_component *component, {int err;struct max9867_priv *max9867 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -585,7 +590,7 @@ static int max9867_set_bias_level(struct snd_soc_component *component,return err;break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { err =regcache_sync (max9867->regmap);if (err)return err;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 87/292 ASoC: codecs: ml26124: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ml26124.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/ml26124.c +2 -1
@@ -459,6 +459,7 @@ static int ml26124_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct ml26124_priv *priv =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -473,7 +474,7 @@ static int ml26124_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY :/* VMID ON */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {snd_soc_component_update_bits (component,ML26124_PW_REF_PW_MNG ,ML26124_VMID ,ML26124_VMID );msleep (500 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 88/292 ASoC: codecs: mt6357: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/mt6357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/mt6357.c +1 -1
@@ -597,7 +597,7 @@ static int mt_mic_type_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6357_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mic_type =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mic_type =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);switch (event) {case SND_SOC_DAPM_PRE_PMU :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 89/292 ASoC: codecs: mt6358: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/mt6358.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
sound/soc/codecs/mt6358.c +7 -7
@@ -1287,7 +1287,7 @@ static int mt_hp_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);int device =DEVICE_HP ; dev_info(priv->dev, "%s(), event 0x%x, dev_counter[DEV_HP] %d, mux %u\n",
@@ -1349,7 +1349,7 @@ static int mt_rcv_event(struct snd_soc_dapm_widget *w,dev_info (priv->dev,"%s(), event 0x%x, mux %u\n" , __func__, event, -dapm_kcontrol_get_value (w->kcontrols[0 ])); +snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]));switch (event) {case SND_SOC_DAPM_PRE_PMU :
@@ -1828,7 +1828,7 @@ static int mt_mic_type_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event 0x%x, mux %u\n" , __func__, event, mux);
@@ -1874,7 +1874,7 @@ static int mt_adc_l_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event = 0x%x, mux %u\n" , __func__, event, mux);
@@ -1890,7 +1890,7 @@ static int mt_adc_r_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event = 0x%x, mux %u\n" , __func__, event, mux);
@@ -1906,7 +1906,7 @@ static int mt_pga_left_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event = 0x%x, mux %u\n" , __func__, event, mux);
@@ -1922,7 +1922,7 @@ static int mt_pga_right_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6358_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event = 0x%x, mux %u\n" , __func__, event, mux);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 90/292 ASoC: codecs: mt6359: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/mt6359.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/mt6359.c +6 -6
@@ -1043,7 +1043,7 @@ static int mt_hp_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);int device =DEVICE_HP ; dev_dbg(priv->dev, "%s(), event 0x%x, dev_counter[DEV_HP] %d, mux %u\n",
@@ -1075,7 +1075,7 @@ static int mt_rcv_event(struct snd_soc_dapm_widget *w,struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt);dev_dbg (priv->dev,"%s(), event 0x%x, mux %u\n" , - __func__, event,dapm_kcontrol_get_value (w->kcontrols[0 ])); + __func__, event,snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]));switch (event) {case SND_SOC_DAPM_PRE_PMU :
@@ -1157,7 +1157,7 @@ static int mt_lo_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), event 0x%x, mux %u\n" , __func__, event, mux);
@@ -1637,7 +1637,7 @@ static int mt_pga_l_mux_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), mux %d\n" , __func__, mux); priv->mux_select[MUX_PGA_L ] = mux >>RG_AUDPREAMPLINPUTSEL_SFT ;
@@ -1650,7 +1650,7 @@ static int mt_pga_r_mux_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), mux %d\n" , __func__, mux); priv->mux_select[MUX_PGA_R ] = mux >>RG_AUDPREAMPRINPUTSEL_SFT ;
@@ -1663,7 +1663,7 @@ static int mt_pga_3_mux_event(struct snd_soc_dapm_widget *w, {struct snd_soc_component *cmpnt =snd_soc_dapm_to_component (w->dapm);struct mt6359_priv *priv =snd_soc_component_get_drvdata (cmpnt); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);dev_dbg (priv->dev,"%s(), mux %d\n" , __func__, mux); priv->mux_select[MUX_PGA_3 ] = mux >>RG_AUDPREAMP3INPUTSEL_SFT ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 91/292 ASoC: codecs: nau8810: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/nau8810.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/nau8810.c +2 -1
@@ -775,6 +775,7 @@ static int nau8810_pcm_hw_params(struct snd_pcm_substream *substream,static int nau8810_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct nau8810 *nau8810 =snd_soc_component_get_drvdata (component);struct regmap *map = nau8810->regmap;
@@ -790,7 +791,7 @@ static int nau8810_set_bias_level(struct snd_soc_component *component,NAU8810_IOBUF_EN |NAU8810_ABIAS_EN , NAU8810_IOBUF_EN | NAU8810_ABIAS_EN); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {regcache_sync (map);regmap_update_bits (map,NAU8810_REG_POWER1 ,NAU8810_REFIMP_MASK ,NAU8810_REFIMP_3K );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 92/292 ASoC: codecs: nau8821: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/nau8821.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-)
sound/soc/codecs/nau8821.c +11 -17
@@ -1047,7 +1047,6 @@ static void nau8821_eject_jack(struct nau8821 *nau8821) {struct snd_soc_dapm_context *dapm = nau8821->dapm;struct regmap *regmap = nau8821->regmap; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);/* Detach 2kOhm Resistors from MICBIAS to MICGND */ regmap_update_bits(regmap, NAU8821_R74_MIC_BIAS,
@@ -1055,7 +1054,7 @@ static void nau8821_eject_jack(struct nau8821 *nau8821)/* HPL/HPR short to ground */ regmap_update_bits (regmap,NAU8821_R0D_JACK_DET_CTRL ,NAU8821_SPKR_DWN1R |NAU8821_SPKR_DWN1L ,0 ); -snd_soc_component_disable_pin (component,"MICBIAS" ); +snd_soc_dapm_disable_pin (dapm,"MICBIAS" );snd_soc_dapm_sync (dapm);/* Disable & mask both insertion & ejection IRQs */
@@ -1080,7 +1079,7 @@ static void nau8821_eject_jack(struct nau8821 *nau8821) NAU8821_JACK_DET_DB_BYPASS, NAU8821_JACK_DET_DB_BYPASS);/* Close clock for jack type detection at manual mode */ -if (dapm->bias_level <SND_SOC_BIAS_PREPARE ) +if (snd_soc_dapm_get_bias_level (dapm) <SND_SOC_BIAS_PREPARE )nau8821_configure_sysclk (nau8821,NAU8821_CLK_DIS ,0 );/* Recover to normal channel input */
@@ -1106,7 +1105,6 @@ static void nau8821_jdet_work(struct work_struct *work)struct nau8821 *nau8821 = container_of(work, struct nau8821, jdet_work.work);struct snd_soc_dapm_context *dapm = nau8821->dapm; -struct snd_soc_component *component =snd_soc_dapm_to_component (dapm);struct regmap *regmap = nau8821->regmap;int jack_status_reg, mic_detected, event =0 , event_mask =0 ;
@@ -1133,13 +1131,13 @@ static void nau8821_jdet_work(struct work_struct *work)NAU8821_IRQ_KEY_RELEASE_DIS | NAU8821_IRQ_KEY_PRESS_DIS, 0); }else { -snd_soc_component_disable_pin (component,"MICBIAS" ); -snd_soc_dapm_sync (nau8821->dapm); +snd_soc_dapm_disable_pin (dapm,"MICBIAS" ); +snd_soc_dapm_sync (dapm); } }else {dev_dbg (nau8821->dev,"Headphone connected\n" ); event |=SND_JACK_HEADPHONE ; -snd_soc_component_disable_pin (component,"MICBIAS" ); +snd_soc_dapm_disable_pin (dapm,"MICBIAS" );snd_soc_dapm_sync (dapm); }
@@ -1162,7 +1160,7 @@ static void nau8821_setup_inserted_irq(struct nau8821 *nau8821)nau8821_irq_status_clear (regmap,NAU8821_JACK_INSERT_DETECTED );/* Enable internal VCO needed for interruptions */ -if (nau8821->dapm->bias_level <SND_SOC_BIAS_PREPARE ) +if (snd_soc_dapm_get_bias_level (nau8821->dapm) <SND_SOC_BIAS_PREPARE )nau8821_configure_sysclk (nau8821,NAU8821_CLK_INTERNAL ,0 );/* Chip needs one FSCLK cycle in order to generate interruptions,
@@ -1191,7 +1189,6 @@ static irqreturn_t nau8821_interrupt(int irq, void *data) {struct nau8821 *nau8821 = (struct nau8821 *)data;struct regmap *regmap = nau8821->regmap; -struct snd_soc_component *component;int active_irq, event =0 , event_mask =0 ;if (regmap_read (regmap,NAU8821_R10_IRQ_STATUS , &active_irq)) {
@@ -1222,8 +1219,7 @@ static irqreturn_t nau8821_interrupt(int irq, void *data) NAU8821_MICDET_MASK, NAU8821_MICDET_EN);if (nau8821_is_jack_inserted (regmap)) {/* Detect microphone and jack type */ - component =snd_soc_dapm_to_component (nau8821->dapm); -snd_soc_component_force_enable_pin (component,"MICBIAS" ); +snd_soc_dapm_force_enable_pin (nau8821->dapm,"MICBIAS" );snd_soc_dapm_sync (nau8821->dapm);schedule_delayed_work (&nau8821->jdet_work,msecs_to_jiffies (20 ));/* Turn off insertion interruption at manual mode */
@@ -1261,8 +1257,7 @@ static const struct regmap_config nau8821_regmap_config = {static int nau8821_component_probe (struct snd_soc_component *component) {struct nau8821 *nau8821 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); nau8821->dapm = dapm;
@@ -1564,8 +1559,7 @@ static int nau8821_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_STANDBY :/* Setup codec configuration after resume */ -if (snd_soc_component_get_bias_level (component) == -SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (nau8821->dapm) ==SND_SOC_BIAS_OFF )nau8821_resume_setup (nau8821);break ;
@@ -1603,9 +1597,9 @@ static int __maybe_unused nau8821_suspend(struct snd_soc_component *component)if (nau8821->irq)disable_irq (nau8821->irq); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (nau8821->dapm,SND_SOC_BIAS_OFF );/* Power down codec power; don't support button wakeup */ -snd_soc_component_disable_pin (component,"MICBIAS" ); +snd_soc_dapm_disable_pin (nau8821->dapm,"MICBIAS" );snd_soc_dapm_sync (nau8821->dapm);regcache_cache_only (nau8821->regmap, true);regcache_mark_dirty (nau8821->regmap);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 93/292 ASoC: codecs: nau8822: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/nau8822.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
sound/soc/codecs/nau8822.c +8 -6
@@ -957,6 +957,7 @@ static int nau8822_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct nau8822 *nau8822 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -964,7 +965,7 @@ static int nau8822_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :if (nau8822->mclk && -snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_ON ) { +snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_ON ) {int ret =clk_prepare_enable (nau8822->mclk);if (ret) {
@@ -981,7 +982,7 @@ static int nau8822_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_STANDBY :if (nau8822->mclk && -snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_OFF ) +snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_OFF )clk_disable_unprepare (nau8822->mclk); snd_soc_component_update_bits(component,
@@ -989,8 +990,7 @@ static int nau8822_set_bias_level(struct snd_soc_component *component,NAU8822_IOBUF_EN |NAU8822_ABIAS_EN , NAU8822_IOBUF_EN | NAU8822_ABIAS_EN); -if (snd_soc_component_get_bias_level (component) == -SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {snd_soc_component_update_bits (component,NAU8822_REG_POWER_MANAGEMENT_1 ,NAU8822_REFIMP_MASK ,NAU8822_REFIMP_3K );
@@ -1053,8 +1053,9 @@ static struct snd_soc_dai_driver nau8822_dai = {static int nau8822_suspend (struct snd_soc_component *component) {struct nau8822 *nau8822 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );regcache_mark_dirty (nau8822->regmap);
@@ -1064,10 +1065,11 @@ static int nau8822_suspend(struct snd_soc_component *component)static int nau8822_resume (struct snd_soc_component *component) {struct nau8822 *nau8822 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);regcache_sync (nau8822->regmap); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );return 0 ; }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 94/292 ASoC: codecs: nau8824: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/nau8824.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/nau8824.c +5 -5
@@ -876,7 +876,7 @@ static void nau8824_eject_jack(struct nau8824 *nau8824) NAU8824_JD_SLEEP_MODE, NAU8824_JD_SLEEP_MODE);/* Close clock for jack type detection at manual mode */ -if (dapm->bias_level <SND_SOC_BIAS_PREPARE ) +if (snd_soc_dapm_get_bias_level (dapm) <SND_SOC_BIAS_PREPARE )nau8824_config_sysclk (nau8824,NAU8824_CLK_DIS ,0 ); }
@@ -931,7 +931,7 @@ static void nau8824_setup_auto_irq(struct nau8824 *nau8824)regmap_update_bits (regmap,NAU8824_REG_INTERRUPT_SETTING ,NAU8824_IRQ_EJECT_DIS ,0 );/* Enable internal VCO needed for interruptions */ -if (nau8824->dapm->bias_level <SND_SOC_BIAS_PREPARE ) +if (snd_soc_dapm_get_bias_level (nau8824->dapm) <SND_SOC_BIAS_PREPARE )nau8824_config_sysclk (nau8824,NAU8824_CLK_INTERNAL ,0 );regmap_update_bits (regmap,NAU8824_REG_ENA_CTRL ,NAU8824_JD_SLEEP_MODE ,0 );
@@ -1498,7 +1498,7 @@ static int nau8824_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (nau8824->dapm) ==SND_SOC_BIAS_OFF ) {/* Setup codec configuration after resume */ nau8824_resume_setup (nau8824); }
@@ -1519,7 +1519,7 @@ static int nau8824_set_bias_level(struct snd_soc_component *component,static int nau8824_component_probe (struct snd_soc_component *component) {struct nau8824 *nau8824 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); nau8824->dapm = dapm;
@@ -1532,7 +1532,7 @@ static int __maybe_unused nau8824_suspend(struct snd_soc_component *component)if (nau8824->irq) {disable_irq (nau8824->irq); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (nau8824->dapm,SND_SOC_BIAS_OFF ); }regcache_cache_only (nau8824->regmap, true);regcache_mark_dirty (nau8824->regmap);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 95/292 ASoC: codecs: nau8825: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/nau8825.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/nau8825.c +3 -3
@@ -2226,7 +2226,7 @@ static const struct regmap_config nau8825_regmap_config = {static int nau8825_component_probe (struct snd_soc_component *component) {struct nau8825 *nau8825 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); nau8825->dapm = dapm;
@@ -2630,7 +2630,7 @@ static int nau8825_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (nau8825->dapm) ==SND_SOC_BIAS_OFF ) {if (nau8825->mclk_freq) { ret =clk_prepare_enable (nau8825->mclk);if (ret) {
@@ -2673,7 +2673,7 @@ static int __maybe_unused nau8825_suspend(struct snd_soc_component *component)struct nau8825 *nau8825 =snd_soc_component_get_drvdata (component);disable_irq (nau8825->irq); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (nau8825->dapm,SND_SOC_BIAS_OFF );/* Power down codec power; don't suppoet button wakeup */ snd_soc_dapm_disable_pin (nau8825->dapm,"SAR" );snd_soc_dapm_disable_pin (nau8825->dapm,"MICBIAS" );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 96/292 ASoC: codecs: pcm186x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/pcm186x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/codecs/pcm186x.c +4 -2
@@ -546,8 +546,10 @@ static int pcm186x_power_off(struct snd_soc_component *component)static int pcm186x_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +dev_dbg (component->dev,"## %s: %d -> %d\n" , __func__, -snd_soc_component_get_bias_level (component), level); +snd_soc_dapm_get_bias_level (dapm), level);switch (level) {case SND_SOC_BIAS_ON :
@@ -555,7 +557,7 @@ static int pcm186x_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )pcm186x_power_on (component);break ;case SND_SOC_BIAS_OFF :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 97/292 ASoC: codecs: pcm512x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/pcm512x.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
sound/soc/codecs/pcm512x.c +6 -3
@@ -235,9 +235,10 @@ static int pcm512x_overclock_pll_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct pcm512x_priv *pcm512x =snd_soc_component_get_drvdata (component); -switch (snd_soc_component_get_bias_level (component)) { +switch (snd_soc_dapm_get_bias_level (dapm)) {case SND_SOC_BIAS_OFF :case SND_SOC_BIAS_STANDBY :break ;
@@ -263,9 +264,10 @@ static int pcm512x_overclock_dsp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct pcm512x_priv *pcm512x =snd_soc_component_get_drvdata (component); -switch (snd_soc_component_get_bias_level (component)) { +switch (snd_soc_dapm_get_bias_level (dapm)) {case SND_SOC_BIAS_OFF :case SND_SOC_BIAS_STANDBY :break ;
@@ -291,9 +293,10 @@ static int pcm512x_overclock_dac_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct pcm512x_priv *pcm512x =snd_soc_component_get_drvdata (component); -switch (snd_soc_component_get_bias_level (component)) { +switch (snd_soc_dapm_get_bias_level (dapm)) {case SND_SOC_BIAS_OFF :case SND_SOC_BIAS_STANDBY :break ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 98/292 ASoC: codecs: rk3308: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rk3308_codec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/rk3308_codec.c +2 -1
@@ -786,6 +786,7 @@ static int rk3308_codec_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rk3308_codec_priv *rk3308 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -793,7 +794,7 @@ static int rk3308_codec_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_OFF )break ;/* Sequence from TRM Section 8.6.3 "Power Up" */
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 99/292 ASoC: codecs: rt1011: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt1011.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
sound/soc/codecs/rt1011.c +9 -9
@@ -1047,13 +1047,14 @@ static int rt1011_recv_spk_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt1011_priv *rt1011 =snd_soc_component_get_drvdata (component);if (ucontrol->value.integer.value[0 ] == rt1011->recv_spk_mode)return 0 ; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { rt1011->recv_spk_mode = ucontrol->value.integer.value[0 ];if (rt1011->recv_spk_mode) {
@@ -1220,10 +1221,11 @@ static int rt1011_r0_cali_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt1011_priv *rt1011 =snd_soc_component_get_drvdata (component); rt1011->cali_done =0 ; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF && +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF && ucontrol->value.integer.value[0 ])rt1011_calibrate (rt1011,1 );
@@ -1260,6 +1262,7 @@ static int rt1011_r0_load_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt1011_priv *rt1011 =snd_soc_component_get_drvdata (component);struct device *dev;unsigned int r0_integer, r0_factor, format;
@@ -1271,7 +1274,7 @@ static int rt1011_r0_load_mode_put(struct snd_kcontrol *kcontrol,return -EINVAL ; dev =regmap_get_device (rt1011->regmap); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { rt1011->r0_reg = ucontrol->value.integer.value[0 ]; format =2147483648U ;/* 2^24 * 128 */
@@ -1658,8 +1661,7 @@ static int rt1011_hw_params(struct snd_pcm_substream *substream,static int rt1011_set_dai_fmt (struct snd_soc_dai *dai,unsigned int fmt) {struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int reg_val =0 , reg_bclk_inv =0 ;int ret =0 ;
@@ -1839,8 +1841,7 @@ static int rt1011_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) { struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val =0 , tdm_en =0 , rx_slotnum, tx_slotnum;int ret =0 , first_bit, last_bit;
@@ -2212,8 +2213,7 @@ static int rt1011_calibrate(struct rt1011_priv *rt1011, unsigned char cali_flag)unsigned int dc_offset;unsigned int r0_integer, r0_factor, format;struct device *dev =regmap_get_device (rt1011->regmap); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (rt1011->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (rt1011->component);int ret =0 ;snd_soc_dapm_mutex_lock (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 100/292 ASoC: codecs: rt1015: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt1015.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt1015.c +3 -2
@@ -491,9 +491,10 @@ static int rt1015_bypass_boost_get(struct snd_kcontrol *kcontrol,static void rt1015_calibrate (struct rt1015_priv *rt1015) {struct snd_soc_component *component = rt1015->component; +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct regmap *regmap = rt1015->regmap; -snd_soc_dapm_mutex_lock (&component->dapm); +snd_soc_dapm_mutex_lock (dapm);regcache_cache_bypass (regmap, true);regmap_write (regmap,RT1015_CLK_DET ,0x0000 );
@@ -515,7 +516,7 @@ static void rt1015_calibrate(struct rt1015_priv *rt1015)regcache_cache_bypass (regmap, false);regcache_mark_dirty (regmap);regcache_sync (regmap); -snd_soc_dapm_mutex_unlock (&component->dapm); +snd_soc_dapm_mutex_unlock (dapm); } static int rt1015_bypass_boost_put(struct snd_kcontrol *kcontrol,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 101/292 ASoC: codecs: rt274: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt274.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt274.c +3 -2
@@ -925,10 +925,11 @@ static int rt274_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,static int rt274_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY == -snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) {snd_soc_component_write (component,RT274_SET_AUDIO_POWER ,AC_PWRST_D0 ); }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 102/292 ASoC: codecs: rt286: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt286.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/codecs/rt286.c +5 -3
@@ -223,7 +223,7 @@ static int rt286_jack_detect(struct rt286_priv *rt286, bool *hp, bool *mic)if (!rt286->component)return -EINVAL ; - dapm =snd_soc_component_get_dapm (rt286->component); + dapm =snd_soc_component_to_dapm (rt286->component);if (rt286->pdata.cbj_en) {regmap_read (rt286->regmap,RT286_GET_HP_SENSE , &buf);
@@ -314,7 +314,7 @@ static void rt286_jack_detect_work(struct work_struct *work)static int rt286_mic_detect (struct snd_soc_component *component,struct snd_soc_jack *jack,void *data) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt286_priv *rt286 =snd_soc_component_get_drvdata (component); rt286->jack = jack;
@@ -887,9 +887,11 @@ static int rt286_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)static int rt286_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) {snd_soc_component_write (component,RT286_SET_AUDIO_POWER ,AC_PWRST_D0 ); snd_soc_component_update_bits(component,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 103/292 ASoC: codecs: rt298: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt298.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/codecs/rt298.c +5 -4
@@ -227,7 +227,7 @@ static int rt298_jack_detect(struct rt298_priv *rt298, bool *hp, bool *mic)if (!rt298->component)return -EINVAL ; - dapm =snd_soc_component_get_dapm (rt298->component); + dapm =snd_soc_component_to_dapm (rt298->component);if (rt298->pdata.cbj_en) {regmap_read (rt298->regmap,RT298_GET_HP_SENSE , &buf);
@@ -329,7 +329,7 @@ static void rt298_jack_detect_work(struct work_struct *work)static int rt298_mic_detect (struct snd_soc_component *component,struct snd_soc_jack *jack,void *data) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt298_priv *rt298 =snd_soc_component_get_drvdata (component); rt298->jack = jack;
@@ -949,10 +949,11 @@ static int rt298_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)static int rt298_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY == -snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) {snd_soc_component_write (component,RT298_SET_AUDIO_POWER ,AC_PWRST_D0 );snd_soc_component_update_bits (component,0x0d ,0x200 ,0x200 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 104/292 ASoC: codecs: rt5514: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5514.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/codecs/rt5514.c +5 -3
@@ -325,6 +325,7 @@ static int rt5514_dsp_voice_wake_up_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5514_priv *rt5514 =snd_soc_component_get_drvdata (component);const struct firmware *fw =NULL ;u8 buf[8 ];
@@ -332,7 +333,7 @@ static int rt5514_dsp_voice_wake_up_put(struct snd_kcontrol *kcontrol,if (ucontrol->value.integer.value[0 ] == rt5514->dsp_enabled)return 0 ; -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { rt5514->dsp_enabled = ucontrol->value.integer.value[0 ];if (rt5514->dsp_enabled) {
@@ -1050,11 +1051,12 @@ static int rt5514_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5514_priv *rt5514 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {case SND_SOC_BIAS_PREPARE : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (rt5514->mclk); }else { ret =clk_prepare_enable (rt5514->mclk);
@@ -1064,7 +1066,7 @@ static int rt5514_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {/* * If the DSP is enabled in start of recording, the DSP * should be disabled, and sync back to normal recording
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 105/292 ASoC: codecs: rt5516: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5616.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5616.c +3 -2
@@ -1159,6 +1159,7 @@ static int rt5616_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5616_priv *rt5616 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1174,7 +1175,7 @@ static int rt5616_set_bias_level(struct snd_soc_component *component,* away from ON. Disable the clock in that case, otherwise * enable it. */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (rt5616->mclk); }else { ret =clk_prepare_enable (rt5616->mclk);
@@ -1184,7 +1185,7 @@ static int rt5616_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, RT5616_PWR_VREF1 | RT5616_PWR_MB | RT5616_PWR_BG | RT5616_PWR_VREF2,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 106/292 ASoC: codecs: rt5631: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5631.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5631.c +4 -2
@@ -1535,6 +1535,7 @@ static int rt5631_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5631_priv *rt5631 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -1545,7 +1546,7 @@ static int rt5631_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {snd_soc_component_update_bits (component,RT5631_PWR_MANAG_ADD3 ,RT5631_PWR_VREF |RT5631_PWR_MAIN_BIAS ,RT5631_PWR_VREF |RT5631_PWR_MAIN_BIAS );
@@ -1575,6 +1576,7 @@ static int rt5631_set_bias_level(struct snd_soc_component *component,static int rt5631_probe (struct snd_soc_component *component) {struct rt5631_priv *rt5631 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val; val =rt5631_read_index (component,RT5631_ADDA_MIXER_INTL_REG3 );
@@ -1613,7 +1615,7 @@ static int rt5631_probe(struct snd_soc_component *component) RT5631_DMIC_R_CH_LATCH_RISING); } -snd_soc_component_init_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_init_bias_level (dapm,SND_SOC_BIAS_STANDBY );return 0 ; }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 107/292 ASoC: codecs: rt5640: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5640.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
sound/soc/codecs/rt5640.c +10 -9
@@ -1935,6 +1935,7 @@ static int rt5640_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5640_priv *rt5640 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1949,7 +1950,7 @@ static int rt5640_set_bias_level(struct snd_soc_component *component,* away from ON. Disable the clock in that case, otherwise * enable it. */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (rt5640->mclk); }else { ret =clk_prepare_enable (rt5640->mclk);
@@ -1959,7 +1960,7 @@ static int rt5640_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (SND_SOC_BIAS_OFF ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_OFF ==snd_soc_dapm_get_bias_level (dapm)) { snd_soc_component_update_bits(component, RT5640_PWR_ANLG1, RT5640_PWR_VREF1 | RT5640_PWR_MB | RT5640_PWR_BG | RT5640_PWR_VREF2,
@@ -2098,7 +2099,7 @@ EXPORT_SYMBOL_GPL(rt5640_sel_asrc_clk_src);void rt5640_enable_micbias1_for_ovcd (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5640_priv *rt5640 =snd_soc_component_get_drvdata (component);snd_soc_dapm_mutex_lock (dapm);
@@ -2114,7 +2115,7 @@ EXPORT_SYMBOL_GPL(rt5640_enable_micbias1_for_ovcd);void rt5640_disable_micbias1_for_ovcd (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5640_priv *rt5640 =snd_soc_component_get_drvdata (component);snd_soc_dapm_mutex_lock (dapm);
@@ -2586,8 +2587,7 @@ static void rt5640_enable_hda_jack_detect( struct snd_soc_component *component, struct snd_soc_jack *jack) { struct rt5640_priv *rt5640 = snd_soc_component_get_drvdata(component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;/* Select JD1 for Mic */
@@ -2652,7 +2652,7 @@ static int rt5640_set_jack(struct snd_soc_component *component,static int rt5640_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5640_priv *rt5640 =snd_soc_component_get_drvdata (component);u32 dmic1_data_pin =0 ;u32 dmic2_data_pin =0 ;
@@ -2666,7 +2666,7 @@ static int rt5640_probe(struct snd_soc_component *component) rt5640->component = component; -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );snd_soc_component_update_bits (component,RT5640_GCTL1 ,0x0301 ,0x0301 );snd_soc_component_update_bits (component,RT5640_MICBIAS ,0x0030 ,0x0030 );
@@ -2796,6 +2796,7 @@ static void rt5640_remove(struct snd_soc_component *component)static int rt5640_suspend (struct snd_soc_component *component) {struct rt5640_priv *rt5640 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (rt5640->jack) {/* disable jack interrupts during system suspend */
@@ -2804,7 +2805,7 @@ static int rt5640_suspend(struct snd_soc_component *component)cancel_delayed_work_sync (&rt5640->bp_work); } -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );rt5640_reset (component);regcache_cache_only (rt5640->regmap, true);regcache_mark_dirty (rt5640->regmap);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 108/292 ASoC: codecs: rt5645: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5645.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
sound/soc/codecs/rt5645.c +8 -7
@@ -3071,10 +3071,11 @@ static int rt5645_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5645_priv *rt5645 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) { snd_soc_component_update_bits(component, RT5645_PWR_ANLG1, RT5645_PWR_VREF1 | RT5645_PWR_MB | RT5645_PWR_BG | RT5645_PWR_VREF2,
@@ -3099,7 +3100,7 @@ static int rt5645_set_bias_level(struct snd_soc_component *component,snd_soc_component_update_bits (component,RT5645_PWR_ANLG1 ,RT5645_PWR_FV1 |RT5645_PWR_FV2 ,RT5645_PWR_FV1 |RT5645_PWR_FV2 ); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {snd_soc_component_write (component,RT5645_DEPOP_M2 ,0x1140 );msleep (40 );if (rt5645->en_button_func)
@@ -3130,7 +3131,7 @@ static int rt5645_set_bias_level(struct snd_soc_component *component,static void rt5645_enable_push_button_irq (struct snd_soc_component *component,bool enable) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;if (enable) {
@@ -3169,7 +3170,7 @@ static void rt5645_enable_push_button_irq(struct snd_soc_component *component,static int rt5645_jack_detect (struct snd_soc_component *component,int jack_insert) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5645_priv *rt5645 =snd_soc_component_get_drvdata (component);unsigned int val;
@@ -3180,7 +3181,7 @@ static int rt5645_jack_detect(struct snd_soc_component *component, int jack_insesnd_soc_dapm_force_enable_pin (dapm,"LDO2" );snd_soc_dapm_force_enable_pin (dapm,"Mic Det Power" );snd_soc_dapm_sync (dapm); -if (!snd_soc_card_is_instantiated (dapm->card)) { +if (!snd_soc_card_is_instantiated (component->card)) {/* Power up necessary bits for JD if dapm is not ready yet */ regmap_update_bits(rt5645->regmap, RT5645_PWR_ANLG1,
@@ -3449,7 +3450,7 @@ static void rt5645_btn_check_callback(struct timer_list *t)static int rt5645_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5645_priv *rt5645 =snd_soc_component_get_drvdata (component); rt5645->component = component;
@@ -3478,7 +3479,7 @@ static int rt5645_probe(struct snd_soc_component *component)break ; } -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );/* for JD function */ if (rt5645->pdata.jd_mode) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 109/292 ASoC: codecs: rt5651: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5651.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
sound/soc/codecs/rt5651.c +8 -5
@@ -1511,16 +1511,18 @@ static int rt5651_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,static int rt5651_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) {if (snd_soc_component_read (component,RT5651_PLL_MODE_1 ) &0x9200 )snd_soc_component_update_bits (component,RT5651_D_MISC ,0xc00 ,0xc00 ); }break ;case SND_SOC_BIAS_STANDBY : -if (SND_SOC_BIAS_OFF ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_OFF ==snd_soc_dapm_get_bias_level (dapm)) { snd_soc_component_update_bits(component, RT5651_PWR_ANLG1, RT5651_PWR_VREF1 | RT5651_PWR_MB | RT5651_PWR_BG | RT5651_PWR_VREF2,
@@ -1557,7 +1559,7 @@ static int rt5651_set_bias_level(struct snd_soc_component *component,static void rt5651_enable_micbias1_for_ovcd (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_force_enable_pin_unlocked (dapm,"LDO" );
@@ -1570,7 +1572,7 @@ static void rt5651_enable_micbias1_for_ovcd(struct snd_soc_component *component)static void rt5651_disable_micbias1_for_ovcd (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);snd_soc_dapm_disable_pin_unlocked (dapm,"Platform Clock" );
@@ -2058,13 +2060,14 @@ static void rt5651_apply_properties(struct snd_soc_component *component)static int rt5651_probe (struct snd_soc_component *component) {struct rt5651_priv *rt5651 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); rt5651->component = component;snd_soc_component_update_bits (component,RT5651_PWR_ANLG1 ,RT5651_PWR_LDO_DVO_MASK ,RT5651_PWR_LDO_DVO_1_2V ); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );rt5651_apply_properties (component);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 110/292 ASoC: codecs: rt5659: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5659.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
sound/soc/codecs/rt5659.c +5 -6
@@ -1213,7 +1213,7 @@ static int rt5659_hp_vol_put(struct snd_kcontrol *kcontrol,static void rt5659_enable_push_button_irq (struct snd_soc_component *component,bool enable) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);if (enable) {snd_soc_component_write (component,RT5659_4BTN_IL_CMD_1 ,0x000b );
@@ -1257,7 +1257,7 @@ static void rt5659_enable_push_button_irq(struct snd_soc_component *component,static int rt5659_headset_detect (struct snd_soc_component *component,int jack_insert) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int val, i =0 , sleep_time[5 ] = {300 ,150 ,100 ,50 ,30 };int reg_63;
@@ -3611,7 +3611,7 @@ static int rt5659_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)static int rt5659_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5659_priv *rt5659 =snd_soc_component_get_drvdata (component);int ret;
@@ -3631,7 +3631,7 @@ static int rt5659_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (dapm->bias_level ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =clk_prepare_enable (rt5659->mclk);if (ret) { dev_err(component->dev,
@@ -3662,8 +3662,7 @@ static int rt5659_set_bias_level(struct snd_soc_component *component,static int rt5659_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5659_priv *rt5659 =snd_soc_component_get_drvdata (component); rt5659->component = component;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 111/292 ASoC: codecs: rt5660: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5660.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5660.c +3 -2
@@ -1069,6 +1069,7 @@ static int rt5660_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5660_priv *rt5660 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -1079,7 +1080,7 @@ static int rt5660_set_bias_level(struct snd_soc_component *component,snd_soc_component_update_bits (component,RT5660_GEN_CTRL1 ,RT5660_DIG_GATE_CTRL ,RT5660_DIG_GATE_CTRL ); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_ON ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_ON ) {clk_disable_unprepare (rt5660->mclk); }else { ret =clk_prepare_enable (rt5660->mclk);
@@ -1089,7 +1090,7 @@ static int rt5660_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { snd_soc_component_update_bits(component, RT5660_PWR_ANLG1, RT5660_PWR_VREF1 | RT5660_PWR_MB | RT5660_PWR_BG | RT5660_PWR_VREF2,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 112/292 ASoC: codecs: rt5663: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5663.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5663.c +2 -2
@@ -1463,7 +1463,7 @@ static void rt5663_enable_push_button_irq(struct snd_soc_component *component,static int rt5663_v2_jack_detect (struct snd_soc_component *component,int jack_insert) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5663_priv *rt5663 =snd_soc_component_get_drvdata (component);int val, i =0 , sleep_time[5 ] = {300 ,150 ,100 ,50 ,30 };
@@ -3140,7 +3140,7 @@ static int rt5663_set_bias_level(struct snd_soc_component *component,static int rt5663_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5663_priv *rt5663 =snd_soc_component_get_drvdata (component); rt5663->component = component;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 113/292 ASoC: codecs: rt5665: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5665.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5665.c +1 -1
@@ -1067,7 +1067,7 @@ static void rt5665_enable_push_button_irq(struct snd_soc_component *component,static int rt5665_headset_detect (struct snd_soc_component *component,int jack_insert) {struct rt5665_priv *rt5665 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int sar_hs_type, val;if (jack_insert) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 114/292 ASoC: codecs: rt5668: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5668.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/rt5668.c +1 -2
@@ -853,8 +853,7 @@ static int rt5668_headset_detect(struct snd_soc_component *component, int jack_insert) {struct rt5668_priv *rt5668 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val, count;if (jack_insert) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 115/292 ASoC: codecs: rt5670: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5670.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
sound/soc/codecs/rt5670.c +5 -4
@@ -431,7 +431,7 @@ static bool rt5670_readable_register(struct device *dev, unsigned int reg)static int rt5670_headset_detect (struct snd_soc_component *component,int jack_insert) {int val; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5670_priv *rt5670 =snd_soc_component_get_drvdata (component);if (jack_insert) {
@@ -966,7 +966,7 @@ static int rt5670_put_dac1_mix_dac1_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value; -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt5670_priv *rt5670 =snd_soc_component_get_drvdata (component);int ret;
@@ -2670,10 +2670,11 @@ static int rt5670_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5670_priv *rt5670 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_PREPARE : -if (SND_SOC_BIAS_STANDBY ==snd_soc_component_get_bias_level (component)) { +if (SND_SOC_BIAS_STANDBY ==snd_soc_dapm_get_bias_level (dapm)) { snd_soc_component_update_bits(component, RT5670_PWR_ANLG1, RT5670_PWR_VREF1 | RT5670_PWR_MB | RT5670_PWR_BG | RT5670_PWR_VREF2,
@@ -2723,7 +2724,7 @@ static int rt5670_set_bias_level(struct snd_soc_component *component,static int rt5670_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5670_priv *rt5670 =snd_soc_component_get_drvdata (component);switch (snd_soc_component_read (component,RT5670_RESET ) &RT5670_ID_MASK ) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 116/292 ASoC: codecs: rt5677: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5677.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
sound/soc/codecs/rt5677.c +7 -7
@@ -706,8 +706,7 @@ static void rt5677_set_dsp_mode(struct rt5677_priv *rt5677, bool on)static unsigned int rt5677_set_vad_source (struct rt5677_priv *rt5677) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (rt5677->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (rt5677->component);/* Force dapm to sync before we enable the * DSP to prevent write corruption */
@@ -2733,11 +2732,12 @@ static int rt5677_vref_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) {struct snd_soc_component *component =snd_soc_dapm_to_component (w->dapm); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5677_priv *rt5677 =snd_soc_component_get_drvdata (component);switch (event) {case SND_SOC_DAPM_POST_PMU : -if (snd_soc_component_get_bias_level (component) !=SND_SOC_BIAS_ON && +if (snd_soc_dapm_get_bias_level (dapm) !=SND_SOC_BIAS_ON && !rt5677->is_vref_slow) {mdelay (20 ); regmap_update_bits(rt5677->regmap, RT5677_PWR_ANLG1,
@@ -4643,8 +4643,8 @@ static int rt5677_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5677_priv *rt5677 =snd_soc_component_get_drvdata (component); -enum snd_soc_bias_level prev_bias = -snd_soc_component_get_bias_level (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +enum snd_soc_bias_level prev_bias =snd_soc_dapm_get_bias_level (dapm);switch (level) {case SND_SOC_BIAS_ON :
@@ -4880,7 +4880,7 @@ static void rt5677_free_gpio(struct i2c_client *i2c)static int rt5677_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt5677_priv *rt5677 =snd_soc_component_get_drvdata (component);int i;
@@ -4896,7 +4896,7 @@ static int rt5677_probe(struct snd_soc_component *component) ARRAY_SIZE(rt5677_dmic2_clk_1)); } -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_OFF ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_OFF );regmap_update_bits (rt5677->regmap,RT5677_DIG_MISC , ~RT5677_IRQ_DEBOUNCE_SEL_MASK ,0x0020 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 117/292 ASoC: codecs: rt5682: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5682.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/rt5682.c +5 -5
@@ -928,7 +928,7 @@ static void rt5682_enable_push_button_irq(struct snd_soc_component *component,static int rt5682_headset_detect (struct snd_soc_component *component,int jack_insert) {struct rt5682_priv *rt5682 =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm = &component->dapm; +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);unsigned int val, count;if (jack_insert) {
@@ -1115,7 +1115,7 @@ void rt5682_jack_detect_handler(struct work_struct *work) } } - dapm =snd_soc_component_get_dapm (rt5682->component); + dapm =snd_soc_component_to_dapm (rt5682->component);snd_soc_dapm_mutex_lock (dapm);mutex_lock (&rt5682->calibrate_mutex);
@@ -2595,7 +2595,7 @@ static int rt5682_wclk_prepare(struct clk_hw *hw)return -EINVAL ; component = rt5682->component; - dapm =snd_soc_component_get_dapm (component); + dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);
@@ -2633,7 +2633,7 @@ static void rt5682_wclk_unprepare(struct clk_hw *hw)return ; component = rt5682->component; - dapm =snd_soc_component_get_dapm (component); + dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_mutex_lock (dapm);
@@ -2928,9 +2928,9 @@ EXPORT_SYMBOL_GPL(rt5682_register_dai_clks);static int rt5682_probe (struct snd_soc_component *component) {struct rt5682_priv *rt5682 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct sdw_slave *slave;unsigned long time; -struct snd_soc_dapm_context *dapm = &component->dapm; rt5682->component = component;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 118/292 ASoC: codecs: rt5682s: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt5682s.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5682s.c +3 -2
@@ -841,7 +841,7 @@ static void rt5682s_jack_detect_handler(struct work_struct *work)return ; } - dapm =snd_soc_component_get_dapm (rt5682s->component); + dapm =snd_soc_component_to_dapm (rt5682s->component);snd_soc_dapm_mutex_lock (dapm);mutex_lock (&rt5682s->calibrate_mutex);
@@ -2485,6 +2485,7 @@ static int rt5682s_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct rt5682s_priv *rt5682s =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_PREPARE :
@@ -2492,7 +2493,7 @@ static int rt5682s_set_bias_level(struct snd_soc_component *component, RT5682S_PWR_LDO, RT5682S_PWR_LDO);break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )regmap_update_bits (rt5682s->regmap,RT5682S_PWR_DIG_1 ,RT5682S_DIG_GATE_CTRL ,RT5682S_DIG_GATE_CTRL );break ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 119/292 ASoC: codecs: rt700: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt700.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-)
sound/soc/codecs/rt700.c +11 -17
@@ -272,11 +272,10 @@ static void rt700_btn_check_handler(struct work_struct *work)static void rt700_jack_init (struct rt700_priv *rt700) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (rt700->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (rt700->component);/* power on */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt700->regmap,RT700_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -307,7 +306,7 @@ static void rt700_jack_init(struct rt700_priv *rt700) }/* power off */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt700->regmap,RT700_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 ); }
@@ -362,8 +361,7 @@ static int rt700_set_amp_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct rt700_priv *rt700 =snd_soc_component_get_drvdata (component);
@@ -398,7 +396,7 @@ static int rt700_set_amp_gain_put(struct snd_kcontrol *kcontrol, val_ll |= read_ll; } -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt700->regmap,RT700_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -450,7 +448,7 @@ static int rt700_set_amp_gain_put(struct snd_kcontrol *kcontrol,break ; } -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt700->regmap,RT700_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );return 0 ;
@@ -524,8 +522,7 @@ static const struct snd_kcontrol_new rt700_snd_controls[] = {static int rt700_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt700_priv *rt700 =snd_soc_component_get_drvdata (component);unsigned int reg, val =0 , nid;int ret;
@@ -553,10 +550,8 @@ static int rt700_mux_get(struct snd_kcontrol *kcontrol,static int rt700_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt700_priv *rt700 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -839,13 +834,12 @@ static int rt700_probe(struct snd_soc_component *component)static int rt700_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt700_priv *rt700 =snd_soc_component_get_drvdata (component);switch (level) {case SND_SOC_BIAS_PREPARE : -if (dapm->bias_level ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {regmap_write (rt700->regmap,RT700_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 120/292 ASoC: codecs: rt711-sdca: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt711-sdca.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/rt711-sdca.c +3 -6
@@ -900,8 +900,7 @@ static const struct snd_kcontrol_new rt711_sdca_snd_controls[] = {static int rt711_sdca_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt711_sdca_priv *rt711 =snd_soc_component_get_drvdata (component);unsigned int val =0 , mask_sft;
@@ -923,10 +922,8 @@ static int rt711_sdca_mux_get(struct snd_kcontrol *kcontrol,static int rt711_sdca_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt711_sdca_priv *rt711 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 121/292 ASoC: codecs: rt711: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt711.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-)
sound/soc/codecs/rt711.c +11 -17
@@ -360,12 +360,11 @@ static void rt711_btn_check_handler(struct work_struct *work)static void rt711_jack_init (struct rt711_priv *rt711) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (rt711->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (rt711->component);mutex_lock (&rt711->calibrate_mutex);/* power on */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt711->regmap,RT711_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -448,7 +447,7 @@ static void rt711_jack_init(struct rt711_priv *rt711) }/* power off */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt711->regmap,RT711_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );mutex_unlock (&rt711->calibrate_mutex);
@@ -504,8 +503,7 @@ static int rt711_set_amp_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct rt711_priv *rt711 =snd_soc_component_get_drvdata (component);
@@ -543,7 +541,7 @@ static int rt711_set_amp_gain_put(struct snd_kcontrol *kcontrol, val_ll |= read_ll; } -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt711->regmap,RT711_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -597,7 +595,7 @@ static int rt711_set_amp_gain_put(struct snd_kcontrol *kcontrol,break ; } -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt711->regmap,RT711_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );
@@ -682,8 +680,7 @@ static const struct snd_kcontrol_new rt711_snd_controls[] = {static int rt711_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt711_priv *rt711 =snd_soc_component_get_drvdata (component);unsigned int reg, val =0 , nid;int ret;
@@ -712,10 +709,8 @@ static int rt711_mux_get(struct snd_kcontrol *kcontrol,static int rt711_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt711_priv *rt711 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -900,13 +895,12 @@ static const struct snd_soc_dapm_route rt711_audio_map[] = {static int rt711_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt711_priv *rt711 =snd_soc_component_get_drvdata (component);switch (level) {case SND_SOC_BIAS_PREPARE : -if (dapm->bias_level ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {regmap_write (rt711->regmap,RT711_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 122/292 ASoC: codecs: rt712-sdca-dmic: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt712-sdca-dmic.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/rt712-sdca-dmic.c +3 -6
@@ -429,8 +429,7 @@ static const struct snd_kcontrol_new rt712_sdca_dmic_snd_controls[] = {static int rt712_sdca_dmic_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt712_sdca_dmic_priv *rt712 =snd_soc_component_get_drvdata (component);unsigned int val =0 , mask_sft;
@@ -452,10 +451,8 @@ static int rt712_sdca_dmic_mux_get(struct snd_kcontrol *kcontrol,static int rt712_sdca_dmic_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt712_sdca_dmic_priv *rt712 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 123/292 ASoC: codecs: rt712-sdca: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt712-sdca.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-)
sound/soc/codecs/rt712-sdca.c +7 -13
@@ -743,8 +743,7 @@ static const struct snd_kcontrol_new rt712_sdca_spk_controls[] = {static int rt712_sdca_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt712_sdca_priv *rt712 =snd_soc_component_get_drvdata (component);unsigned int val =0 , mask =0x3300 ;
@@ -768,10 +767,8 @@ static int rt712_sdca_mux_get(struct snd_kcontrol *kcontrol,static int rt712_sdca_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt712_sdca_priv *rt712 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -1017,7 +1014,7 @@ static int rt712_sdca_parse_dt(struct rt712_sdca_priv *rt712, struct device *devstatic int rt712_sdca_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt712_sdca_priv *rt712 =snd_soc_component_get_drvdata (component);int ret;
@@ -1230,8 +1227,7 @@ static const struct snd_kcontrol_new rt712_sdca_dmic_snd_controls[] = {static int rt712_sdca_dmic_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt712_sdca_priv *rt712 =snd_soc_component_get_drvdata (component);unsigned int val =0 , mask_sft;
@@ -1253,10 +1249,8 @@ static int rt712_sdca_dmic_mux_get(struct snd_kcontrol *kcontrol,static int rt712_sdca_dmic_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt712_sdca_priv *rt712 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 124/292 ASoC: codecs: rt715-sdca: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt715-sdca.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/rt715-sdca.c +3 -6
@@ -502,8 +502,7 @@ static const struct snd_kcontrol_new rt715_sdca_snd_controls[] = {static int rt715_sdca_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt715_sdca_priv *rt715 =snd_soc_component_get_drvdata (component);unsigned int val, mask_sft;
@@ -538,10 +537,8 @@ static int rt715_sdca_mux_get(struct snd_kcontrol *kcontrol,static int rt715_sdca_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt715_sdca_priv *rt715 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 125/292 ASoC: codecs: rt715: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt715.c | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-)
sound/soc/codecs/rt715.c +14 -21
@@ -125,8 +125,7 @@ static int rt715_set_amp_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);
@@ -152,7 +151,7 @@ static int rt715_set_amp_gain_put(struct snd_kcontrol *kcontrol,rt715_get_gain (rt715, addr_h, addr_l, val_h, &read_rl, &read_ll); -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -206,7 +205,7 @@ static int rt715_set_amp_gain_put(struct snd_kcontrol *kcontrol, }/* D0:power on state, D3: power saving mode */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );return k_vol_changed;
@@ -250,8 +249,7 @@ static int rt715_set_main_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);static const unsigned int capture_reg_H[] = {RT715_SET_GAIN_MIC_ADC_H ,RT715_SET_GAIN_LINE_ADC_H ,
@@ -274,7 +272,7 @@ static int rt715_set_main_switch_put(struct snd_kcontrol *kcontrol, addr_l = capture_reg_L[j];rt715_get_gain (rt715, addr_h, addr_l, val_h, &read_rl, &read_ll); -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -322,7 +320,7 @@ static int rt715_set_main_switch_put(struct snd_kcontrol *kcontrol, }/* D0:power on state, D3: power saving mode */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );return k_changed;
@@ -358,8 +356,7 @@ static int rt715_set_main_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_component *component =snd_kcontrol_chip (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);static const unsigned int capture_reg_H[] = {RT715_SET_GAIN_MIC_ADC_H ,RT715_SET_GAIN_LINE_ADC_H ,
@@ -381,7 +378,7 @@ static int rt715_set_main_vol_put(struct snd_kcontrol *kcontrol, addr_l = capture_reg_L[j];rt715_get_gain (rt715, addr_h, addr_l, val_h, &read_rl, &read_ll); -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
@@ -431,7 +428,7 @@ static int rt715_set_main_vol_put(struct snd_kcontrol *kcontrol, }/* D0:power on state, D3: power saving mode */ -if (dapm->bias_level <=SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) <=SND_SOC_BIAS_STANDBY )regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D3 );return k_changed;
@@ -546,8 +543,7 @@ static const struct snd_kcontrol_new rt715_snd_controls[] = {static int rt715_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int reg, val;
@@ -577,10 +573,8 @@ static int rt715_mux_get(struct snd_kcontrol *kcontrol,static int rt715_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
@@ -752,13 +746,12 @@ static const struct snd_soc_dapm_route rt715_audio_map[] = {static int rt715_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct rt715_priv *rt715 =snd_soc_component_get_drvdata (component);switch (level) {case SND_SOC_BIAS_PREPARE : -if (dapm->bias_level ==SND_SOC_BIAS_STANDBY ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY ) {regmap_write (rt715->regmap,RT715_SET_AUDIO_POWER_STATE ,AC_PWRST_D0 );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 126/292 ASoC: codecs: rt721-sdca: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/rt721-sdca.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/rt721-sdca.c +3 -6
@@ -746,8 +746,7 @@ static const struct snd_kcontrol_new rt721_sdca_controls[] = {static int rt721_sdca_adc_mux_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol);struct rt721_sdca_priv *rt721 =snd_soc_component_get_drvdata (component);unsigned int val =0 , mask_sft, mask;
@@ -786,10 +785,8 @@ static int rt721_sdca_adc_mux_get(struct snd_kcontrol *kcontrol,static int rt721_sdca_adc_mux_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component = -snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct rt721_sdca_priv *rt721 =snd_soc_component_get_drvdata (component);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;unsigned int *item = ucontrol->value.enumerated.item;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 127/292 ASoC: codecs: simple-mux: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/simple-mux.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/codecs/simple-mux.c +4 -3
@@ -34,7 +34,7 @@ static SOC_ENUM_SINGLE_EXT_DECL(simple_mux_enum, simple_mux_texts);static int simple_mux_control_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct snd_soc_component *c =snd_soc_dapm_to_component (dapm);struct simple_mux *priv =snd_soc_component_get_drvdata (c);
@@ -46,7 +46,7 @@ static int simple_mux_control_get(struct snd_kcontrol *kcontrol,static int simple_mux_control_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_dapm (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol);struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;struct snd_soc_component *c =snd_soc_dapm_to_component (dapm);struct simple_mux *priv =snd_soc_component_get_drvdata (c);
@@ -59,7 +59,8 @@ static int simple_mux_control_put(struct snd_kcontrol *kcontrol, priv->mux = ucontrol->value.enumerated.item[0 ]; -if (priv->idle_state !=MUX_IDLE_AS_IS && dapm->bias_level <SND_SOC_BIAS_PREPARE ) +if (priv->idle_state !=MUX_IDLE_AS_IS && +snd_soc_dapm_get_bias_level (dapm) <SND_SOC_BIAS_PREPARE )return 0 ;gpiod_set_value_cansleep (priv->gpiod_mux, priv->mux);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 128/292 ASoC: codecs: sma1303: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/sma1303.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
sound/soc/codecs/sma1303.c +3 -4
@@ -518,7 +518,7 @@ static int sma1303_aif_in_event(struct snd_soc_dapm_widget *w,struct snd_soc_component *component =snd_soc_dapm_to_component (w->dapm);struct sma1303_priv *sma1303 =snd_soc_component_get_drvdata (component); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);int ret =0 ;bool change = false, temp = false;
@@ -588,7 +588,7 @@ static int sma1303_aif_out_event(struct snd_soc_dapm_widget *w,struct snd_soc_component *component =snd_soc_dapm_to_component (w->dapm);struct sma1303_priv *sma1303 =snd_soc_component_get_drvdata (component); -unsigned int mux =dapm_kcontrol_get_value (w->kcontrols[0 ]); +unsigned int mux =snd_soc_dapm_kcontrol_get_value (w->kcontrols[0 ]);int ret =0 ;bool change = false, temp = false;
@@ -1557,8 +1557,7 @@ static void sma1303_check_fault_worker(struct work_struct *work)static int sma1303_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_sync (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 129/292 ASoC: codecs: sma1307: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/sma1307.c | 59 ++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 34 deletions(-)
sound/soc/codecs/sma1307.c +25 -34
@@ -790,10 +790,9 @@ static int sma1307_power_event(struct snd_soc_dapm_widget *w,static int sma1307_dapm_aif_in_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component); ucontrol->value.enumerated.item[0 ] = (unsigned int )sma1307->dapm_aif_in;snd_soc_dapm_put_enum_double (kcontrol, ucontrol);
@@ -804,10 +803,9 @@ static int sma1307_dapm_aif_in_get(struct snd_kcontrol *kcontrol,static int sma1307_dapm_aif_in_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component);int val = (int )ucontrol->value.enumerated.item[0 ];bool change;
@@ -830,10 +828,9 @@ static int sma1307_dapm_aif_in_put(struct snd_kcontrol *kcontrol,static int sma1307_dapm_sdo_setting_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component); ucontrol->value.enumerated.item[0 ] = (unsigned int )sma1307->dapm_sdo_setting;
@@ -845,10 +842,9 @@ static int sma1307_dapm_sdo_setting_get(struct snd_kcontrol *kcontrol,static int sma1307_dapm_sdo_setting_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component);int val = (int )ucontrol->value.enumerated.item[0 ];bool change;
@@ -871,10 +867,9 @@ static int sma1307_dapm_sdo_setting_put(struct snd_kcontrol *kcontrol,static int sma1307_dapm_aif_out_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component);unsigned int val =0 ;if (!strcmp (kcontrol->id.name,SMA1307_AIF_OUT0_NAME )) {
@@ -895,10 +890,9 @@ static int sma1307_dapm_aif_out_get(struct snd_kcontrol *kcontrol,static int sma1307_dapm_aif_out_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component);int val = (int )ucontrol->value.enumerated.item[0 ];bool change;
@@ -933,10 +927,9 @@ static int sma1307_dapm_aif_out_put(struct snd_kcontrol *kcontrol,static int sma1307_dapm_sdo_enable_get (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component); ucontrol->value.integer.value[0 ] = (long )sma1307->dapm_sdo_en;snd_soc_dapm_put_volsw (kcontrol, ucontrol);
@@ -947,10 +940,9 @@ static int sma1307_dapm_sdo_enable_get(struct snd_kcontrol *kcontrol,static int sma1307_dapm_sdo_enable_put (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_dapm_context *dapm = -snd_soc_dapm_kcontrol_dapm (kcontrol); -struct sma1307_priv *sma1307 = -snd_soc_component_get_drvdata (dapm->component); +struct snd_soc_dapm_context *dapm =snd_soc_dapm_kcontrol_to_dapm (kcontrol); +struct snd_soc_component *component =snd_soc_dapm_to_component (dapm); +struct sma1307_priv *sma1307 =snd_soc_component_get_drvdata (component);int val = (int )ucontrol->value.integer.value[0 ];bool change;
@@ -1857,8 +1849,7 @@ static void sma1307_set_default(struct snd_soc_component *component)static int sma1307_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm = -snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);snd_soc_dapm_sync (dapm);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 130/292 ASoC: codecs: ssm2518: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ssm2518.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/ssm2518.c +2 -1
@@ -500,6 +500,7 @@ static int ssm2518_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct ssm2518 *ssm2518 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret =0 ;switch (level) {
@@ -508,7 +509,7 @@ static int ssm2518_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) ret =ssm2518_set_power (ssm2518, true);break ;case SND_SOC_BIAS_OFF :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 131/292 ASoC: codecs: ssm2602: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ssm2602.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/ssm2602.c +2 -2
@@ -562,7 +562,7 @@ static int ssm2602_resume(struct snd_soc_component *component)static int ssm2602_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct ssm2602_priv *ssm2602 =snd_soc_component_get_drvdata (component);int ret;
@@ -587,7 +587,7 @@ static int ssm2602_component_probe(struct snd_soc_component *component)static int ssm2604_component_probe (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret; ret = snd_soc_dapm_new_controls(dapm, ssm2604_dapm_widgets,
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 132/292 ASoC: codecs: ssm4567: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/ssm4567.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/ssm4567.c +2 -1
@@ -369,6 +369,7 @@ static int ssm4567_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct ssm4567 *ssm4567 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret =0 ;switch (level) {
@@ -377,7 +378,7 @@ static int ssm4567_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) ret =ssm4567_set_power (ssm4567, true);break ;case SND_SOC_BIAS_OFF :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 133/292 ASoC: codecs: sta32x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/sta32x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/codecs/sta32x.c +4 -2
@@ -799,6 +799,7 @@ static int sta32x_set_bias_level(struct snd_soc_component *component, {int ret;struct sta32x_priv *sta32x =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);dev_dbg (component->dev,"level = %d\n" , level);switch (level) {
@@ -813,7 +814,7 @@ static int sta32x_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =regulator_bulk_enable (ARRAY_SIZE (sta32x->supplies), sta32x->supplies);if (ret !=0 ) {
@@ -870,6 +871,7 @@ static struct snd_soc_dai_driver sta32x_dai = {static int sta32x_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct sta32x_priv *sta32x =snd_soc_component_get_drvdata (component);struct sta32x_platform_data *pdata = sta32x->pdata;int i, ret =0 , thermal =0 ;
@@ -974,7 +976,7 @@ static int sta32x_probe(struct snd_soc_component *component)if (sta32x->pdata->needs_esd_watchdog)INIT_DELAYED_WORK (&sta32x->watchdog_work, sta32x_watchdog); -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );/* Bias level configuration will have done an extra enable */ regulator_bulk_disable (ARRAY_SIZE (sta32x->supplies), sta32x->supplies);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 134/292 ASoC: codecs: sta350: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/sta350.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/codecs/sta350.c +4 -2
@@ -830,6 +830,7 @@ static int sta350_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct sta350_priv *sta350 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;dev_dbg (component->dev,"level = %d\n" , level);
@@ -845,7 +846,7 @@ static int sta350_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) { ret =regulator_bulk_enable (ARRAY_SIZE (sta350->supplies), sta350->supplies);
@@ -905,6 +906,7 @@ static struct snd_soc_dai_driver sta350_dai = {static int sta350_probe (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct sta350_priv *sta350 =snd_soc_component_get_drvdata (component);struct sta350_platform_data *pdata = sta350->pdata;int i, ret =0 , thermal =0 ;
@@ -1028,7 +1030,7 @@ static int sta350_probe(struct snd_soc_component *component) sta350->coef_shadow[60 ] =0x400000 ; sta350->coef_shadow[61 ] =0x400000 ; -snd_soc_component_force_bias_level (component,SND_SOC_BIAS_STANDBY ); +snd_soc_dapm_force_bias_level (dapm,SND_SOC_BIAS_STANDBY );/* Bias level configuration will have done an extra enable */ regulator_bulk_disable (ARRAY_SIZE (sta350->supplies), sta350->supplies);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 135/292 ASoC: codecs: sta529: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/sta529.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/sta529.c +2 -1
@@ -155,6 +155,7 @@ static int sta529_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct sta529 *sta529 =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (level) {case SND_SOC_BIAS_ON :
@@ -165,7 +166,7 @@ static int sta529_set_bias_level(struct snd_soc_component *component, enum FFX_CLK_ENB);break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )regcache_sync (sta529->regmap);snd_soc_component_update_bits (component,STA529_FFXCFG0 ,POWER_CNTLMSAK ,POWER_STDBY );
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 136/292 ASoC: codecs: tas571x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tas571x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/tas571x.c +2 -1
@@ -322,6 +322,7 @@ static int tas571x_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) {struct tas571x_private *priv =snd_soc_component_get_drvdata (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;switch (level) {
@@ -330,7 +331,7 @@ static int tas571x_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) { +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF ) {if (!IS_ERR (priv->mclk)) { ret =clk_prepare_enable (priv->mclk);if (ret) {
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 137/292 ASoC: codecs: tas6424: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tas6424.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/codecs/tas6424.c +3 -1
@@ -346,6 +346,8 @@ static int tas6424_power_on(struct snd_soc_component *component)static int tas6424_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +dev_dbg (component->dev,"%s() level=%d\n" , __func__, level);switch (level) {
@@ -353,7 +355,7 @@ static int tas6424_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_PREPARE :break ;case SND_SOC_BIAS_STANDBY : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )tas6424_power_on (component);break ;case SND_SOC_BIAS_OFF :
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 138/292 ASoC: codecs: tlv320adc3xxx: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tlv320adc3xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/tlv320adc3xxx.c +2 -2
@@ -1193,7 +1193,7 @@ static int adc3xxx_hw_params(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (dai->component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (dai->component);struct adc3xxx *adc3xxx =snd_soc_component_get_drvdata (component);int i, width =16 ;u8 iface_len, bdiv;
@@ -1299,7 +1299,7 @@ static int adc3xxx_set_dai_sysclk(struct snd_soc_dai *codec_dai,static int adc3xxx_set_dai_fmt (struct snd_soc_dai *codec_dai,unsigned int fmt) {struct snd_soc_component *component = codec_dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct adc3xxx *adc3xxx =snd_soc_component_get_drvdata (component);u8 clkdir =0 , format =0 ;int master =0 ;
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 139/292 ASoC: codecs: tlv320aic31xx: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tlv320aic31xx.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
sound/soc/codecs/tlv320aic31xx.c +8 -6
@@ -799,7 +799,7 @@ static int aic31xx_add_controls(struct snd_soc_component *component)static int aic31xx_add_widgets (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct aic31xx_priv *aic31xx =snd_soc_component_get_drvdata (component);int ret =0 ;
@@ -1030,7 +1030,7 @@ static int aic31xx_dac_mute(struct snd_soc_dai *codec_dai, int mute,static int aic31xx_clock_master_routes (struct snd_soc_component *component,unsigned int fmt) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct aic31xx_priv *aic31xx =snd_soc_component_get_drvdata (component);int ret;
@@ -1316,18 +1316,20 @@ static void aic31xx_power_off(struct snd_soc_component *component)static int aic31xx_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component); +dev_dbg (component->dev,"## %s: %d -> %d\n" , __func__, -snd_soc_component_get_bias_level (component), level); +snd_soc_dapm_get_bias_level (dapm), level);switch (level) {case SND_SOC_BIAS_ON :break ;case SND_SOC_BIAS_PREPARE : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY )aic31xx_clk_on (component);break ;case SND_SOC_BIAS_STANDBY : -switch (snd_soc_component_get_bias_level (component)) { +switch (snd_soc_dapm_get_bias_level (dapm)) {case SND_SOC_BIAS_OFF :aic31xx_power_on (component);break ;
@@ -1339,7 +1341,7 @@ static int aic31xx_set_bias_level(struct snd_soc_component *component, }break ;case SND_SOC_BIAS_OFF : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY )aic31xx_power_off (component);break ; }
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 140/292 ASoC: codecs: tlv320aic32x4: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tlv320aic32x4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/tlv320aic32x4.c +2 -1
@@ -883,6 +883,7 @@ static int aic32x4_mute(struct snd_soc_dai *dai, int mute, int direction)static int aic32x4_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);int ret;static struct clk_bulk_data clocks[] = {
@@ -907,7 +908,7 @@ static int aic32x4_set_bias_level(struct snd_soc_component *component,break ;case SND_SOC_BIAS_STANDBY :/* Initial cold start */ -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_OFF ) +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_OFF )break ;clk_bulk_disable_unprepare (ARRAY_SIZE (clocks), clocks);
Signature · 1 line
2.43.0
Kuninori Morimoto
maintainerPATCH 141/292 ASoC: codecs: tlv320aic3x: convert to snd_soc_dapm_xxx()
In reply to Kuninori MorimotoThis patch converts below functions.
dapm->dev -> snd_soc_dapm_to_dev()dapm->card -> snd_soc_dapm_to_card()dapm->component -> snd_soc_dapm_to_component()
dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()
snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()
snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()
--- sound/soc/codecs/tlv320aic3x.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
sound/soc/codecs/tlv320aic3x.c +6 -5
@@ -163,8 +163,8 @@ EXPORT_SYMBOL_GPL(aic3x_regmap);static int snd_soc_dapm_put_volsw_aic3x (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol) { -struct snd_soc_component *component =snd_soc_dapm_kcontrol_component (kcontrol); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_component *component =snd_soc_dapm_kcontrol_to_component (kcontrol); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value;unsigned int reg = mc->reg;
@@ -1009,7 +1009,7 @@ static const struct snd_soc_dapm_route intercon_3007[] = {static int aic3x_add_widgets (struct snd_soc_component *component) {struct aic3x_priv *aic3x =snd_soc_component_get_drvdata (component); -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);switch (aic3x->model) {case AIC3X_MODEL_3X :
@@ -1449,13 +1449,14 @@ static int aic3x_set_power(struct snd_soc_component *component, int power)static int aic3x_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct aic3x_priv *aic3x =snd_soc_component_get_drvdata (component);switch (level) {case SND_SOC_BIAS_ON :break ;case SND_SOC_BIAS_PREPARE : -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_STANDBY && +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_STANDBY && aic3x->master) {/* enable pll */ snd_soc_component_update_bits(component, AIC3X_PLL_PROGA_REG,
@@ -1465,7 +1466,7 @@ static int aic3x_set_bias_level(struct snd_soc_component *component,case SND_SOC_BIAS_STANDBY :if (!aic3x->power)aic3x_set_power (component,1 ); -if (snd_soc_component_get_bias_level (component) ==SND_SOC_BIAS_PREPARE && +if (snd_soc_dapm_get_bias_level (dapm) ==SND_SOC_BIAS_PREPARE && aic3x->master) {/* disable pll */ snd_soc_component_update_bits(component, AIC3X_PLL_PROGA_REG,
Signature · 1 line
2.43.0