USB Gadget audio not working

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

 



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,
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux