From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: ext shariff <shariffsinbox@gmail.com>
Subject: Re: Reg: Implementation of GSM digital audio path
Date: Thu, 25 Jun 2009 14:32:48 +0300 [thread overview]
Message-ID: <200906251432.49009.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <1cbe56070906250411l25762a2dkce4cad25a7a293ab@mail.gmail.com>
On Thursday 25 June 2009 14:11:04 ext shariff wrote:
> Hi Peter,
>
> Thanks for quick response. I understood some what from your mail.
>
> I will explain, how my hardware is connected.
>
>
> USB GSM chip -> McBSP3
>
> McBSP2 -> TWL4030
>
> Here, playback functionality will not be there in the GSM path. I
> need to take audio data from GSM. and redirect this to TWL4030 codec.
I see. Sorry I have confused things a bit,
In this case you need to do what Mark has suggested:
dummy dai for the codec, connect it to McBSP3 as it were a normal codec.
Than you will have two PCM on the sound card:
0.0: TWL digital audio
0.1: Your codec
arecord -Dplughw:0.1 | aplay -Dplughw:0.0
or
arecord -Dhw:0.1 | aplay -Dhw:0.0
>
> The thing is, How and where to implement this GSM path without
> playback? as I am new to this ASoC framework.
>
> What I understood from ur mail is. Audio is being redirected from
> the application space i.e arecord will record and store in buffer and this
> buffer is
>
> being played using aplay to other hardware (twl4030).
>
> Can we handle the same thing in kernel space ( i.e in driver itself).
You anyway have to copy from one buffer to another to be in the safe side (in
theory you could use the same buffer for recording and playback, but it should
be avoided).
So you have to copy the samples from the capture buffer to the playback
buffer. It really does not matter if it is done inside of the kernel or in
user space.
This kind of 'routing' clearly belongs to the user space.
>
> Regards,
> Shariff
--
Péter
next prev parent reply other threads:[~2009-06-25 11:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 9:47 Reg: Implementation of GSM digital audio path shariff
2009-06-25 10:35 ` Peter Ujfalusi
2009-06-25 11:27 ` shariff
[not found] ` <1cbe56070906250411l25762a2dkce4cad25a7a293ab@mail.gmail.com>
2009-06-25 11:32 ` Peter Ujfalusi [this message]
2009-06-25 11:52 ` shariff
2009-06-25 10:41 ` Mark Brown
2009-06-25 11:28 ` shariff
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=200906251432.49009.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=shariffsinbox@gmail.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.