All of lore.kernel.org
 help / color / mirror / Atom feed
* Codec without controls in device tree
@ 2022-02-21 15:05 Sascha Hauer
  2022-02-21 15:08 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2022-02-21 15:05 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown

Hi,

I have several i.MX8 boards here which have codecs connected to them
which are really just plane D/A converters without any control interface
like a pcm1754 or a pcm4104 in hardware mode. Currently we use the
simple-audio-card OF driver with custom codec code in sound/soc/codecs/.
The codec does nothing except specifying desired rates, channels and
formats.
Is this the way to go or is there some device tree solution to get rid
of the codec?

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Codec without controls in device tree
  2022-02-21 15:05 Codec without controls in device tree Sascha Hauer
@ 2022-02-21 15:08 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-02-21 15:08 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

On Mon, Feb 21, 2022 at 04:05:12PM +0100, Sascha Hauer wrote:

> I have several i.MX8 boards here which have codecs connected to them
> which are really just plane D/A converters without any control interface
> like a pcm1754 or a pcm4104 in hardware mode. Currently we use the
> simple-audio-card OF driver with custom codec code in sound/soc/codecs/.
> The codec does nothing except specifying desired rates, channels and
> formats.
> Is this the way to go or is there some device tree solution to get rid
> of the codec?

That's the right way to go - the CODEC will have some constraints on
what it supports that need to be advertised, sometimes there's GPIOs for
a control interface and someone might want to hook up a clock or some
regulators.  There's several existing drivers like this.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-22  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 15:05 Codec without controls in device tree Sascha Hauer
2022-02-21 15:08 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.