alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Multicasting transfer mode
@ 2012-05-14  7:00 Patrick Lai
  2012-05-14  8:54 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Lai @ 2012-05-14  7:00 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

Hi,

The hardware I am working on has CODEC transfer microphone signal to
two SOCs simultaneously . In the machine driver, I have two dai-links
defined for main SOC and secondary SOC. Both DAI-LINKs include same
CODEC DAI. As long as only one dai-link is being accessed at a time,
thing is fine. However, when two dai-links are accessed at the same
time and one dai-link goes down, soc framework tears down the CODEC DAI
as it does not take account of same CODEC DAI is being used by other
dai-link. I see playback_active and capture_active being defined in
struct snd_soc_dai. I am thinking about using these flags to address
this problem. Is it the right approach? Is there precedence being
addressed with different approach? Also, I am referring to kernel 3.4
rc7. In soc-dai.h, playback_active and capture active are defined as
  unsigned int capture_active:1;          /* stream is in use */
   unsigned int playback_active:1;         /* stream is in use */

However, in soc-pcm.c, playback_active and capture_active are being
incremented and decremented instead of set and clear. If I use these
flags to address my problem, I am going to increase number of bits.

Thanks
Patrick

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

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

* Re: Multicasting transfer mode
  2012-05-14  7:00 Multicasting transfer mode Patrick Lai
@ 2012-05-14  8:54 ` Mark Brown
  2012-05-14 20:21   ` Patrick Lai
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2012-05-14  8:54 UTC (permalink / raw)
  To: Patrick Lai; +Cc: alsa-devel, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 330 bytes --]

On Mon, May 14, 2012 at 12:00:51AM -0700, Patrick Lai wrote:

> The hardware I am working on has CODEC transfer microphone signal to
> two SOCs simultaneously . In the machine driver, I have two dai-links

This isn't something the framework supports.  You'd need to either
implement the support or wait for someone else to do so.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: Multicasting transfer mode
  2012-05-14  8:54 ` Mark Brown
@ 2012-05-14 20:21   ` Patrick Lai
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Lai @ 2012-05-14 20:21 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Liam Girdwood

On 5/14/2012 1:54 AM, Mark Brown wrote:
> On Mon, May 14, 2012 at 12:00:51AM -0700, Patrick Lai wrote:
>
>> The hardware I am working on has CODEC transfer microphone signal to
>> two SOCs simultaneously . In the machine driver, I have two dai-links
>
> This isn't something the framework supports.  You'd need to either
> implement the support or wait for someone else to do so.
>

Yes, I intended to implement framework support. However, I just want to
make sure I am not hijacking playback_active and capture_active flags
for unintended purpose. Base on existing code, playback_active is only
used for handling click and pop and capture_active flag is not used at
all.

Thanks
Patrick

>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

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

end of thread, other threads:[~2012-05-14 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14  7:00 Multicasting transfer mode Patrick Lai
2012-05-14  8:54 ` Mark Brown
2012-05-14 20:21   ` Patrick Lai

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