* [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache()
@ 2024-08-09 9:45 Richard Fitzgerald
2024-08-09 10:38 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Richard Fitzgerald @ 2024-08-09 9:45 UTC (permalink / raw)
To: tiwai; +Cc: linux-sound, linux-kernel, patches, Simon Trimmer,
Richard Fitzgerald
From: Simon Trimmer <simont@opensource.cirrus.com>
Commit 5d7e328e20b3 ("ASoC: cs35l56: Revert support for dual-ownership
of ASP registers")
replaced cs35l56_force_sync_asp1_registers_from_cache() with a dummy
implementation so that the HDA driver would continue to build.
Remove the calls from HDA so that the stub function can be removed.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
sound/pci/hda/cs35l56_hda.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c
index 96d3f13c5abf..bbfd68a572bf 100644
--- a/sound/pci/hda/cs35l56_hda.c
+++ b/sound/pci/hda/cs35l56_hda.c
@@ -151,10 +151,6 @@ static int cs35l56_hda_runtime_resume(struct device *dev)
}
}
- ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
- if (ret)
- goto err;
-
return 0;
err:
@@ -1095,9 +1091,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
regmap_multi_reg_write(cs35l56->base.regmap, cs35l56_hda_dai_config,
ARRAY_SIZE(cs35l56_hda_dai_config));
- ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
- if (ret)
- goto dsp_err;
/*
* By default only enable one ASP1TXn, where n=amplifier index,
@@ -1123,7 +1116,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
pm_err:
pm_runtime_disable(cs35l56->base.dev);
-dsp_err:
cs_dsp_remove(&cs35l56->cs_dsp);
err:
gpiod_set_value_cansleep(cs35l56->base.reset_gpio, 0);
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache()
2024-08-09 9:45 Richard Fitzgerald
@ 2024-08-09 10:38 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2024-08-09 10:38 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: tiwai, linux-sound, linux-kernel, patches, Simon Trimmer
On Fri, 09 Aug 2024 11:45:27 +0200,
Richard Fitzgerald wrote:
>
> From: Simon Trimmer <simont@opensource.cirrus.com>
>
> Commit 5d7e328e20b3 ("ASoC: cs35l56: Revert support for dual-ownership
> of ASP registers")
> replaced cs35l56_force_sync_asp1_registers_from_cache() with a dummy
> implementation so that the HDA driver would continue to build.
>
> Remove the calls from HDA so that the stub function can be removed.
>
> Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Since those are the only callers, it'd be easier to get rid of the
definition in include/sound/cs35l56.h together as a single patch.
Otherwise it'll lead to a dependency, which can be difficult when
applied over multiple trees.
thanks,
Takashi
> ---
> sound/pci/hda/cs35l56_hda.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c
> index 96d3f13c5abf..bbfd68a572bf 100644
> --- a/sound/pci/hda/cs35l56_hda.c
> +++ b/sound/pci/hda/cs35l56_hda.c
> @@ -151,10 +151,6 @@ static int cs35l56_hda_runtime_resume(struct device *dev)
> }
> }
>
> - ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
> - if (ret)
> - goto err;
> -
> return 0;
>
> err:
> @@ -1095,9 +1091,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
>
> regmap_multi_reg_write(cs35l56->base.regmap, cs35l56_hda_dai_config,
> ARRAY_SIZE(cs35l56_hda_dai_config));
> - ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
> - if (ret)
> - goto dsp_err;
>
> /*
> * By default only enable one ASP1TXn, where n=amplifier index,
> @@ -1123,7 +1116,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
>
> pm_err:
> pm_runtime_disable(cs35l56->base.dev);
> -dsp_err:
> cs_dsp_remove(&cs35l56->cs_dsp);
> err:
> gpiod_set_value_cansleep(cs35l56->base.reset_gpio, 0);
> --
> 2.39.2
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache()
@ 2024-12-06 10:57 Richard Fitzgerald
2024-12-06 12:56 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Richard Fitzgerald @ 2024-12-06 10:57 UTC (permalink / raw)
To: tiwai; +Cc: linux-sound, linux-kernel, patches, Simon Trimmer
From: Simon Trimmer <simont@opensource.cirrus.com>
Commit 5d7e328e20b3 ("ASoC: cs35l56: Revert support for dual-ownership
of ASP registers")
replaced cs35l56_force_sync_asp1_registers_from_cache() with a dummy
implementation so that the HDA driver would continue to build.
Remove the calls from HDA and remove the stub function.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
include/sound/cs35l56.h | 6 ------
sound/pci/hda/cs35l56_hda.c | 8 --------
2 files changed, 14 deletions(-)
diff --git a/include/sound/cs35l56.h b/include/sound/cs35l56.h
index 94e8185c4795..3dc7a1551ac3 100644
--- a/include/sound/cs35l56.h
+++ b/include/sound/cs35l56.h
@@ -271,12 +271,6 @@ struct cs35l56_base {
struct gpio_desc *reset_gpio;
};
-/* Temporary to avoid a build break with the HDA driver */
-static inline int cs35l56_force_sync_asp1_registers_from_cache(struct cs35l56_base *cs35l56_base)
-{
- return 0;
-}
-
static inline bool cs35l56_is_otp_register(unsigned int reg)
{
return (reg >> 16) == 3;
diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c
index e3ac0e23ae32..7baf3b506eef 100644
--- a/sound/pci/hda/cs35l56_hda.c
+++ b/sound/pci/hda/cs35l56_hda.c
@@ -151,10 +151,6 @@ static int cs35l56_hda_runtime_resume(struct device *dev)
}
}
- ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
- if (ret)
- goto err;
-
return 0;
err:
@@ -1059,9 +1055,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
regmap_multi_reg_write(cs35l56->base.regmap, cs35l56_hda_dai_config,
ARRAY_SIZE(cs35l56_hda_dai_config));
- ret = cs35l56_force_sync_asp1_registers_from_cache(&cs35l56->base);
- if (ret)
- goto dsp_err;
/*
* By default only enable one ASP1TXn, where n=amplifier index,
@@ -1087,7 +1080,6 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int hid, int id)
pm_err:
pm_runtime_disable(cs35l56->base.dev);
-dsp_err:
cs_dsp_remove(&cs35l56->cs_dsp);
err:
gpiod_set_value_cansleep(cs35l56->base.reset_gpio, 0);
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache()
2024-12-06 10:57 [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache() Richard Fitzgerald
@ 2024-12-06 12:56 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2024-12-06 12:56 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: tiwai, linux-sound, linux-kernel, patches, Simon Trimmer
On Fri, 06 Dec 2024 11:57:57 +0100,
Richard Fitzgerald wrote:
>
> From: Simon Trimmer <simont@opensource.cirrus.com>
>
> Commit 5d7e328e20b3 ("ASoC: cs35l56: Revert support for dual-ownership
> of ASP registers")
> replaced cs35l56_force_sync_asp1_registers_from_cache() with a dummy
> implementation so that the HDA driver would continue to build.
>
> Remove the calls from HDA and remove the stub function.
>
> Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Thanks, applied now.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-06 12:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06 10:57 [PATCH] ALSA: hda: cs35l56: Remove calls to cs35l56_force_sync_asp1_registers_from_cache() Richard Fitzgerald
2024-12-06 12:56 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2024-08-09 9:45 Richard Fitzgerald
2024-08-09 10:38 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox