Re: [linux-usb] how to pass parameters to mass storage kernel module for best host compatibility

2015-06-16 Thread Xuebing Wang
On 06/17/2015 10:19 AM, Felipe Balbi wrote: On Wed, Jun 17, 2015 at 07:33:37AM +0800, Xuebing Wang wrote: On 06/16/2015 10:32 PM, Alan Stern wrote: On Tue, 16 Jun 2015, Xuebing Wang wrote: Hi Alan and community, I am using mass storage kernel module of v4.0.1 for Freescale i.MX6SL for a

Re: [linux-usb] how to pass parameters to mass storage kernel module for best host compatibility

2015-06-16 Thread Xuebing Wang
On 06/16/2015 10:32 PM, Alan Stern wrote: On Tue, 16 Jun 2015, Xuebing Wang wrote: Hi Alan and community, I am using mass storage kernel module of v4.0.1 for Freescale i.MX6SL for a commercial product. As this is commercial product, thus USB host compatibility is important. 1) It seems that

[linux-usb] how to pass parameters to mass storage kernel module for best host compatibility

2015-06-16 Thread Xuebing Wang
Hi Alan and community, I am using mass storage kernel module of v4.0.1 for Freescale i.MX6SL for a commercial product. As this is commercial product, thus USB host compatibility is important. 1) It seems that Windows 7 host can *not* auto-mount if I pass parameters as below: modprobe g_mass

[linux-usb] mass storage performance is slow with Windows 7 host

2015-04-29 Thread Xuebing Wang
Hi Community, I am developing a commercial product based on Freescale iMX6, which supports USB slave Mass Storage, command is: modprobe g_mass_storage file=/dev/mmcblk0p4 (it is one partition in eMMC, this partition is formatted as FAT32) (kernel version is 3.10.17, I did not try the latest ma

[linux-usb] [UAC2] How to route pcm stream for UAC2 virtual sound card for lowest latency?

2015-03-09 Thread Xuebing Wang
Hi Community, I am developing a commercial product based on Freescale iMX6SL + UAC2. I can get UAC2 working for below command. 'hw:1,0' is the virtual sound card. 'hw:0,0' is the physical sound card. export RATE=44100; arecord -D hw:1,0 -c 2 -r $RATE -f S16_LE | aplay -c 2 -r $RATE -f S16_LE &

Windows Host support for UAC1 (USB Audio Class version 1)

2014-11-20 Thread Xuebing Wang
-- Thanks, Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v3 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-26 Thread Xuebing Wang
-/rate/size). Sebastian Hi Sebastian, Would you mind to share how did you run the test for both Playback/Capture? What host version are you using, as different Host enumerates (sends sequences of USB_REQ_SET_INTERFACE request differently)? -- Thanks, Xuebing Wang -- To unsubscribe from

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-22 Thread Xuebing Wang
Hi Community, I finally fix the UAC1 on Windows 7 host issue. Thanks for your help. I will submit patches after more testing. On 08/22/2014 10:43 AM, Xuebing Wang wrote: On 08/21/2014 04:24 PM, Sebastian Andrzej Siewior wrote: On 08/20/2014 02:13 AM, Peter Chen wrote: Thanks, so Xunbing

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-21 Thread Xuebing Wang
here are no hardware issues with * your controller. Add it above if it can't handle CDC. */ return true; } Thanks again. -- Thanks, Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vge

Re: [linux-usb] Is UAC1 (USB Audio Class 1.0) broken?

2014-08-20 Thread Xuebing Wang
. From: Xuebing Wang Date: Wed, 20 Aug 2014 12:36:54 +0800 Subject: [PATCH 1/2] UAC1: enable USB gadget Audio Class revision 1.0 Fix below error message issue: g_audio gadget: ep1out queue req: err = -22 This issue was observed on Freescale i.MX6SL EVK, kernel version 3.10.17 Signed-off-by: Xu

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-19 Thread Xuebing Wang
ller like ChipIdea does NOT support RNDIS? 2) Also, I am not sure if it is related to ChipIdea quirk (gadget_supports_altsettings in file gadget_chips.h)? I can't find chipidea quirk at gadget_chips.h, besides, altsettings are software stuff. Peter -- Thanks, Xuebing Wang -- To uns

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

2014-08-19 Thread Xuebing Wang
Thanks. You were trying UAC2, right? Yes. Thanks Daniel. Did you hear noise (hear with ear phone, not speaker) especially when playing music from Ubuntu host? I am hearing slight noise here. -- Thanks, Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linu

[linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-18 Thread Xuebing Wang
if it is related to ChipIdea quirk (gadget_supports_altsettings in file gadget_chips.h)? Any suggestions / comments on this? Thanks. -- Thanks, Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kerne

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

2014-08-18 Thread Xuebing Wang
On 08/19/2014 01:11 AM, Daniel Mack wrote: 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

[linux-usb] Is UAC1 (USB Audio Class 1.0) broken?

2014-08-17 Thread Xuebing Wang
ice has no output controls', which results in that I can not adjust volume. Music playback via UAC1 on MacOS is no problem. Anybody tried UAC1 (or UAC2) recently? Is UAC1 broken? Thanks. Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the bo

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

2014-08-14 Thread Xuebing Wang
Thanks Peter. My problem is that I can not hear any sound if playing wav from Ubuntu Host. I can hear sound if I play wav for the real sound card at the device side. For UAC1 (file u_uac1.c), usb audio stream is hard-coded to be directed to "/dev/snd/pcmC0D0p". I am wondering for UAC2, should

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

2014-08-14 Thread Xuebing Wang
y wav for the real sound card at the device side. For UAC1 (file u_uac1.c), usb audio stream is hard-coded to be directed to "/dev/snd/pcmC0D0p". I am wondering for UAC2, should I do the similar? -- Thanks, Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe

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

2014-08-14 Thread Xuebing Wang
At device side, in driver/usb/gadget/Kconfig, it says before for CONFIG_USB_AUDIO - This driver doesn't expect any real Audio codec to be present on the device - the audio streams are simply sinked to and sourced from a virtual ALSA sound

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

2014-08-13 Thread Xuebing Wang
UAC2 virtual ALSA sound card (hw:2,0, UAC2_Gadget)? Thank you very much. Xuebing Wang -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html