ALSA: hda: Glenfly: add HD Audio PCI IDs and HDMI Codec Vendor IDs.
authorjasontao <jasontao@glenfly.com>
Wed, 26 Apr 2023 01:30:59 +0000 (09:30 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Apr 2023 12:03:36 +0000 (14:03 +0200)
commitc51e431052e2eacfb23fbf6b39bc6c8770d9827a
tree94243f34dfd9cc5ab7cbe45664c0a1c8d5a2c0cc
parentbaa6584a24494fbbd2862270d39e61b86987cc91
ALSA: hda: Glenfly: add HD Audio PCI IDs and HDMI Codec Vendor IDs.

Add a set of HD Audio PCI IDS, and the HDMI codec vendor IDs for
Glenfly Gpus.

- In default_bdl_pos_adj, set bdl to 128 as Glenfly Gpus have hardware
limitation, need to increase hdac interrupt interval.
- In azx_first_init, enable polling mode for Glenfly Gpu. When the codec
complete the command, it sends interrupt and writes response entries to
memory, howerver, the write requests sometimes are not actually
synchronized to memory when driver handle hdac interrupt on Glenfly Gpus.
If the RIRB status is not updated in the interrupt handler,
azx_rirb_get_response keeps trying to recevie a response from rirb until
1s timeout. Enabling polling mode for Glenfly Gpu can fix the issue.
- In patch_gf_hdmi, set Glenlfy Gpu Codec's no_sticky_stream as it need
driver to do actual clean-ups for the linked codec when switch from one
codec to another.

Signed-off-by: jasontao <jasontao@glenfly.com>
Signed-off-by: Reaper Li <reaperlioc@glenfly.com>
Link: https://lore.kernel.org/r/20230426013059.4329-1-reaperlioc@glenfly.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
sound/pci/hda/patch_hdmi.c