linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Best representation for TDM devices
@ 2019-07-25 13:01 Maxime Ripard
  2019-07-25 17:44 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Maxime Ripard @ 2019-07-25 13:01 UTC (permalink / raw)
  To: alsa-devel
  Cc: Alexandre Belloni, Takashi Iwai, Liam Girdwood, Chen-Yu Tsai,
	Mark Brown, Thomas Petazzoni, Jaroslav Kysela, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 1084 bytes --]

Hi,

I'm currently working on a device that has two Analog's ADAU7002
connected to an I2S/TDM Controller (sound/soc/sunxi/sun4i-i2s.c, with
some modifications), over the slots 1/2 and 3/4.

The capture itself is working fine, however I'm not quite sure about
the way to expose those streams to the userspace.

Since I have two codecs, I have two links (described through
simple-card) and thus two subdevices. However, the microphones
connected are really separate streams, so ideally (I guess?) we should
have 1 subdevice per microphone.

An alternative would be that we capture the whole 4 channels and use
dsnoop to demux them, but trying to use the device directly (using
arecord -D hw:0) results in the ioctl to change the number of channels
being rejected, I'm assuming because each codec only has 2 channels?

So I'm a bit lost at this point about how I should go and expose
this. I couldn't really find any similar setup either in the
kernel. Any preferred way of doing this?

Thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-08-20 14:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAMTEBE0mPY=44txPC2G+Cb=NqeH6Cqesar9Vkq0afXBv4dUWHQ@mail.gmail.com>
2019-08-01 11:48 ` Best representation for TDM devices Mark Brown
2019-08-14 10:53   ` Ali Burak Parım
2019-08-14 16:02     ` Mark Brown
2019-08-19  8:41       ` Maxime Ripard
2019-08-19 15:45         ` Mark Brown
2019-08-20 14:06           ` Maxime Ripard
2019-07-25 13:01 Maxime Ripard
2019-07-25 17:44 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).