All of lore.kernel.org
 help / color / mirror / Atom feed
* about the alsa i2c interface
@ 2005-06-09  3:09 Tehn-Yit Chin
  2005-06-09  6:47 ` Lee Revell
  0 siblings, 1 reply; 5+ messages in thread
From: Tehn-Yit Chin @ 2005-06-09  3:09 UTC (permalink / raw)
  To: alsa-devel

Hi,

We are trying to provide support for the CS43L43 device under the ALSA
architecture on an embedded platform.

During my early investigation, I noticed that ALSA has its own i2c code.
What is this required, and why doesn't it use the mainline i2c support?
On our platform, there are one other devices on the i2c bus, so I would
like to use the mainline i2c code.

Any pointers would be appreciated.

Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.


-------------------------------------------------------------
Tehn Yit Chin     Software Engineer
-------------------------------------------------------------
Grey Innovation Pty. Ltd.           Dir +613 9692 6909
42 Charles Street                   Ph  +613 9692 6999
Prahran                             Fx  +613 9692 6998
Victoria 3181                       Mail: PO Box 452
Australia                           Prahran 3181

mailto:tehn-yit.chin@greyinnovation.com
http://www.greyinnovation.com
-------------------------------------------------------------
This e-mail and any attachments to it is confidential and is 
for the use only of the intended recipient. It may contain 
copyright material of Grey Innovation Pty Ltd or any of its 
related entities or of third parties. If you are not the 
intended recipient, please notify the sender immediately by
return e-mail, delete the email and any attachments, and do
not read, copy, print, retransmit store or act in reliance
on the contents. Any views expressed are those of the
individual sender only, unless expressly stated to be those 
of Grey Innovation Pty Ltd. Grey Innovation Pty Ltd does not 
guarantee the integrity of the contents, or that it is free 
from errors, viruses or interference.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 

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

* Re: about the alsa i2c interface
  2005-06-09  3:09 about the alsa i2c interface Tehn-Yit Chin
@ 2005-06-09  6:47 ` Lee Revell
  2005-06-09  7:15   ` Tomko
  0 siblings, 1 reply; 5+ messages in thread
From: Lee Revell @ 2005-06-09  6:47 UTC (permalink / raw)
  To: Tehn-Yit Chin; +Cc: alsa-devel

On Thu, 2005-06-09 at 13:09 +1000, Tehn-Yit Chin wrote:
> Hi,
> 
> We are trying to provide support for the CS43L43 device under the ALSA
> architecture on an embedded platform.
> 
> During my early investigation, I noticed that ALSA has its own i2c code.
> What is this required, and why doesn't it use the mainline i2c support?
> On our platform, there are one other devices on the i2c bus, so I would
> like to use the mainline i2c code.

This is explained in "Writing an ALSA Driver"  (you did read it,
right?).  Basically the kernel's i2c layer is overly complex, and ALSA
only needs a small subset of it, so ALSA implements its own minimal i2c
layer.

Lee



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

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

* Re: about the alsa i2c interface
  2005-06-09  6:47 ` Lee Revell
@ 2005-06-09  7:15   ` Tomko
  2005-06-09  8:59     ` Jaroslav Kysela
  0 siblings, 1 reply; 5+ messages in thread
From: Tomko @ 2005-06-09  7:15 UTC (permalink / raw)
  To: Lee Revell, alsa-devel

Lee Revell wrote:

>On Thu, 2005-06-09 at 13:09 +1000, Tehn-Yit Chin wrote:
>  
>
>>Hi,
>>
>>We are trying to provide support for the CS43L43 device under the ALSA
>>architecture on an embedded platform.
>>
>>During my early investigation, I noticed that ALSA has its own i2c code.
>>What is this required, and why doesn't it use the mainline i2c support?
>>On our platform, there are one other devices on the i2c bus, so I would
>>like to use the mainline i2c code.
>>    
>>
>
>This is explained in "Writing an ALSA Driver"  (you did read it,
>right?).  Basically the kernel's i2c layer is overly complex, and ALSA
>only needs a small subset of it, so ALSA implements its own minimal i2c
>layer.
>
>  
>
So will this cause losing control on the I2c device ? for example i have 
4 device on the i2c bus , 3 of them are under the kernel's i2c which the 
the sequence control that they can't access the bus at the same time and 
one of them are under alsa's i2c , what will happen if the alsa's i2c 
device and the kernel's i2c device access the bus together ?

Regards,
TOM


>Lee
>-------------------------------------------------------
>This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
>a projector? How fast can you ride your desk chair down the office luge track?
>If you want to score the big prize, get to know the little guy.  
>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
>_______________________________________________
>Alsa-devel mailing list
>Alsa-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/alsa-devel
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

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

* Re: about the alsa i2c interface
  2005-06-09  7:15   ` Tomko
@ 2005-06-09  8:59     ` Jaroslav Kysela
  0 siblings, 0 replies; 5+ messages in thread
From: Jaroslav Kysela @ 2005-06-09  8:59 UTC (permalink / raw)
  To: Tomko; +Cc: Lee Revell, alsa-devel

On Thu, 9 Jun 2005, Tomko wrote:

> Lee Revell wrote:
> 
> >On Thu, 2005-06-09 at 13:09 +1000, Tehn-Yit Chin wrote:
> >  
> >
> >>Hi,
> >>
> >>We are trying to provide support for the CS43L43 device under the ALSA
> >>architecture on an embedded platform.
> >>
> >>During my early investigation, I noticed that ALSA has its own i2c code.
> >>What is this required, and why doesn't it use the mainline i2c support?
> >>On our platform, there are one other devices on the i2c bus, so I would
> >>like to use the mainline i2c code.
> >>    
> >>
> >
> >This is explained in "Writing an ALSA Driver"  (you did read it,
> >right?).  Basically the kernel's i2c layer is overly complex, and ALSA
> >only needs a small subset of it, so ALSA implements its own minimal i2c
> >layer.
> >
> >  
> >
> So will this cause losing control on the I2c device ? for example i have 
> 4 device on the i2c bus , 3 of them are under the kernel's i2c which the 
> the sequence control that they can't access the bus at the same time and 
> one of them are under alsa's i2c , what will happen if the alsa's i2c 
> device and the kernel's i2c device access the bus together ?

Use the kernel's i2c implementation in this case (see in ppc drivers for 
example). There must be only one arbiter code.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

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

* RE: about the alsa i2c interface
@ 2005-06-14  0:33 Tehn-Yit Chin
  0 siblings, 0 replies; 5+ messages in thread
From: Tehn-Yit Chin @ 2005-06-14  0:33 UTC (permalink / raw)
  To: Lee Revell; +Cc: alsa-devel

 

> -----Original Message-----
> From: Lee Revell [mailto:rlrevell@joe-job.com] 
> Sent: Thursday, 9 June 2005 4:48 PM
> To: Tehn-Yit Chin
> Cc: alsa-devel@alsa-project.org
> Subject: Re: [Alsa-devel] about the alsa i2c interface
> 
> On Thu, 2005-06-09 at 13:09 +1000, Tehn-Yit Chin wrote:
> > Hi,
> > 
> > We are trying to provide support for the CS43L43 device 
> under the ALSA 
> > architecture on an embedded platform.
> > 
> > During my early investigation, I noticed that ALSA has its 
> own i2c code.
> > What is this required, and why doesn't it use the mainline 
> i2c support?
> > On our platform, there are one other devices on the i2c bus, so I 
> > would like to use the mainline i2c code.
> 
> This is explained in "Writing an ALSA Driver"  (you did read 
> it, right?).  Basically the kernel's i2c layer is overly 
> complex, and ALSA only needs a small subset of it, so ALSA 
> implements its own minimal i2c layer.
> 
> Lee
> 
> 

Many thanks for all the answers and comments.

Yep, I did read "Writing an ALSA Driver" and I also read the bit where
it said that the kernel's I2C is too complex for ALSA. My concern is
that we will have several devices on the I2C bus and acces to it will
need to be controlled, so for our project, it will need to use the
kernel's I2C code.

cheers,

Tehn Yit Chin 
Software Engineer, Grey Innovation Pty. Ltd.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 

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

end of thread, other threads:[~2005-06-14  0:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09  3:09 about the alsa i2c interface Tehn-Yit Chin
2005-06-09  6:47 ` Lee Revell
2005-06-09  7:15   ` Tomko
2005-06-09  8:59     ` Jaroslav Kysela
  -- strict thread matches above, loose matches on Subject: below --
2005-06-14  0:33 Tehn-Yit Chin

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.