Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda: cs35l41: Save codec object inside component struct

This is required for ALSA control support.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220630002335.366545-4-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Stefan Binding and committed by
Takashi Iwai
22d5cbd2 e414b05e

+4
+1
sound/pci/hda/cs35l41_hda.c
··· 117 117 return -EBUSY; 118 118 119 119 comps->dev = dev; 120 + cs35l41->codec = comps->codec; 120 121 strscpy(comps->name, dev_name(dev), sizeof(comps->name)); 121 122 comps->playback_hook = cs35l41_hda_playback_hook; 122 123
+1
sound/pci/hda/cs35l41_hda.h
··· 32 32 struct regmap *regmap; 33 33 struct gpio_desc *reset_gpio; 34 34 struct cs35l41_hw_cfg hw_cfg; 35 + struct hda_codec *codec; 35 36 36 37 int irq; 37 38 int index;
+1
sound/pci/hda/hda_component.h
··· 14 14 struct hda_component { 15 15 struct device *dev; 16 16 char name[HDA_MAX_NAME_SIZE]; 17 + struct hda_codec *codec; 17 18 void (*playback_hook)(struct device *dev, int action); 18 19 };
+1
sound/pci/hda/patch_realtek.c
··· 6654 6654 "%s-%s:00-cs35l41-hda.%d", bus, hid, i); 6655 6655 if (!name) 6656 6656 return; 6657 + spec->comps[i].codec = cdc; 6657 6658 component_match_add(dev, &spec->match, component_compare_dev_name, name); 6658 6659 } 6659 6660 ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);