WSL2-Linux-Kernel/sound/soc/amd
Vijendar Mukunda 6879e8e759
ASoC: amd: fix for pcm_read() error
Below phython script throwing pcm_read() error.

import subprocess

p = subprocess.Popen(["aplay -t raw -D plughw:1,0 /dev/zero"], shell=True)
subprocess.call(["arecord -Dhw:1,0 --dump-hw-params"], shell=True)
subprocess.call(["arecord -Dhw:1,0 -fdat -d1 /dev/null"], shell=True)
p.kill()

Handling ACP global external interrupt enable register
causing this issue.
This register got updated wrongly when there is active
stream causing interrupts disabled for active stream.
Refactored code to handle enabling and disabling external interrupts.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/1619555017-29858-1-git-send-email-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-04-28 16:34:55 +01:00
..
include ASoC: AMD : add ACP 2.2 register headers 2016-01-10 12:44:10 +00:00
raven ASoC: amd: fix for pcm_read() error 2021-04-28 16:34:55 +01:00
renoir ASoC: amd: renoir: acp3x-pdm-dma: constify static struct snd_soc_dai_ops 2021-04-09 13:39:53 +01:00
Kconfig ASoC: amd: Add support for ALC1015P codec in acp3x machine driver 2021-04-09 20:03:10 +01:00
Makefile ASoC: amd: enable Renoir acp3x drivers build 2020-05-19 13:45:34 +01:00
acp-da7219-max98357a.c ASoC: amd: update spdx license for acp machine driver 2021-03-29 17:28:14 +01:00
acp-pcm-dma.c ASoC: amd: use asoc_substream_to_rtd() 2020-07-23 19:07:30 +01:00
acp-rt5645.c ASoC: amd: use asoc_substream_to_rtd() 2020-07-23 19:07:30 +01:00
acp.h ASoC: use DMA addr rather than CPU pa for acp_audio_dma 2018-12-06 12:53:04 +00:00
acp3x-rt5682-max9836.c ASoC: amd: Add support for ALC1015P codec in acp3x machine driver 2021-04-09 20:03:10 +01:00