diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2021-07-21 21:04:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-22 14:45:37 +0300 |
commit | fc2c8067c76b3f322447491efb9837f051e86c69 (patch) | |
tree | 12064d77fa41a0bce6380c11032778527cfcf9a3 /sound/soc/amd/vangogh/acp5x.h | |
parent | 77f61444e48b79e991b15da6399cf24685a042c9 (diff) | |
download | linux-fc2c8067c76b3f322447491efb9837f051e86c69.tar.xz |
ASoC: amd: irq handler changes for ACP5x PCM dma driver
Whenever audio data equal to the I2S FIFO watermark level are
produced/consumed, interrupt is generated.
Acknowledge the interrupt.
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20210721180430.11571-7-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/vangogh/acp5x.h')
-rw-r--r-- | sound/soc/amd/vangogh/acp5x.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/amd/vangogh/acp5x.h b/sound/soc/amd/vangogh/acp5x.h index e450fb32d680..a0d898e47bb8 100644 --- a/sound/soc/amd/vangogh/acp5x.h +++ b/sound/soc/amd/vangogh/acp5x.h @@ -32,9 +32,18 @@ #define I2S_MODE 0 #define ACP5x_I2S_MODE 1 #define ACP5x_RES 4 +#define I2S_RX_THRESHOLD 27 +#define I2S_TX_THRESHOLD 28 +#define HS_TX_THRESHOLD 24 +#define HS_RX_THRESHOLD 23 struct i2s_dev_data { + unsigned int i2s_irq; void __iomem *acp5x_base; + struct snd_pcm_substream *play_stream; + struct snd_pcm_substream *capture_stream; + struct snd_pcm_substream *i2ssp_play_stream; + struct snd_pcm_substream *i2ssp_capture_stream; }; /* common header file uses exact offset rather than relative |