summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRander Wang <rander.wang@linux.intel.com>2019-07-01 15:46:30 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-26 09:10:42 +0200
commit54f43ea4c28742dd3b44ca5517bdb7e08703398b (patch)
tree5d6bfa8f8e16de393e66f6f365b87ab639a86571 /tools
parent74ba703a2575424a4d944d30a2d3e978bc43f765 (diff)
downloadlinux-stable-54f43ea4c28742dd3b44ca5517bdb7e08703398b.tar.gz
linux-stable-54f43ea4c28742dd3b44ca5517bdb7e08703398b.tar.bz2
linux-stable-54f43ea4c28742dd3b44ca5517bdb7e08703398b.zip
ALSA: hda: Fix a headphone detection issue when using SOF
[ Upstream commit 7c2b3629d09ddec810dc4c1d3a6657c32def8f71 ] To save power, the hda hdmi driver in ASoC invokes snd_hdac_ext_bus_link_put to disable CORB/RIRB buffers DMA if there is no user of bus and invokes snd_hdac_ext_bus_link_get to set up CORB/RIRB buffers when it is used. Unsolicited responses is disabled in snd_hdac_bus_stop_cmd_io called by snd_hdac_ext_bus_link_put , but it is not enabled in snd_hdac_bus_init_cmd_io called by snd_hdac_ext_bus_link_get. So for put-get sequence, Unsolicited responses is disabled and headphone can't be detected by hda codecs. Now unsolicited responses is only enabled in snd_hdac_bus_reset_link which resets controller. The function is only called for setup of controller. This patch enables Unsolicited responses after RIRB is initialized in snd_hdac_bus_init_cmd_io which works together with snd_hdac_bus_reset_link to set up controller. Tested legacy hda driver and SOF driver on intel whiskeylake. Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Rander Wang <rander.wang@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions