[alsa-devel] : Question ASoC driver without Codec driver?
Hi,
I'm trying to find out if it's possible to implement an ASoC driver without a codec driver.
I'm implementing a ASoC driver for BT/FM WL1273, where the FM WL1273 control interface is based on V4L2 since since we use the Combined Interface Mode (The host controls both the BT and the FM Radio through the BT HCI host interface).
Thanks for your help.
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.
On Wed, Feb 23, 2011 at 09:29:41AM +0000, Bensaid, Selma wrote:
I'm trying to find out if it's possible to implement an ASoC driver without a codec driver.
Obviously, platform and CPU drivers have no CODEC dependencies.
I'm implementing a ASoC driver for BT/FM WL1273, where the FM WL1273 control interface is based on V4L2 since since we use the Combined Interface Mode (The host controls both the BT and the FM Radio through the BT HCI host interface).
You need to implement a CODEC driver for this but there's no reason for it to do anything except expose the capabilities of the device - there's several in tree examples you can look at. Remember that we still need to know how to configure the other drivers that talk to the chip, even if the chip itself is unconfigurable.
Hi,
On 02/23/11 11:29, ext Bensaid, Selma wrote:
Hi,
I'm trying to find out if it's possible to implement an ASoC driver without a codec driver.
I'm implementing a ASoC driver for BT/FM WL1273,
Well, probably you did noticed, that we already have driver for the WL1273 in upstream... As I recall you have sent several mails regarding to writing a new codec driver for the same chip.
where the FM WL1273 control interface is based on V4L2 since since we use the Combined Interface Mode (The host controls both the BT and the FM Radio through the BT HCI host interface).
It is true, that the current implementation relies on i2c interface, but.. AFAIK TI has the combined interface mode for this chip in the staging area. Recently there were a thread about the possibility of using that work, and offer the two interface for the wl1273 BT/FM control, so one can choose which to use. I'm not sure, of the BT driver for the wl1273 is in upstream.
What I propose is to: - Help TI to get the combined interface mode out from the staging - Work with TI, Matti, and BT guys to implement line discipline driver to be used by the BT, and the codec/BT/FM part of wl1273 - Work with TI, Matti, and BT guys, and convert/add support for the combined interface mode in the existing MFD/codec/V4L/BT driver.
Hello Selma,
On Thu, 2011-02-24 at 09:39 +0200, Peter Ujfalusi wrote:
Hi,
On 02/23/11 11:29, ext Bensaid, Selma wrote:
Hi,
I'm trying to find out if it's possible to implement an ASoC driver without a codec driver.
I'm implementing a ASoC driver for BT/FM WL1273,
Well, probably you did noticed, that we already have driver for the WL1273 in upstream... As I recall you have sent several mails regarding to writing a new codec driver for the same chip.
where the FM WL1273 control interface is based on V4L2 since since we use the Combined Interface Mode (The host controls both the BT and the FM Radio through the BT HCI host interface).
It is true, that the current implementation relies on i2c interface, but.. AFAIK TI has the combined interface mode for this chip in the staging area. Recently there were a thread about the possibility of using that work, and offer the two interface for the wl1273 BT/FM control, so one can choose which to use. I'm not sure, of the BT driver for the wl1273 is in upstream.
What I propose is to:
- Help TI to get the combined interface mode out from the staging
- Work with TI, Matti, and BT guys to implement line discipline driver
to be used by the BT, and the codec/BT/FM part of wl1273
- Work with TI, Matti, and BT guys, and convert/add support for the
combined interface mode in the existing MFD/codec/V4L/BT driver.
Have you taken a look at the existing wl1273 codec? Now the whole FM radio driver should be going into the 2.6.38 version of the kernel (rc6 still contains the old stuff). It should be fairly easy to add support for the UART control to the MFD driver (see the links below). And TI's dual transport might be used for the audio routing also in the case where the actual control is through I2C (but I'm not sure about the details).
The latest patch for the wl1273 codec: http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/2916... The wl1273 MFD driver that contains the IO functions: http://article.gmane.org/gmane.linux.alsa.devel/82235/match=
Cheers, Matti
participants (4)
-
Bensaid, Selma
-
Mark Brown
-
Matti J. Aaltonen
-
Peter Ujfalusi