* USB Gadget audio not working
@ 2016-09-20 22:00 noman pouigt
2016-09-21 7:06 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: noman pouigt @ 2016-09-20 22:00 UTC (permalink / raw)
To: alsa-devel, ruslan.bilovol, clemens
Hello,
I am trying to use my device as a sound card and enabled
CONFIG_USB_AUDIO. However I don't know what kind
of device node should be added in the machine file?
I just want to record whatever is coming into the USB played
back by the host over USB.
I could get my device to be detected as a sound card i.e.
USB_AUDIO_CLASS in my ubuntu machine.
My understanding of USB audio is very less so I thought
below change should be sufficient.
Below are the only changes which i have done to enable USB_AUDIO.
Machine file:
{
.name = "something_random",
.stream_name = "USB Capture",
.cpu_dai_name = "snd-soc-dummy-dai",
.codec_dai_name = "snd-soc-dummy-dai",
.codec_name = "snd-soc-dummy",
.ignore_suspend = 1,
},
drivers/usb/gadget/u_uac1.c :
#define FILE_PCM_PLAYBACK "/dev/snd/pcmC0D0p"
#define FILE_PCM_CAPTURE "/dev/snd/pcmC0D0c"
in defconfig
CONFIG_USB_AUDIO=y
Please let me know if I am doing anything wrong.
Thanks,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: USB Gadget audio not working
2016-09-20 22:00 USB Gadget audio not working noman pouigt
@ 2016-09-21 7:06 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2016-09-21 7:06 UTC (permalink / raw)
To: alsa-devel
noman pouigt wrote:
> I am trying to use my device as a sound card and enabled
> CONFIG_USB_AUDIO.
That configuration is for the host driver, not for the gadget driver.
> I could get my device to be detected as a sound card
Then you have correctly enabled CONFIG_USB_F_UAC1.
> However I don't know what kind
> of device node should be added in the machine file?
As far as I can see, none.
See Documentation/usb/gadget-testing.txt.
Regards,
Clemens
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-21 7:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 22:00 USB Gadget audio not working noman pouigt
2016-09-21 7:06 ` Clemens Ladisch
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.