ASoC: sun4i-spdif: Move quirks to the top
The quirks are actually defines in the middle of the file with short explanation. Move this at the top and add a section to have coherency with sun4i-i2s. Signed-off-by: Clément Péron <peron.clem@gmail.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9aa37874d1
commit
ae9cccc30f
@ -161,6 +161,17 @@
|
|||||||
#define SUN4I_SPDIF_SAMFREQ_176_4KHZ 0xc
|
#define SUN4I_SPDIF_SAMFREQ_176_4KHZ 0xc
|
||||||
#define SUN4I_SPDIF_SAMFREQ_192KHZ 0xe
|
#define SUN4I_SPDIF_SAMFREQ_192KHZ 0xe
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct sun4i_spdif_quirks - Differences between SoC variants.
|
||||||
|
*
|
||||||
|
* @reg_dac_tx_data: TX FIFO offset for DMA config.
|
||||||
|
* @has_reset: SoC needs reset deasserted.
|
||||||
|
*/
|
||||||
|
struct sun4i_spdif_quirks {
|
||||||
|
unsigned int reg_dac_txdata;
|
||||||
|
bool has_reset;
|
||||||
|
};
|
||||||
|
|
||||||
struct sun4i_spdif_dev {
|
struct sun4i_spdif_dev {
|
||||||
struct platform_device *pdev;
|
struct platform_device *pdev;
|
||||||
struct clk *spdif_clk;
|
struct clk *spdif_clk;
|
||||||
@ -405,11 +416,6 @@ static struct snd_soc_dai_driver sun4i_spdif_dai = {
|
|||||||
.name = "spdif",
|
.name = "spdif",
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sun4i_spdif_quirks {
|
|
||||||
unsigned int reg_dac_txdata; /* TX FIFO offset for DMA config */
|
|
||||||
bool has_reset;
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct sun4i_spdif_quirks sun4i_a10_spdif_quirks = {
|
static const struct sun4i_spdif_quirks sun4i_a10_spdif_quirks = {
|
||||||
.reg_dac_txdata = SUN4I_SPDIF_TXFIFO,
|
.reg_dac_txdata = SUN4I_SPDIF_TXFIFO,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user