ASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation
authorYong Zhi <yong.zhi@intel.com>
Tue, 7 Aug 2018 17:19:16 +0000 (12:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 16:59:48 +0000 (17:59 +0100)
commit2958d917fadeea14fb1bc54756a3f29f87fbf6f4
tree95744d9255c449abeabb0f6cb2518fb7da717bd4
parent75791ce0521d8eae7cc090b388b2d1bf09e2bdf4
ASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation

[ Upstream commit 3b857472f34faa7d11001afa5e158833812c98d7 ]

Playback of 44.1Khz contents with HDMI plugged returns
"Invalid pipe config" because HDMI paths in the FW
topology are configured to operate at 48Khz.

This patch filters out sampling rates not supported
at hdac_hdmi_create_dais() to let user space SRC
to do the converting.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/hdac_hdmi.c