diff options
author | Stefan Binding <sbinding@opensource.cirrus.com> | 2023-08-15 18:10:33 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-08-15 20:51:19 +0200 |
commit | ef4ba63f12b03532378395a8611f2f6e22ece67b (patch) | |
tree | 8bf591a07e41dead5dc862e5a997a6c643335ddc /sound/pci/hda/cs35l41_hda_property.h | |
parent | ALSA: dice: add stream format parameters for Weiss devices (diff) | |
download | linux-ef4ba63f12b03532378395a8611f2f6e22ece67b.tar.xz linux-ef4ba63f12b03532378395a8611f2f6e22ece67b.zip |
ALSA: hda: cs35l41: Support systems with missing _DSD properties
Some systems using CS35L41 with HDA were released without some
required _DSD properties in ACPI. To support these special cases,
add an api to configure the correct properties for systems with
this issue.
This initial commit moves the no _DSD support for Lenovo
Legion Laptops (CLSA0100, CLSA0101) into a new framework which
can be extended to support additional laptops in the future.
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230815161033.3519-1-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r-- | sound/pci/hda/cs35l41_hda_property.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sound/pci/hda/cs35l41_hda_property.h b/sound/pci/hda/cs35l41_hda_property.h new file mode 100644 index 000000000000..fd834042e2fd --- /dev/null +++ b/sound/pci/hda/cs35l41_hda_property.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * CS35L41 ALSA HDA Property driver + * + * Copyright 2023 Cirrus Logic, Inc. + * + * Author: Stefan Binding <sbinding@opensource.cirrus.com> + */ + +#ifndef CS35L41_HDA_PROP_H +#define CS35L41_HDA_PROP_H + +#include <linux/device.h> +#include "cs35l41_hda.h" + +int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physdev, int id, + const char *hid); +#endif /* CS35L41_HDA_PROP_H */ |