Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC driver for the TSE-850
@ 2016-11-08 16:20 Peter Rosin
  2016-11-08 16:20 ` [PATCH 1/2] dt-bindings: sound: document axentia,tse850-pcm5142 bindings Peter Rosin
  2016-11-08 16:20 ` [PATCH 2/2] ASoC: axentia: tse850: add ASoC driver for the Axentia TSE-850 Peter Rosin
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Rosin @ 2016-11-08 16:20 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mark Rutland, devicetree, alsa-devel, Takashi Iwai, Liam Girdwood,
	Rob Herring, Mark Brown, Peter Rosin

Hi!

The TSE-850 is an FM Transmitter Station Equipment, designed to generate
baseband signals for FM, mainly the DARC subcarrier, but other signals
are also possible.

This adds a driver for the "sound" bits of the device (quoted since it
is normally not used for normal sound output, but that works too of
course). 

I have not provided a patch to add axentia as a devicetree vendor prefix,
since such a patch is already pending in an IIO series [1] that seems
close to being accepted.

However, there are a couple of points that I'm not 100% satisfied with
for this driver.

First, I do not know how to describe the relays that control if the
IN1/IN2 signals are directly routed towards OUT1/OUT2 or if they are
routed to the "add" switch. The dapm routing treats this as if the
IN1/IN2 signals are always routed to both the "add" switch and to
the muxes feeding OUT1/OUT2. This is fine with me since nothing is
powered in those sections anyway, so what dapm thinks does not really
matter. But it is a wart all the same.

Second, there's my comment in tse850_put_mix() when the "add" switch
is updated. I believe this update should really happen as a side
effect of the call to snd_soc_dapm_mixer_update_power(), so that it
happens at the right point compared to other stuff that is powered.
But I do not know how to hook that up and instead I flip the switch
before the call since it doesn't really matter. I.e., any noise
resulting from this badness is negligeble in practice.

Cheers,
Peter

[1] http://www.spinics.net/lists/devicetree/thrd3.html#147258

Peter Rosin (2):
  dt-bindings: sound: document axentia,tse850-pcm5142 bindings
  ASoC: axentia: tse850: add ASoC driver for the Axentia TSE-850

 .../bindings/sound/axentia,tse850-pcm5142.txt      |  88 ++++
 MAINTAINERS                                        |   7 +
 sound/soc/Kconfig                                  |   1 +
 sound/soc/Makefile                                 |   1 +
 sound/soc/axentia/Kconfig                          |  10 +
 sound/soc/axentia/Makefile                         |   3 +
 sound/soc/axentia/tse850-pcm5142.c                 | 504 +++++++++++++++++++++
 7 files changed, 614 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt
 create mode 100644 sound/soc/axentia/Kconfig
 create mode 100644 sound/soc/axentia/Makefile
 create mode 100644 sound/soc/axentia/tse850-pcm5142.c

-- 
2.1.4

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

end of thread, other threads:[~2016-11-09 18:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08 16:20 [PATCH 0/2] ASoC driver for the TSE-850 Peter Rosin
2016-11-08 16:20 ` [PATCH 1/2] dt-bindings: sound: document axentia,tse850-pcm5142 bindings Peter Rosin
2016-11-09 13:25   ` Mark Brown
2016-11-08 16:20 ` [PATCH 2/2] ASoC: axentia: tse850: add ASoC driver for the Axentia TSE-850 Peter Rosin
2016-11-09 13:38   ` Mark Brown
     [not found]     ` <20161109133852.nvlyiqow2xpbc6ga-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-11-09 16:27       ` Peter Rosin
2016-11-09 18:54         ` Peter Rosin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox