Hi Saranya,
okay, thanks for the info.
Gopal, Saranya <saranya.gopal(a)intel.xn--com>-4i3o 2019年7月29日 週一,14:37寫道:
Hi Minhong,
Your NUC does not support LPM.
NUC model NUC7i5BNH supports LPM.
Thanks,
Saranya
*From:* Ming-Hong Wu [mailto:minhong.wu@gmail.com]
*Sent:* Friday, July 26, 2019 11:21 PM
*To:* Gopal, Saranya <saranya.gopal(a)intel.com>
*Cc:* Balaji, M <m.balaji(a)intel.com>; Zhang, Yanmin <
yanmin.zhang(a)intel.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
Hi Saranya,
I don't have my device on hand now, will get back to you later. Can I know
if my NUC (NUC6CAYH) supports LPM?
What is expected to be shown (for LPM support) when I execute lsusb -v ?
If you can provide me some example output, I can check further.
Thanks.
Gopal, Saranya <saranya.gopal(a)intel.xn--com>-4i3o 2019年7月27日 週六,01:45寫道:
Hi MinHong,
Both the device and host must support LPM for the sysfs entry
usb2_hardware_lpm to be present.
Could you attach lsusb –v output of your audio device?
Thanks,
Saranya
*From:* Ming-Hong Wu [mailto:minhong.wu@gmail.com]
*Sent:* Friday, July 26, 2019 11:10 PM
*To:* Gopal, Saranya <saranya.gopal(a)intel.com>
*Cc:* Balaji, M <m.balaji(a)intel.com>; Zhang, Yanmin <
yanmin.zhang(a)intel.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
Hi Saranya,
Thanks.
I am able to control the bConfiguration on the UAC device, thus I think I
am on the right way to control it. And by your saying and the guide, there
should be power/usb2_hardware_lpm under the same sysfs path, right? What
if I can’t see it, what should I debug on? I can see power/ but not
usb2_hardware_lpm.
Gopal, Saranya <saranya.gopal(a)intel.xn--com>-4i3o 2019年7月27日 週六,01:35寫道:
Hi Minhong,
You can plug the UAC3 device into any port.
3-1 here was given as an example.
This depends on the port number where you plugged in the device.
You can find this from dmesg.
For eg:
usb 3-1: new USB device found, idVendor=1234, idProduct=5678
usb 3-1: Product: Usb Audio Headset
usb 3-1: Manufacturer: xxx
In this case, use 3-1 in sysfs path.
Thanks,
Saranya
*From:* Ming-Hong Wu [mailto:minhong.wu@gmail.com]
*Sent:* Friday, July 26, 2019 4:48 PM
*To:* Balaji, M <m.balaji(a)intel.com>
*Cc:* Gopal, Saranya <saranya.gopal(a)intel.com>; Zhang, Yanmin <
yanmin.zhang(a)intel.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
Hi Balaji, Saranya,
Thanks the help so far.
I got one more question,
I see on the page,
https://01.org/projectceladon/documentation/tutorials/enabling-uac3
I can't find the entry point to control LPM, can you provide suggestions?
Is devices/3-1/ indicating the hub port, or depending on the UAC device
plugged in?
Should I plug the testing UAC device into specific USB ports for getting
LPM support?
XHCI is capable of supporting hardware LPM in modern Intel platforms. For
example, the following *sysfs*entry confirms that the hardware USB port
*3-1* is capable of supporting hardware LPM, you can get the port
information for your system from the audio device enumeration logs in the
dmesg output.
$ cat /sys/bus/usb/devices/3-1/power/usb2_hardware_lpm
enabled
If the output value is *disabled*, you could enable LPM by writing *1* to
the entry. The transition into LPM L1 mode can be confirmed through
protocol traces.
Balaji, M <m.balaji(a)intel.com> 於 2019年7月19日 週五 下午7:45寫道:
Hello minhong ,
For APL nuc with model no NUC6CAYH, USB type A port near to Power button
provides adb support .
note:
release notes :
https://01.org/projectceladon/documentation/release_notes#ww201851-aplnuc
Need Type –A to Type-A cable ,one end connects to nuc and other on host
where android adb tools installed.
Thanks
Balaji
*From:* Ming-Hong Wu [mailto:minhong.wu@gmail.com]
*Sent:* Friday, July 19, 2019 7:29 AM
*To:* Gopal, Saranya <saranya.gopal(a)intel.com>
*Cc:* Balaji, M <m.balaji(a)intel.com>; Zhang, Yanmin <
yanmin.zhang(a)intel.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
Hi Saranya,
The model is NUC6CAYH.
Gopal, Saranya <saranya.gopal(a)intel.xn--com>-4i3o 2019年7月18日 週四,22:26寫道:
Hi Minhong,
It depends on the audio device you have. Most probably, the second
configuration will be UAC3 if the device is UAC3-compliant.
You can cat the value of the bConfigurationValue before changing it to 1
and then write back the same value to set to UAC3 configuration.
Please note that the device should be UAC3-compliant for UAC3
configuration to work.
And yes, you need to enable adb for this purpose. ADB is enabled by
default in Celadon. You need a type-A to type-A USB cable to connect the
NUC to host machine.
The device mode port depends on the NUC model which you are using. If you
can tell us the NUC model, we can check and tell which port to use.
Thanks,
Saranya
*From:* Ming-Hong Wu [mailto:minhong.wu@gmail.com]
*Sent:* Thursday, July 18, 2019 2:30 PM
*To:* Gopal, Saranya <saranya.gopal(a)intel.com>
*Cc:* Balaji, M <m.balaji(a)intel.com>; Zhang, Yanmin <
yanmin.zhang(a)intel.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
Hi Saranya,
Thanks for the detail.
What if I write 1 to bConfigurationValue for UAC 1/2, which value shall I
write back for UAC3? Is that 3?
To control the Kernel interfaces, e.g. /proc or /sys, should I enable adb
for the purpose? Sorry for not being quite familiar with Android SDK, I
tried to access via adb but no luck. Is that enabled by default in Celadon?
How can I debug for accessing it or there is a simple way for similar
purpose?
Gopal, Saranya <saranya.gopal(a)intel.xn--com>-4i3o 2019年7月18日 週四,16:51寫道:
Hi Minhong,
Please find answers to your questions below:
1. Is UAC3 enabled by default (said master codes)?
Yes. UAC3 support is available in kernel by default. But, you need
UAC3-compliant audio device to get this feature.
2. If I would like to make it disabled, what is the suggested way?
2.1 from something like menuconfig to NOT build the features from Kernel?
There is no menuconfig to disable this feature.
2.2 after booting into Celadon, any entry to disable this feature?
You can switch to backward-compatible UAC1/UAC2 configuration by writing 1
into bConfigurationValue sysfs.
echo 1 > /sys/bus/usb/devices/<n-n>bConfigurationValue
where n-n is the hub number and port number where the USB device is
enumerated. You can get this value from dmesg.
And you will need to change the file permission for this sysfs to write
into it,
Is your audio device having more than one configuration? In that case, the
UAC3 patch caused an issue which makes the last configuration get selected
for non-UAC3 compliant device.
You can cherry-pick this patch to get that fixed. This patch is available
upstream:
https://lore.kernel.org/patchwork/patch/1029221/
Please let us know if you have any more questions.
Thanks,
Saranya
*From:* Celadon [mailto:celadon-bounces@lists.01.org] *On Behalf Of *Zhang,
Yanmin
*Sent:* Thursday, July 18, 2019 7:56 AM
*To:* Ming-Hong Wu <minhong.wu(a)gmail.com>; celadon(a)lists.01.org
*Subject:* Re: [
01.org Celadon] Enable/Disable UAC3
+Balaji.
@Minghong, why do you want to disable UAC3? Does it cause any issue?
Yanmin
*From:* Celadon [mailto:celadon-bounces@lists.01.org
<celadon-bounces(a)lists.01.org>] *On Behalf Of *Ming-Hong Wu
*Sent:* Thursday, July 18, 2019 12:13 AM
*To:* celadon(a)lists.01.org
*Subject:* [
01.org Celadon] Enable/Disable UAC3
Hi,
I checked with the tutorial,
https://01.org/projectceladon/documentation/tutorials/enabling-uac3
I've questions as below after reading that,
1. Is UAC3 enabled by default (said master codes)?
2. If I would like to make it disabled, what is the suggested way?
2.1 from something like menuconfig to NOT build the features from Kernel?
2.2 after booting into Celadon, any entry to disable this feature?
--
Sincerely,
minhong
--
Sincerely,
minhong
--
Sincerely,
minhong
--
Sincerely,
minhong
--
Sincerely,
minhong
--
Sincerely,
minhong