alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: gsantosh@codeaurora.org
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, lrg@ti.com, gsantosh@codeaurora.org
Subject: Re: customized IOCTL in pcm platform driver.
Date: Tue, 9 Oct 2012 01:01:42 -0700 (PDT)	[thread overview]
Message-ID: <e207ed9010d18ed2da363bf6496f1a9b.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <s5h626k6qeg.wl%tiwai@suse.de>

> At Tue, 9 Oct 2012 00:30:40 -0700 (PDT),
> gsantosh@codeaurora.org wrote:
>>
>> > At Mon, 8 Oct 2012 23:44:40 -0700 (PDT),
>> > gsantosh@codeaurora.org wrote:
>> >>
>> >> > At Mon, 8 Oct 2012 23:30:09 -0700 (PDT),
>> >> > gsantosh@codeaurora.org wrote:
>> >> >>
>> >> >> Hi All,
>> >> >>
>> >> >> will ALSA framework provide any customized IOCTL functionality in
>> PCM
>> >> >> platform driver.
>> >> >
>> >> > No.
>> >> >
>> >> >> in my  system there is a requirement to get some information from
>> DSP
>> >> to
>> >> >> user space and I am thinking to add IOCTL's, is there any method
>> to
>> >> >> accommodate or how we can address this issue?
>> >> >
>> >> > You can use hwdep device for any extra methods.
>> >>
>> >> We need to tie this ioctl with the on going DSP session which will be
>> >> difficult When used with hwdep interface.
>> >
>> > Hm, how can it be difficult?  More specific description is needed to
>> > answer more.
>>
>> to communicate with DSP we open up a session and populate that
>> information
>> in the substream, for this use case during the playback session user
>> space
>> has to talk to DSP to get some information like time stamp also the time
>> stamp statistics, to talk to DSP I need to get hold of the proper
>> substream so that the communication with particular session is possible.
>>
>> I see adding one IOCTL in the platform driver will solve my issue, but
>> not
>> finding any way to integrate this in the current framework,
>>
>> if we use the hwdep, not sure how can I get hold of the substream handle
>> so I can talk to particular session in DSP.
>
> A PCM substream can be identified simply by a PCM device number and
> a PCM substream index.  You can make ioctl to pass these information.
>

Can you point to any code reference doing this operation?
did you mean accessing the sub-stream handle in user space or in the
kernel driver.


>
> Takashi
>

  reply	other threads:[~2012-10-09  8:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09  6:30 customized IOCTL in pcm platform driver gsantosh
2012-10-09  6:40 ` Takashi Iwai
2012-10-09  6:44   ` gsantosh
2012-10-09  6:52     ` Takashi Iwai
2012-10-09  7:30       ` gsantosh
2012-10-09  7:44         ` Takashi Iwai
2012-10-09  8:01           ` gsantosh [this message]
2012-10-09  8:38             ` Takashi Iwai
2012-10-25  4:56             ` gsantosh

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=e207ed9010d18ed2da363bf6496f1a9b.squirrel@www.codeaurora.org \
    --to=gsantosh@codeaurora.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@ti.com \
    --cc=tiwai@suse.de \
    /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 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).