Closed Ashore2003 closed 1 week ago
I looked for some solutions, such as editing the asound.conf file under /etc, but there is no asound.conf file under /etc. Then I created a .asoundrc file in my user directory, and the content of the file is as follows:
pcm.!default {
type plug
slave.pcm {
type bluealsa
interface "hci0"
device "04:CB:88:B9:4A:EC"
profile "a2dp"
}
hint {
show on
description "JBL Flip Essential"
}
}
ctl.!default {
type bluealsa
}
pcm.usbmicrophone {
type hw
card 2
device 0
}
ctl.usbmicrophone {
type hw
card 2
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "usbmicrophone"
rate 48000
channels 2
period_size 1024
buffer_size 4096
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1024
slave {
pcm "usbmicrophone"
rate 48000
channels 2
period_size 1024
buffer_size 4096
}
}
pcm.duplex {
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
}
pcm.!default {
type plug
slave.pcm "duplex"
}
But it still can't solve the above problems
You would be better off creating a post on the forum. This sounds more like configuration issue than a kernel bug, and the forum may have some users who have done something similar.
@popcornmix OK,thank you
any solution for this
Try the forum - this doesn't sound like a link kernel bug.
Describe the bug
I used a driver-free USB microphone to do some audio activity detection, such as automatically detecting the audio cutoff point, but some unexpected errors occurred, as shown below:
Steps to reproduce the behaviour
This is the code that reproduces the problem I encountered above:
Device (s)
Raspberry Pi 5
System
Operating system and version: Raspberry Pi reference 2024-03-15 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f19ee211ddafcae300827f953d143de92a5c6624, stage4
Firmware version: 2024/05/17 12:29:43 Copyright (c) 2012 Broadcom version 72caf667 (release) (embedded)
Kernel version: Linux raspberrypi 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
Logs
No response
Additional context
No response