USB audio issue with kernel 3.14

Hello!

I’m trying to get BBB Rev C working with USB sound card. Everything just works with kernel 3.8. With kernel 3.14 sound either gets completely stuck right after the boot (most of the time) or work for some time and then get stuck. I don’t know how to debug this issue. There are no any relevant messages in the kernel log. Here are usbmon traces taken when I try to play sound:

linux 3.8

`
df42f1c0 3617554738 S Co:1:002:0 s 01 0b 0001 0003 0000 0
df42f1c0 3617555421 C Co:1:002:0 0 0
df427dc0 3617556177 S Co:1:002:0 s 22 01 0100 0003 0003 3 = 80bb00
df427dc0 3617556589 C Co:1:002:0 0 3 >
df427dc0 3617556877 S Ci:1:002:0 s a2 81 0100 0003 0003 3 <
df427dc0 3617557158 C Ci:1:002:0 0 3 = 80bb00
de3582c0 3617557424 S Zo:1:002:3 -115:1:0 7 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1344 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
de3584c0 3617557486 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
de2b95c0 3617557509 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
df428840 3617558079 S Co:1:002:0 s 22 01 0100 0003 0003 3 = 80bb00
df428840 3617558386 C Co:1:002:0 0 3 >
df428840 3617558674 S Ci:1:002:0 s a2 81 0100 0003 0003 3 <
df428840 3617559181 C Ci:1:002:0 0 3 = 80bb00
de3582c0 3617564179 C Zo:1:002:3 0:1:0:0 7 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1344 >
de3582c0 3617564264 S Zo:1:002:3 -115:1:0 7 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1344 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
de3584c0 3617572180 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de3584c0 3617572268 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
de2b95c0 3617580171 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de2b95c0 3617580284 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
de3582c0 3617587175 C Zo:1:002:3 0:1:0:0 7 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1344 >
de3582c0 3617587265 S Zo:1:002:3 -115:1:0 7 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1344 = ffffffff ffffffff ffffffff 00000000 00000000 ffffffff ffffffff 00000000
de3584c0 3617595173 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de3584c0 3617595247 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000 ffffffff
de2b95c0 3617603172 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de2b95c0 3617603298 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 ffffffff ffffffff 00000000 ffffffff ffffffff 00000000 ffffffff
de3582c0 3617610185 C Zo:1:002:3 0:1:0:0 7 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1344 >
de3582c0 3617610250 S Zo:1:002:3 -115:1:0 7 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1344 = ffffffff ffffffff ffffffff 00000000 00000000 ffffffff ffffffff 00000000
de3584c0 3617618190 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de3584c0 3617618263 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = ffffffff ffffffff 00000000 00000000 ffffffff 00000000 00000000 ffffffff
de2b95c0 3617626184 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de2b95c0 3617626300 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = ffffffff 00000000 ffffffff ffffffff ffffffff 00000000 ffffffff ffffffff
de3582c0 3617633176 C Zo:1:002:3 0:1:0:0 7 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1344 >
de3582c0 3617633250 S Zo:1:002:3 -115:1:0 7 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1344 = 00000000 00000000 ffffffff ffffffff 00000000 ffffffff 00000000 00000000
de3584c0 3617641180 C Zo:1:002:3 0:1:0:0 8 0:0:192 0:192:192 0:384:192 0:576:192 0:768:192 1536 >
de3584c0 3617641235 S Zo:1:002:3 -115:1:0 8 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1536 = 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 ffffffff
<… snip …>

`

linux 3.14

dbc15500 3369508561 S Co:1:002:0 s 01 0b 0001 0003 0000 0 dbc15500 3369509480 C Co:1:002:0 0 0 dbc15e80 3369510549 S Co:1:002:0 s 22 01 0100 0003 0003 3 = 80bb00 dbc15e80 3369511049 C Co:1:002:0 0 3 > dbc15e80 3369511312 S Ci:1:002:0 s a2 81 0100 0003 0003 3 < dbc15e80 3369511657 C Ci:1:002:0 0 3 = 80bb00 dde4e6c0 3369511976 S Zo:1:002:3 -115:1:0 6 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1152 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dbae4740 3369512304 S Zo:1:002:3 -115:1:0 6 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1152 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dbae4940 3369512579 S Zo:1:002:3 -115:1:0 6 -18:0:192 -18:192:192 -18:384:192 -18:576:192 -18:768:192 1152 = 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ddf5a280 3369512908 S Co:1:002:0 s 22 01 0100 0003 0003 3 = 80bb00 ddf5a280 3369513250 C Co:1:002:0 0 3 > ddf5a280 3369513478 S Ci:1:002:0 s a2 81 0100 0003 0003 3 < ddf5a280 3369513840 C Ci:1:002:0 0 3 = 80bb00 dde4e6c0 3404571393 C Zo:1:002:3 -104:1:0:0 6 -18:0:0 -18:192:0 -18:384:0 -18:576:0 -18:768:0 1152 > dbae4740 3404571487 C Zo:1:002:3 -104:1:0:0 6 -18:0:0 -18:192:0 -18:384:0 -18:576:0 -18:768:0 1152 > dbae4940 3404571497 C Zo:1:002:3 -104:1:0:0 6 -18:0:0 -18:192:0 -18:384:0 -18:576:0 -18:768:0 1152 > ddf5a280 3404572715 S Co:1:002:0 s 01 0b 0000 0003 0000 0 ddf5a280 3404572883 C Co:1:002:0 0 0

If usb worked with 3.8 but fails with 3.14, it's probally:

CONFIG_USB_TI_CPPI41_DMA=y

So rebuild, with:

# CONFIG_USB_TI_CPPI41_DMA is not set
CONFIG_MUSB_PIO_ONLY=y

ps, you can also give 4.1.0-rc6 a try:

sudo apt-get update
sudo apt-get install linux-image-4.1.0-rc6-bone6
sudo reboot

Regards,

Echo Echo !

Yeah, there's been a lot of double posts lately..

I think users are confused by: http://beagleboard.org/Community/Forums

So i'm starting to auto-cc users who i don't recognize. :wink:

Regards,

Hello!

I’m trying to get BBB Rev C working with USB sound card. Everything just
works with kernel 3.8. With kernel 3.14 sound either gets completely stuck
right after the boot (most of the time) or work for some time and then get
stuck. I don’t know how to debug this issue. There are no any relevant
messages in the kernel log. Here are usbmon traces taken when I try to play
sound:

If usb worked with 3.8 but fails with 3.14, it’s probally:

CONFIG_USB_TI_CPPI41_DMA=y

So rebuild, with:

CONFIG_USB_TI_CPPI41_DMA is not set

CONFIG_MUSB_PIO_ONLY=y

Thank you. After switching to PIO sound card seems to work fine. If I understand correctly this also can be achieved by adding musb_hdrc.use_dma=n to the kernel cmdline, but I haven’t tried that.


|

|

  • | - | - |

ps, you can also give 4.1.0-rc6 a try:

sudo apt-get update
sudo apt-get install linux-image-4.1.0-rc6-bone6
sudo reboot

OK. I’ll compile and test it when I have free time :slight_smile:

I don’t see any issues with 4.1.0-rc6 configured with CONFIG_USB_TI_CPPI41_DMA=y. My sound card works reliably.