alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* : Question ASoC driver without Codec driver?
@ 2011-02-23  9:29 Bensaid, Selma
  2011-02-23 20:08 ` Mark Brown
  2011-02-24  7:39 ` Peter Ujfalusi
  0 siblings, 2 replies; 4+ messages in thread
From: Bensaid, Selma @ 2011-02-23  9:29 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org; +Cc: Koul, Vinod, Mark Brown, Benavoli, PatrickX

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.

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

* Re: : Question ASoC driver without Codec driver?
  2011-02-23  9:29 : Question ASoC driver without Codec driver? Bensaid, Selma
@ 2011-02-23 20:08 ` Mark Brown
  2011-02-24  7:39 ` Peter Ujfalusi
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2011-02-23 20:08 UTC (permalink / raw)
  To: Bensaid, Selma
  Cc: Koul, Vinod, alsa-devel@alsa-project.org, Benavoli, PatrickX

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.

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

* Re: : Question ASoC driver without Codec driver?
  2011-02-23  9:29 : Question ASoC driver without Codec driver? Bensaid, Selma
  2011-02-23 20:08 ` Mark Brown
@ 2011-02-24  7:39 ` Peter Ujfalusi
  2011-02-24 10:46   ` Matti J. Aaltonen
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Ujfalusi @ 2011-02-24  7:39 UTC (permalink / raw)
  To: ext Bensaid, Selma
  Cc: Koul, Vinod, alsa-devel@alsa-project.org, Mark Brown,
	Aaltonen Matti Johannes, Benavoli, PatrickX

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.

-- 
Péter

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

* Re: : Question ASoC driver without Codec driver?
  2011-02-24  7:39 ` Peter Ujfalusi
@ 2011-02-24 10:46   ` Matti J. Aaltonen
  0 siblings, 0 replies; 4+ messages in thread
From: Matti J. Aaltonen @ 2011-02-24 10:46 UTC (permalink / raw)
  To: ext Bensaid, Selma
  Cc: Koul, Vinod, alsa-devel@alsa-project.org, Mark Brown,
	Peter Ujfalusi, Benavoli, PatrickX

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/29165/match=
The wl1273 MFD driver that contains the IO functions:
http://article.gmane.org/gmane.linux.alsa.devel/82235/match=

Cheers, 
Matti

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

end of thread, other threads:[~2011-02-24 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23  9:29 : Question ASoC driver without Codec driver? Bensaid, Selma
2011-02-23 20:08 ` Mark Brown
2011-02-24  7:39 ` Peter Ujfalusi
2011-02-24 10:46   ` Matti J. Aaltonen

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).