Thread (3 messages) 3 messages, 2 authors, 2023-02-27

RE: usb: gadget: dwc2: not getting audio data

From: Minas Harutyunyan <hidden>
Date: 2023-02-27 10:18:47

Hi Palak,
On 2/27/2023 6:02 AM, Palak SHAH wrote:
From: Palak SHAH <redacted>
Sent: Monday, February 27, 2023 6:02 AM
To: Minas Harutyunyan <hminas@synopsys.com>; Maynard CABIENTE
[off-list ref]
Cc: linux-usb@vger.kernel.org
Subject: RE: usb: gadget: dwc2: not getting audio data

Hi Minas,
Please find attached the logs - regdump, hw_params, params and fifo, taken
when the driver is loaded.

I will send the USB traces tomorrow.

USB trace for arecord (EP1IN ISOC) and debug log.


Could you please confirm that after defining UAC1_DEF_REQ_NUM to 32 
playing audio (EP1OUT ISOC) no any issue seen?

Thanks,
Minas
Thanks,
Palak

-----Original Message-----
From: Minas Harutyunyan <redacted>
Sent: Friday, February 24, 2023 5:33 AM
To: Palak SHAH <redacted>; Maynard CABIENTE
[off-list ref]
Cc: linux-usb@vger.kernel.org
Subject: RE: usb: gadget: dwc2: not getting audio data

Hi Polak,
quoted
On 2/24/2023 3:04 AM, Palak SHAH wrote:
From: Palak SHAH <redacted>
Sent: Friday, February 24, 2023 3:04 AM
To: Minas Harutyunyan <hminas@synopsys.com>; Maynard CABIENTE
[off-list ref]
Cc: linux-usb@vger.kernel.org
Subject: RE: usb: gadget: dwc2: not getting audio data

Hi Minas,
I have attached the log where I connect to the audio gadget (and
therefore, load the driver). We can do it using command line on a
serial prompt or using GUI and connecting to Audio gadget.

However, in both cases, I don’t see any EP1(out) data and the register
dump.
quoted
Ep1out comes out only when I play a you tube video and I do arecord to
capture data.
According your device configuration EP1(out) using when you play audio, and
EP1(in) using when you record audio by arecord.
So, after driver loading these both ISOC EP's will not seen in log until
aplay/arecord will not run.
quoted
Please let me know if the log doesn’t have the information you need.
No, it's again dmesg. I asked for core all register dump which available
under debugfs's. dwc2 debugfs's under follow directory:
/sys/kernel/debug/usb/dwc2.2.auto/
In your case 'dwc2.2.auto' can be little bit different. In this directory
there are files regdump, hw_params, params, fifo, etc. Just use 'cat
regdump'
to get register dump. Please also provide me cat of hw_params, params and
fifo. These last 3 files need to cat just once after driver loading.
quoted
Also, I tried changing UAC1_DEF_REQ_NUM 2 changed to 32. I saw a change
in the behaivor of logs, I got XferCompl all the time, and not ep_disabled.
So, after defining UAC1_DEF_REQ_NUM to 32 playing audio (ep1out) work
without any issue? And increasing req number to 32 fixed issue which we
debug till now?
quoted
However, arecord behaivor did not change, meaning I still did not get
the data. It only changed the logging behaivor.
If you still see issues with arecord (ep1in) then please provide me debug
log for this case and USB trace by Ellisys.

Thanks,
Minas



________________________________

Ce message, ainsi que tous les fichiers joints à ce message, peuvent
contenir des informations sensibles et/ ou confidentielles ne devant pas
être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
vous recevez ce message par erreur), nous vous remercions de le notifier
immédiatement à son expéditeur, et de détruire ce message. Toute copie,
divulgation, modification, utilisation ou diffusion, non autorisée, directe
ou indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential
and/or privileged information. If you are not the intended recipient (or
have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized, direct or indirect, copying,
disclosure, distribution or other use of the material or parts thereof is
strictly forbidden.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help