From: Lucas Tanure <tanureal@opensource.cirrus.com>
To: Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
"Jaroslav Kysela" <perex@perex.cz>, Len Brown <lenb@kernel.org>,
David Rhodes <david.rhodes@cirrus.com>,
Liam Girdwood <lgirdwood@gmail.com>,
"Rafael J . Wysocki" <rafael@kernel.org>
Cc: <alsa-devel@alsa-project.org>, <linux-acpi@vger.kernel.org>,
<patches@opensource.cirrus.com>, <linux-kernel@vger.kernel.org>,
Lucas Tanure <tanureal@opensource.cirrus.com>
Subject: [RFC PATCH v2 0/3] Add support for Legion 7 16ACHg6 laptop
Date: Wed, 20 Oct 2021 09:59:41 +0100 [thread overview]
Message-ID: <20211020085944.17577-1-tanureal@opensource.cirrus.com> (raw)
Hi,
I would like to get some guidance about this solution to
support the 16ACHg6 laptop.
Hardware:
- The 16ACHg6 laptop has two CS35L41 amplifiers, connected
to Realtek ALC287 by an I2S bus and by and direct I2C to the CPU.
- The ALC287 codec is connected to the CPU by an HDA bus.
- The CS35L41 has a DSP which will require firmware to be loaded.
Architecture:
- To load the firmware for CS35L41, this solution will require
the wm_adsp library, which requires regmap, header definitions and
register tables.
- The HDA machine driver will find the registered ASoC by its
dai name.
- To minimize the duplication of the code, the HDA will call
snd_soc_dai_ops from the ASoC driver.
Notes:
- This is a work in progress, so the code is not functional, its
only intent is to demonstrate the overall solution
Changes from V1:
- Split into multiple patches, separating ACPI, ASoC and HDA patches
- Removed CS35L41 exported functions, moved code to snd_soc_dai_ops
- Patch realtek uses dai ops functions
Lucas Tanure (3):
sound: cs35l41: Allow HDA systems to use CS35l41 ASoC driver
ALSA: hda/realtek: Add support for Legion 7 16ACHg6 laptop Speakers
ACPI / scan: Create platform device for INT3515 ACPI nodes
drivers/acpi/scan.c | 1 +
drivers/platform/x86/i2c-multi-instantiate.c | 7 +
include/sound/cs35l41.h | 1 +
sound/pci/hda/patch_realtek.c | 109 ++++++++++++++-
sound/soc/codecs/cs35l41.c | 139 +++++++++++++++++--
sound/soc/codecs/cs35l41.h | 1 +
6 files changed, 249 insertions(+), 9 deletions(-)
--
2.33.1
next reply other threads:[~2021-10-20 9:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-20 8:59 Lucas Tanure [this message]
2021-10-20 8:59 ` [RFC PATCH v2 1/3] sound: cs35l41: Allow HDA systems to use CS35l41 ASoC driver Lucas Tanure
2021-10-20 12:30 ` Mark Brown
2021-10-20 8:59 ` [RFC PATCH v2 2/3] ALSA: hda/realtek: Add support for Legion 7 16ACHg6 laptop Speakers Lucas Tanure
2021-10-20 9:17 ` Takashi Iwai
2021-10-20 8:59 ` [RFC PATCH v2 3/3] ACPI / scan: Create platform device for INT3515 ACPI nodes Lucas Tanure
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211020085944.17577-1-tanureal@opensource.cirrus.com \
--to=tanureal@opensource.cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=david.rhodes@cirrus.com \
--cc=lenb@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=rafael@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).