[alsa-devel] Questions regarding ASoC
Hi,
I'm studying the transition of my ALSA Driver for TI WL1273 BT/FM into ASoC, and I have a question.
The ALSA driver already developped provided one sound card with 2 PCM devices: - PCM devices: BT (capture + playback) - FM (capture). These 2 devices are exclusive.
Q1- Within ASoC should I create 2 sounds card one for BT and one FM, or should I keep 1 sound card with 2 PCM devices? Q2- in my ALSA driver I have handled in the .open the exclusivity between the FM and BT, is there any way to handle this generically?
Thanks for your answers.
Selma.
--------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Hi,
On Tuesday 07 December 2010 13:05:28 ext Bensaid, Selma wrote:
Hi,
I'm studying the transition of my ALSA Driver for TI WL1273 BT/FM into ASoC, and I have a question.
Take a look at sound/soc/codecs/wl1273.c You might need the v4l2 and the MFD parts for the wl1273.
The ALSA driver already developped provided one sound card with 2 PCM devices: - PCM devices: BT (capture + playback)
- FM (capture).
These 2 devices are exclusive.
The driver in upstream at the moment handle only one DAI from the wl1273 (the shared BT/FM dai). wl1273 actually have 2 DAI, but the dedicated FM DAI support is not implemented. The codec driver can handle: BT playback/capture (full duplex) FM playback/capture (half duplex) Since it is using the same DAI, BT and FM (audio) can not be used at the same time.
Take a look at sound/soc/codecs/wl1273.c You might need the v4l2 and the MFD parts for the wl1273.
[Selma] do you plan to handle the audio path configuration for BT and FM within your driver. Since BT and FM are sharing the same DAI, some HCI commands are required to configure the audio path. We have identified with TI a different set of commands depending of the audio connection used on the platform: internal or external connection. Does the WL1273 intend to substitute some of the V4L2 interfaces like the volume? Since the BT/FM driver I'm working on provides only PCM devices, why do you think that I might need v4l2?
Thanks,
Selma.
--------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
The driver in upstream at the moment handle only one DAI from the wl1273 (the shared BT/FM dai). wl1273 actually have 2 DAI, but the dedicated FM DAI support is not implemented. The codec driver can handle: BT playback/capture (full duplex) FM playback/capture (half duplex)
[Selma] in function wl1273_startup (due to the mode WL1273_MODE_BT) sets a constraint min/max to the HW RATE equal to 8000. However the FM runs @48000, did I miss something?
Thanks, Selma. --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
participants (2)
-
Bensaid, Selma
-
Peter Ujfalusi