How to find IRQ of built-in sound card on the Odroid N2+?

Post Reply
Groove On
Posts: 13
Joined: Thu Sep 21, 2017 12:12 pm
languages_spoken: english
ODROIDs: Odroid N2+
Has thanked: 4 times
Been thanked: 2 times
Contact:

How to find IRQ of built-in sound card on the Odroid N2+?

Post by Groove On »

How can I find the IRQ of the built-in sound card on the Odroid N2+?

This is contents of '/proc/interrupts' - any guesses as to which line is the sound card?

CPU0 CPU1 CPU2 CPU3 CPU4 CPU5
10: 0 0 0 0 0 0 GIC-0 29 Level arch_timer
11: 102373 41736 36628 22308 111462 18627 GIC-0 30 Level arch_timer
14: 0 0 0 0 0 0 GIC-0 92 Edge Meson TimerF
15: 3 0 0 0 0 0 GIC-0 192 Level ffe40000.bifrost
16: 0 0 0 0 0 0 GIC-0 193 Level ffe40000.bifrost
17: 0 0 0 0 0 0 GIC-0 194 Level ffe40000.bifrost
20: 3 0 0 0 0 0 GIC-0 241 Edge
21: 1 0 0 0 0 0 GIC-0 242 Edge
22: 54 0 0 0 0 17913 GIC-0 40 Edge eth0
23: 126 0 0 0 18256 0 GIC-0 62 Level xhci-hcd:usb1
24: 1 0 0 0 0 0 GIC-0 48 Level amlogic_botg_detect
25: 0 0 0 0 0 0 GIC-0 63 Level dwc_otg, dwc_otg_pcd
26: 0 0 0 0 0 0 GIC-0 232 Edge meson-g12a-saradc
27: 0 0 0 0 0 0 GIC-0 67 Edge ff634800.p_tsensor
28: 0 0 0 0 0 0 GIC-0 68 Edge ff634c00.d_tsensor
29: 0 0 0 0 0 0 GIC-0 247 Edge ffd1d000.i2c
31: 59 0 0 0 0 0 GIC-0 71 Edge ffd1c000.i2c
33: 0 0 0 0 0 0 GIC-0 113 Level ffd13000.spi
34: 472 0 0 0 0 0 GIC-0 225 Edge meson_uart
38: 38 0 0 0 0 0 GIC-0 184 Edge
39: 9 0 0 0 0 0 GIC-0 185 Edge
40: 9 0 0 0 0 0 GIC-0 186 Edge
42: 0 0 0 0 0 0 GIC-0 212 Edge aml-aes, aml-tdes, aml-sha
44: 0 0 0 0 0 0 GIC-0 58 Edge meson_uart
45: 1 0 0 0 0 0 GIC-0 89 Edge hdmitx
46: 0 0 0 0 0 0 GIC-0 235 Edge hdmi_aocecb
48: 0 0 0 0 0 0 GIC-0 178 Edge ge2d
49: 54155 0 0 0 0 0 GIC-0 35 Edge vsync, osd-vsync
50: 0 0 0 0 0 0 GIC-0 176 Edge gdc
53: 0 0 0 0 0 0 GIC-0 75 Edge vdec-0
54: 0 0 0 0 0 0 GIC-0 76 Edge vdec-1
57: 54154 0 0 0 0 0 GIC-0 121 Edge rdma
58: 0 0 0 0 0 0 GIC-0 88 Edge osd-vsync-viu2
59: 23028 0 0 0 0 0 GIC-0 223 Edge meson-aml-mmc
60: 0 0 0 0 0 0 GIC-0 222 Edge meson-aml-mmc
62: 0 0 0 0 0 0 GIC-0 83 Edge dmc_monitor
72: 0 0 0 0 0 0 GIC-0 78 Edge pre_di
73: 0 0 0 0 0 0 GIC-0 72 Edge post_di
74: 0 0 0 0 0 0 GIC-0 33 Edge audiolocker
IPI0: 155005 80979 70658 64124 80714 83240 Rescheduling interrupts
IPI1: 1961 12771 2012 2758 485 406 Function call interrupts
IPI2: 0 0 0 0 0 0 CPU stop interrupts
IPI3: 0 0 0 0 0 0 Timer broadcast interrupts
IPI4: 0 0 0 0 0 0 IRQ work interrupts
IPI5: 0 0 0 0 0 0 CPU wake-up interrupts
Err: 0

User avatar
odroid
Site Admin
Posts: 37286
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1749 times
Been thanked: 1127 times
Contact:

Re: How to find IRQ of built-in sound card on the Odroid N2+?

Post by odroid »

Did you mean the HDMI sound? or on-chip DAC? or HiFi-Shield I2S?
Which Kernel version do you use?
These users thanked the author odroid for the post:
Groove On (Mon Mar 22, 2021 4:43 pm)

Groove On
Posts: 13
Joined: Thu Sep 21, 2017 12:12 pm
languages_spoken: english
ODROIDs: Odroid N2+
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: How to find IRQ of built-in sound card on the Odroid N2+?

Post by Groove On »

Hi, thank you,
odroid wrote:
Sun Mar 21, 2021 6:42 pm
Did you mean the HDMI sound? or on-chip DAC? or HiFi-Shield I2S?
Looking for the IRQ of the onboard DAC on the Odroid N2+
Which Kernel version do you use?
Ubuntu-MATE 20.04
Linux odroid 4.9.241-113 #1 SMP PREEMPT Wed Mar 17 18:56:00 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

cap00k
Posts: 113
Joined: Tue May 21, 2013 10:46 am
languages_spoken: english
ODROIDs: ODROID
Has thanked: 0
Been thanked: 16 times
Contact:

Re: How to find IRQ of built-in sound card on the Odroid N2+?

Post by cap00k »

Hi,
These 3 interrupts assigned to audio out.

Code: Select all

 38:         12          0          0          0          0          0     GIC-0 184 Edge    
 39:          6          0          0          0          0          0     GIC-0 185 Edge    
 40:          6          0          0          0          0          0     GIC-0 186 Edge
 
These 3 interrupts are not fixed to the output and they are assigned sequentially on request.

If aplay is executed in the order of 0,1,2, it is assigned as follows.

Code: Select all

# aplay -Dhw:0,0 testfile.wav &
# aplay -Dhw:0,1 testfile.wav &
# aplay -Dhw:0,2 testfile.wav &
# cat /proc/interrupts

 38:       2790          0          0          0          0          0     GIC-0 184 Edge      ff642000.audiobus:spdif_b
 39:       2248          0          0          0          0          0     GIC-0 185 Edge      ff642000.audiobus:tdmc
 40:       2201          0          0          0          0          0     GIC-0 186 Edge      ff642000.audiobus:spdif
However, if the execution order is changed, the interrupt number may be assigned differently.

Code: Select all

# aplay -Dhw:0,1 testfile.wav &
# aplay -Dhw:0,2 testfile.wav &
# aplay -Dhw:0,0 testfile.wav &
# cat /proc/interrupts

 38:       4645          0          0          0          0          0     GIC-0 184 Edge      ff642000.audiobus:tdmc
 39:       4055          0          0          0          0          0     GIC-0 185 Edge      ff642000.audiobus:spdif
 40:       3956          0          0          0          0          0     GIC-0 186 Edge      ff642000.audiobus:spdif_b

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests