public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: David Douard <david.douard@sdfa3.org>, alsa-devel@alsa-project.org
Cc: Mark Brown <broonie@kernel.org>
Subject: Re: [alsa-devel] [PATCH] ASoC: codecs: make PCM5102A codec selectable
Date: Mon, 24 Feb 2020 10:13:58 -0600	[thread overview]
Message-ID: <7ef7d0a0-edd1-42b6-c4cc-1399e82fcdc0@linux.intel.com> (raw)
In-Reply-To: <01adc4dc-e83e-c9a7-d4ab-71fa1aa30ee0@sdfa3.org>


>>> The PCM5102A codec entry in the Kconfig file lacks a title/description
>>> to make it selectable in menuconfig (since it has no dependent i2s/spi
>>> sub-modules like e.g. the pcm512x one).
>>
>> For my education, who uses this codec? it's not selected by any machine
>> driver?
> 
> This codec is needed to drive PCM5102A based i2s DAC. It can be found in
> several low cost I2S DAC break boards (I have a Polyvection one for
> example) and is generally used on SBC like the RPi, Odroid or Orange Pi.
> 
> On such devices, the driver will be selected via a proper declaration of
> the device in the device tree (e.g. in a custom dts file). See for
> example this issue I submitted to the Armbian project (together with a
> PR that patches this very same issue I described in this thread):
> 
>    https://github.com/armbian/build/issues/1798

Right, but what I was referring to is what is also suggested in that 
link, codecs are typically selected from a machine driver Kconfig, i.e.

  config SND_SUN4I_I2S
  	tristate "Allwinner A10 I2S Support"
+	depends on OF
  	select SND_SOC_GENERIC_DMAENGINE_PCM
  	select REGMAP_MMIO
+	select SND_SOC_PCM5102A

Your patch provides a means for a user to force the codec driver to be 
compiled in, but it doesn't help select the minimal config needed on a 
given platform. Anyways no real objections so

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

      reply	other threads:[~2020-02-24 17:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14  0:25 [alsa-devel] [PATCH] ASoC: codecs: make PCM5102A codec selectable David Douard
2020-02-18 16:04 ` Pierre-Louis Bossart
2020-02-23 16:10   ` David Douard
2020-02-24 16:13     ` Pierre-Louis Bossart [this message]

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=7ef7d0a0-edd1-42b6-c4cc-1399e82fcdc0@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=david.douard@sdfa3.org \
    /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