Re: What is the command line commands to use UAC2 at USB client side?

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

 



On 08/15/2014 05:49 AM, Xuebing Wang wrote:
> Jassi, thanks for your help.
> 
> Without knowing what is the best way to implement UAC2 at the device 
> side, I managed to simply pipe is as below:
> 
> Note: When I am playing music from Ubuntu host, I can hear light noise 
> from the device (via UAC2)
> 
> 
> root@imx6slevk:~# modprobe g_audio c_srate=48000
> g_audio gadget: Linux USB Audio Gadget, version: Feb 2, 2012
> g_audio gadget: g_audio ready
> root@imx6slevk:~# g_audio gadget: high-speed config #1: Linux USB Audio 
> Gadget
> 
> root@imx6slevk:~#
> root@imx6slevk:~# arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0
> Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
> Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

Such a setup should work, I recently tried it myself.

The other direction (capturing from host, playback on device), however,
has a major problem as the device interface has no timing mechanism, and
hence 'arecord | aplay' on the gadget side fails. I've prepared patches
and a more comprehensive description for this, but I'm waiting for
Andrzej's patches to be reviewed, as mine are based upon his.


Thanks,
Daniel

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