All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bensaid, Selma" <selma.bensaid@intel.com>
To: "matti.j.aaltonen@nokia.com" <matti.j.aaltonen@nokia.com>,
	Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: ext Mauro Carvalho Chehab <mchehab@redhat.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"sameo@linux.intel.com" <sameo@linux.intel.com>,
	ext Mark Brown <broonie@opensource.wolfsonmicro.com>,
	"hverkuil@xs4all.nl" <hverkuil@xs4all.nl>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: RE: [alsa-devel] WL1273 FM Radio driver...
Date: Thu, 10 Feb 2011 09:35:38 +0000	[thread overview]
Message-ID: <2A84145621092446B6659B8A0F28E26F4703CC3968@irsmsx501.ger.corp.intel.com> (raw)
In-Reply-To: <1297236165.15320.70.camel@masi.mnp.nokia.com>

> On Tue, 2011-02-08 at 13:02 +0200, Peter Ujfalusi wrote:
> > > For both configuration we have a set of HCI commands to configure the FM
> audio
> > > path and one of my concerns is to know if the wl1273_codec should handle
> the audio path configuration
> > > and the switch between FM and BT SCO?
> >
> > It would be better if the codec could handle the configuration,
> > depending on which DAI is in use. If we can send HCI commands from
> > kernel, I think that would be the cleanest way.
> 
> Yes, I would have done just that - and we talked a lot about it locally
> - if I had known how to do it. I started to work on it and also talked
> to some BT people but it didn't seem feasible at the time. Advice
> welcome of course...
> 
> Cheers,
> Matti
> 
Hi,
Below the set of HCI commands that we have identified to configure the FM and BT SCO audio paths:
-	External Audio Connection
	o	START BT SCO Connection
		# BT audio Path PCM  &  FM audio Path I2S
		> hcitool cmd 0x3F 0X195 FF FF FF FF FF FF FF FF 01 02 FF 00 00 00 00 
		# BT AUDIO Codec Configuration: MASTER
		> hcitool cmd 0x3F 0X106 00 03 00 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

	o	STOP BT SCO Connection
		# BT AUDIO Codec Configuration: SLAVE
		> hcitool cmd 0x3F 0X106 00 03 01 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

 
-	Internal Audio Connection
	o	START BT SCO Connection
		# BT audio Path PCM 
		# FM audio Path None
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 01 00 FF 00 00 00 00 
		# BT AUDIO Codec Configuration: MASTER
		> hcitool cmd 0x3F 0X106 00 03 00 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

	o	STOP BT SCO Connection
		# BT audio Path None & FM audio Path None
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 00 00 FF 00 00 00 00 

	o	FM Audio Path configuration
		# BT audio Path None  & FM audio Path PCM
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 00 01 FF 00 00 00 00
 
Please note that the BT SCO Codec settings are platform specific.
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.

WARNING: multiple messages have this Message-ID (diff)
From: "Bensaid, Selma" <selma.bensaid@intel.com>
To: "matti.j.aaltonen@nokia.com" <matti.j.aaltonen@nokia.com>,
	Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	ext Mauro Carvalho Chehab <mchehab@redhat.com>,
	ext Mark Brown <broonie@opensource.wolfsonmicro.com>,
	"hverkuil@xs4all.nl" <hverkuil@xs4all.nl>,
	"sameo@linux.intel.com" <sameo@linux.intel.com>,
	"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: WL1273 FM Radio driver...
Date: Thu, 10 Feb 2011 09:35:38 +0000	[thread overview]
Message-ID: <2A84145621092446B6659B8A0F28E26F4703CC3968@irsmsx501.ger.corp.intel.com> (raw)
In-Reply-To: <1297236165.15320.70.camel@masi.mnp.nokia.com>

> On Tue, 2011-02-08 at 13:02 +0200, Peter Ujfalusi wrote:
> > > For both configuration we have a set of HCI commands to configure the FM
> audio
> > > path and one of my concerns is to know if the wl1273_codec should handle
> the audio path configuration
> > > and the switch between FM and BT SCO?
> >
> > It would be better if the codec could handle the configuration,
> > depending on which DAI is in use. If we can send HCI commands from
> > kernel, I think that would be the cleanest way.
> 
> Yes, I would have done just that - and we talked a lot about it locally
> - if I had known how to do it. I started to work on it and also talked
> to some BT people but it didn't seem feasible at the time. Advice
> welcome of course...
> 
> Cheers,
> Matti
> 
Hi,
Below the set of HCI commands that we have identified to configure the FM and BT SCO audio paths:
-	External Audio Connection
	o	START BT SCO Connection
		# BT audio Path PCM  &  FM audio Path I2S
		> hcitool cmd 0x3F 0X195 FF FF FF FF FF FF FF FF 01 02 FF 00 00 00 00 
		# BT AUDIO Codec Configuration: MASTER
		> hcitool cmd 0x3F 0X106 00 03 00 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

	o	STOP BT SCO Connection
		# BT AUDIO Codec Configuration: SLAVE
		> hcitool cmd 0x3F 0X106 00 03 01 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

 
-	Internal Audio Connection
	o	START BT SCO Connection
		# BT audio Path PCM 
		# FM audio Path None
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 01 00 FF 00 00 00 00 
		# BT AUDIO Codec Configuration: MASTER
		> hcitool cmd 0x3F 0X106 00 03 00 40 1F 00 00 01 00 00 00 00 10 00 02 00 00 10 00 02 00 01 00 00 00 00 00 00 00 00 00 00

	o	STOP BT SCO Connection
		# BT audio Path None & FM audio Path None
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 00 00 FF 00 00 00 00 

	o	FM Audio Path configuration
		# BT audio Path None  & FM audio Path PCM
		> hcitool cmd 0x3F 0X195  FF FF FF FF FF FF FF FF 00 01 FF 00 00 00 00
 
Please note that the BT SCO Codec settings are platform specific.
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.

  reply	other threads:[~2011-02-10  9:36 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07 10:52 WL1273 FM Radio driver Matti J. Aaltonen
2011-02-07 12:00 ` Mauro Carvalho Chehab
2011-02-07 12:02   ` Mark Brown
2011-02-07 12:48     ` Mauro Carvalho Chehab
2011-02-07 13:10       ` Mark Brown
2011-02-07 13:48         ` Mauro Carvalho Chehab
2011-02-07 13:52           ` Mark Brown
2011-02-07 14:17             ` Matti J. Aaltonen
2011-02-07 14:17               ` Matti J. Aaltonen
2011-02-07 16:00               ` Mauro Carvalho Chehab
2011-02-08  9:15                 ` [alsa-devel] " Peter Ujfalusi
2011-02-08  9:15                   ` Peter Ujfalusi
2011-02-08 10:09                   ` [alsa-devel] " Bensaid, Selma
2011-02-08 11:02                     ` Peter Ujfalusi
2011-02-08 11:02                       ` Peter Ujfalusi
2011-02-08 13:47                       ` [alsa-devel] " Bensaid, Selma
2011-02-09  7:14                         ` Matti J. Aaltonen
2011-02-09  7:14                           ` Matti J. Aaltonen
2011-02-09  7:22                       ` [alsa-devel] " Matti J. Aaltonen
2011-02-09  7:22                         ` Matti J. Aaltonen
2011-02-10  9:35                         ` Bensaid, Selma [this message]
2011-02-10  9:35                           ` Bensaid, Selma
2011-02-10 10:03                           ` [alsa-devel] " Matti J. Aaltonen
2011-02-10 10:03                             ` Matti J. Aaltonen
2011-02-10 11:02                             ` [alsa-devel] " Mark Brown
2011-02-10 12:10                               ` Matti J. Aaltonen
2011-02-10 12:10                                 ` Matti J. Aaltonen
2011-02-10 12:28                                 ` [alsa-devel] " Mark Brown
2011-02-10 12:28                                   ` Mark Brown
2011-02-10 12:57                                   ` [alsa-devel] " Matti J. Aaltonen
2011-02-10 12:57                                     ` Matti J. Aaltonen
2011-02-10 13:23                                     ` [alsa-devel] " Mark Brown
2011-02-09  7:27                   ` Matti J. Aaltonen
2011-02-09  7:27                     ` Matti J. Aaltonen
2011-02-09  8:47                 ` Matti J. Aaltonen
2011-02-09  8:47                   ` Matti J. Aaltonen
2011-02-07 14:09           ` Matti J. Aaltonen
2011-02-07 14:09             ` Matti J. Aaltonen
2011-02-07 15:57             ` Mauro Carvalho Chehab
2011-02-07 16:01               ` Mark Brown
2011-02-07 13:27       ` Matti J. Aaltonen
2011-02-07 13:27         ` Matti J. Aaltonen
2011-02-07 13:28         ` Mark Brown
2011-02-07 13:34           ` Matti J. Aaltonen
2011-02-07 13:34             ` Matti J. Aaltonen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2A84145621092446B6659B8A0F28E26F4703CC3968@irsmsx501.ger.corp.intel.com \
    --to=selma.bensaid@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=matti.j.aaltonen@nokia.com \
    --cc=mchehab@redhat.com \
    --cc=peter.ujfalusi@nokia.com \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.