Re: [PATCH v1 2/2] ASoC: tegra: Support WM8994 by machine driver
From: Svyatoslav Ryhel
Date: Tue Oct 13 2026 - 18:41:19 EST
вт, 13 жовт. 2026 р. о 21:52 Mark Brown <broonie@xxxxxxxxxx> пише:
>
> On Tue, Oct 13, 2026 at 09:32:26PM +0300, Svyatoslav Ryhel wrote:
> > Add Wolfson Microelectronics WM8994 codec support to the Tegra ASoC
> > machine driver. The WM8994 codec is found on devices like LG Optimus 2X
> > (P990/star) and Samsung Captivate Glide (SGH-i927).
>
> > +// SPDX-License-Identifier: GPL-2.0-only
> > +/*
> > + * tegra_wm8994.c - Tegra machine ASoC driver for boards using WM8994 codec.
>
> Please make the entire comment a C++ one so things look more
> intentional.
>
> > +static const struct snd_kcontrol_new tegra_wm8994_controls[] = {
> > + SOC_DAPM_PIN_SWITCH("Int Spk"),
> > + SOC_DAPM_PIN_SWITCH("Internal Mic 1"),
> > + SOC_DAPM_PIN_SWITCH("Internal Mic 2"),
> > + SOC_DAPM_PIN_SWITCH("Mic Jack"),
> > + SOC_DAPM_PIN_SWITCH("Line Out"),
> > + SOC_DAPM_PIN_SWITCH("FM Radio"),
> > +};
>
> There's no Line Out or FM Radio widgets, you should get errors during
> probe.
These codec targets. LINEOUT(1P/1N/2P/2N) to Line Out and IN1LP/RP are
used by LG Optimus 2X P990 (star) for FM Radio.