]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: hda: hda_component: Introduce component parent structure
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 17 Jun 2024 15:41:02 +0000 (16:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2024 09:58:44 +0000 (11:58 +0200)
commit960ccf6eafacaa4fc6b244fb91e736113c3fb715
tree81652ddb19689a1638d19ae8c3d3c117a54fc1ea
parentd85002b5d1f464157ff7d0099234d4626aa6cbc2
ALSA: hda: hda_component: Introduce component parent structure

In preparation for moving duplicated members from the hda_component
structure introduce a parent structure that wraps the array of
components. This also allows us to confine the knowledge of the maximum
number of entries to the hda_component files and eliminate passing that
redundant information around and making direct accesses to the array.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/20240617154105.108635-2-simont@opensource.cirrus.com
sound/pci/hda/hda_component.c
sound/pci/hda/hda_component.h
sound/pci/hda/patch_realtek.c