mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02:00
ASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation
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>
(cherry picked from commit 3b857472f3)
This commit is contained in:
parent
ee162843d2
commit
71cb00120a
|
|
@ -1410,6 +1410,12 @@ static int hdac_hdmi_create_dais(struct hdac_device *hdev,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* Filter out 44.1, 88.2 and 176.4Khz */
|
||||
rates &= ~(SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_88200 |
|
||||
SNDRV_PCM_RATE_176400);
|
||||
if (!rates)
|
||||
return -EINVAL;
|
||||
|
||||
sprintf(dai_name, "intel-hdmi-hifi%d", i+1);
|
||||
hdmi_dais[i].name = devm_kstrdup(&hdev->dev,
|
||||
dai_name, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user