All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xuebing Wang <xbing6@gmail.com>
To: linux-usb-devel@vger.kernel.org, alsa-devel@alsa-project.org
Cc: thomas.besemer@gmail.com, Richard.Jiang@infocus.com
Subject: What is the command line commands to use UAC2 at USB client side?
Date: Thu, 14 Aug 2014 14:16:30 +0800	[thread overview]
Message-ID: <53EC543E.9050601@gmail.com> (raw)

Hi Community,

Based on Freescale platform , I am trying to use USB Audio Class version 
2.0.  Host can detect this UAC2 device.

At device side (after modprobe g_audio):

root@imx6slevk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 []
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 1: imxspdif [imx-spdif], device 0: S/PDIF PCM Playback dit-hifi-0 []
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: UAC2Gadget [UAC2_Gadget], device 0: UAC2 PCM [UAC2 PCM]
   Subdevices: 1/1
   Subdevice #0: subdevice #0

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 card created. The user-space
           application may choose to do whatever it wants with the data
           received from the USB Host and choose to provide whatever it
           wants as audio data to the USB Host.
-------------------------

My question is: at device side, how to configure sink/source for UAC2 
virtual ALSA sound card (hw:2,0, UAC2_Gadget)?

Thank you very much.

Xuebing Wang

                 reply	other threads:[~2014-08-14  6:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=53EC543E.9050601@gmail.com \
    --to=xbing6@gmail.com \
    --cc=Richard.Jiang@infocus.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-usb-devel@vger.kernel.org \
    --cc=thomas.besemer@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.