Re: g_audio gadget: retrieving data stream from user-space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Jassi,

Thanks for this very fast answer and for your patch.
Indeed, this seems to be exactly what I need.

I will try to test your patch in the coming days. I will let you know
as soon as I get it working.
I suspect that your patch need to be applied on a 3.0 kernel (I am
currently using a 2.6.35 kernel so I will need to upgrade).

Best regards

Adrien

On Thu, Sep 8, 2011 at 1:46 PM, Jassi Brar <jaswinder.singh@xxxxxxxxxx> wrote:
> On 8 September 2011 17:02, Adrien Decostre <ad.decostre@xxxxxxxxx> wrote:
>>
>> I am currently doing some experiments with the g_audio USB gadget. In
>> fact, I would like to be able to process in user-space the PCM stream
>> sent by the host and captured by the g_audio gadget driver.
>>
>> Is this functionality already supported by the current implementation
>> or is the data path hard-coded in g_audio?
> I am afraid extant f_audio.c hardcodes sinking OUT data directly to the
> physical codec on board. There is no option to route it to user-space.
>
>
>> In the case this functionality is already supported, how can the PCM
>> stream be retrieved from user-space? Would it be needed to emulate a
>> virtual ALSA sound card in user space or is it possible to directly
>> “connect” to g_audio via the ALSA library API?
> A virtual ALSA sound card needs to be exposed by the audio gadget driver.
> My recently submitted driver is exactly what you need.
>
> I was supposed to revise it as per Felipe Balbi's comments, but got busy
> with official work. Hopefully by this weekend, I'll re-submit.
>
> Functionality wise though, you can test that even today and provide some
> feedback so that I can improve it even further.
> http://www.spinics.net/lists/linux-usb/msg50854.html
> http://www.spinics.net/lists/linux-usb/msg50855.html
>
> -jassi
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux