Unverified Commit 7bbb049c authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: ak4613: rename constraint to constraint_rates



TDM support needs to use constraint_channels.
This patch renames current constraint to constraint_rates for it.
This is prepare for TDM support.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87a6d0p9l7.wl-kuninori.morimoto.gx@renesas.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e67d19a4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ struct ak4613_interface {

struct ak4613_priv {
	struct mutex lock;
	struct snd_pcm_hw_constraint_list constraint;
	struct snd_pcm_hw_constraint_list constraint_rates;
	struct work_struct dummy_write_work;
	struct snd_soc_component *component;
	unsigned int rate;
@@ -272,10 +272,11 @@ static void ak4613_hw_constraints(struct ak4613_priv *priv,
		176400,
		192000,
	};
	struct snd_pcm_hw_constraint_list *constraint = &priv->constraint;
	struct snd_pcm_hw_constraint_list *constraint;
	unsigned int fs;
	int i;

	constraint		= &priv->constraint_rates;
	constraint->list	= ak4613_rates;
	constraint->mask	= 0;
	constraint->count	= 0;