Lines Matching defs:cs35l41
20 static int lenovo_legion_no_acpi(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
23 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg;
26 cs35l41->index = id == 0x40 ? 0 : 1;
27 cs35l41->channel_index = 0;
28 cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
29 cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, 0, 0, 2);
30 hw_cfg->spk_pos = cs35l41->index;
52 static int hp_vision_acpi_fix(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
55 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg;
57 dev_info(cs35l41->dev, "Adding DSD properties for %s\n", cs35l41->acpi_subsystem_id);
59 cs35l41->index = id;
60 cs35l41->channel_index = 0;
61 cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 1, GPIOD_OUT_HIGH);
62 cs35l41->speaker_id = -ENOENT;
63 hw_cfg->spk_pos = cs35l41->index ? 1 : 0; // right:left
80 int (*add_prop)(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
91 int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
99 (cs35l41->acpi_subsystem_id &&
100 !strcmp(model->ssid, cs35l41->acpi_subsystem_id))))
101 return model->add_prop(cs35l41, physdev, id, hid);