From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: alsa-devel@alsa-project.org, upstream@semihalf.com,
kai.vehmanen@linux.intel.com, harshapriya.n@intel.com,
linux-kernel@vger.kernel.org, rad@semihalf.com,
pierre-louis.bossart@linux.intel.com, tiwai@suse.com,
hdegoede@redhat.com, broonie@kernel.org,
amadeuszx.slawinski@linux.intel.com, cujomalainey@chromium.org,
lma@semihalf.com
Subject: Re: [PATCH v2 02/14] ASoC: codecs: Add HD-Audio codec driver
Date: Tue, 5 Jul 2022 14:01:50 +0200 [thread overview]
Message-ID: <f0deca9d-3089-a84e-17bc-fe12587771a8@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2207051218200.513966@ramsan.of.borg>
On 2022-07-05 12:20 PM, Geert Uytterhoeven wrote:
> Hi Cezary,
>
> On Wed, 11 May 2022, Cezary Rojewski wrote:
...
>>
>> Relation with hdac_hda:
>>
>> Addition of parallel solution is motivated by behavioral differences
>> between hdac_hda.c and its legacy equivalent found in sound/pci/hda
>> e.g.: lack of dynamic, based on codec capabilities, resource allocation
>> and high cost of removing such differences on actively used targets.
>> Major goal of codec driver presented here is to follow HD-Audio legacy
>> behavior in 1:1 fashion by becoming a wrapper. Doing so increases code
>> coverage of the legacy code and reduces the maintenance cost for both
>> solutions.
>>
>> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
>
> Thanks for your patch, which is now commit b5df2a7dca1cc6c6 ("ASoC:
> codecs: Add HD-Audio codec driver") in sound-asoc/for-next.
>
>> --- a/sound/soc/codecs/Kconfig
>> +++ b/sound/soc/codecs/Kconfig
>> @@ -937,6 +937,16 @@ config SND_SOC_HDAC_HDA
>> tristate
>> select SND_HDA
>>
>> +config SND_SOC_HDA
>> + tristate "HD-Audio codec driver"
>> + select SND_HDA_EXT_CORE
>> + select SND_HDA
>
> I am wondering if this needs a platform dependency?
> Or perhaps this symbol should be made invisible, as it is selected by
> SND_SOC_INTEL_AVS_MACH_HDAUDIO? Are there any other users?
Your feedback is much appreciated!
So, this codec-driver - HDAudio codec driver to be strict - is _generic_
i.e. works with any HDAudio codec type, be it Cirrus, Maxim, Conexant or
anything else.
It makes heavy use of HDAudio library found in sound/hda/ and re-uses a
lot of non-DSP HDAudio related code found in sound/pci/hda. It's
basically a wrapper for logic present in ALSA (sound/) so ASoC
(sound/soc/) users can have first class HDAudio codec support without us
duplicating the entire implementation.
Right now the only user is avs-driver found in sound/soc/intel/avs. By
design, any HDAudio bus driver in ASoC framework can make use of it
though. Because of that, we decided not to couple avs-driver and this
HDAudio codec driver tightly.
> Gr{oetje,eeting}s,
This made my day :) it's wonderful!
next prev parent reply other threads:[~2022-07-05 12:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 16:23 [PATCH v2 00/14] ASoC: Intel: avs: Machine boards and HDA codec support Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 01/14] ALSA: Add snd_pcm_direction_name() helper Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 02/14] ASoC: codecs: Add HD-Audio codec driver Cezary Rojewski
2022-07-05 10:20 ` Geert Uytterhoeven
2022-07-05 12:01 ` Cezary Rojewski [this message]
2022-05-11 16:23 ` [PATCH v2 03/14] ASoC: Intel: avs: Add HDAudio machine board Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 04/14] ASoC: Intel: avs: Add DMIC " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 05/14] ASoC: Intel: avs: Add I2S-test " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 06/14] ASoC: Intel: avs: Add rt274 " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 07/14] ASoC: Intel: avs: Add rt286 " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 08/14] ASoC: Intel: avs: Add rt298 " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 09/14] ASoC: Intel: avs: Add rt5682 " Cezary Rojewski
2022-05-11 16:23 ` [PATCH v2 10/14] ASoC: Intel: avs: Add nau8825 " Cezary Rojewski
2022-05-11 16:24 ` [PATCH v2 11/14] ASoC: Intel: avs: Add ssm4567 " Cezary Rojewski
2022-05-11 16:24 ` [PATCH v2 12/14] ASoC: Intel: avs: Add max98357a " Cezary Rojewski
2022-05-11 16:24 ` [PATCH v2 13/14] ASoC: Intel: avs: Add max98373 " Cezary Rojewski
2022-05-11 16:24 ` [PATCH v2 14/14] ASoC: Intel: avs: Add da7219 " Cezary Rojewski
2022-05-26 10:14 ` [PATCH v2 00/14] ASoC: Intel: avs: Machine boards and HDA codec support Cezary Rojewski
2022-05-26 13:59 ` Mark Brown
2022-06-07 10:55 ` Mark Brown
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=f0deca9d-3089-a84e-17bc-fe12587771a8@intel.com \
--to=cezary.rojewski@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=broonie@kernel.org \
--cc=cujomalainey@chromium.org \
--cc=geert@linux-m68k.org \
--cc=harshapriya.n@intel.com \
--cc=hdegoede@redhat.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lma@semihalf.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=rad@semihalf.com \
--cc=tiwai@suse.com \
--cc=upstream@semihalf.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