I'm attempting to alter the XNext walkman Magisk module for the Xperia 1 IV. I've gotten to the stage of modifying the existing asound.conf, but I'm struggling to find the right controls on the device to play media through.
In this case, I have a config that defines audio in/out devices (resourcemanagr_waipio_qrd.xml), and from this I have extracted the following
out-device
:
PAL_DEVICE_OUT_WIRED_HEADPHONE
CODEC_DMA-LPAIF_RXTX-RX-0
2
2
1
headphones
PAL_STREAM_COMPRESSED
headphones-hifi-filter
PAL_STREAM_PCM_OFFLOAD
headphones-hifi-filter
PAL_STREAM_DEEP_BUFFER
headphones-hifi-filter
-->
PAL_STREAM_VOICE_CALL
1
48000
16
PAL_STREAM_VOIP_RX
2
48000
16
From this, I have noted the corresponding hw device from aplay -l
:
CODEC_DMA-LPAIF_RXTX-RX-0 multicodec-0
I'm lost, however, as to how I might determine how to address this in asound.conf - which contains the module as follows:
pcm.headphone {
type hooks
slave.pcm {
type hw
card 0
device 0
subdevice 0
}
hooks.0 {
type ctl_elems
hook_args [
{
name 'CODEC_DMA-LPAIF_RXTX-RX-0'
preserve false
lock false
value [ 0 0 ]
}
{ name 'RX_MACRO RX0 MUX' value AIF1_PB }
{ name 'RX_MACRO RX1 MUX' value AIF1_PB }
{ name 'CODEC_DMA-LPAIF_RXTX-RX-0 Channels' value Two }
{ name 'RX INT0_1 MIX1 INP0' value RX0 }
{ name 'RX INT1_1 MIX1 INP0' value RX1 }
{ name 'RX INT0 DEM MUX' value CLSH_DSM_OUT }
{ name 'RX INT1 DEM MUX' value CLSH_DSM_OUT }
{ name 'RX_COMP1 Switch' value 0 }
{ name 'RX_COMP2 Switch' value 0 }
{ name 'HPH_L Switch' value 1 }
{ name 'HPH_R Switch' value 1 }
{ name 'HPHL_COMP Switch' value 0 }
{ name 'HPHR_COMP Switch' value 0 }
{ name 'HPHL_RDAC Switch' value 1 }
{ name 'HPHR_RDAC Switch' value 1 }
{ name 'RX_RX0 Digital Volume' value 84 }
{ name 'RX_RX1 Digital Volume' value 84 }
{ name 'CODEC_DMA-LPAIF_RXTX-RX-0 SampleRate' value KHZ_96 }
{ name 'CODEC_DMA-LPAIF_RXTX-RX-0 Format' value S32_LE }
{
name 'CODEC_DMA-LPAIF_RXTX-RX-0'
preserve true
lock true
value [ 1 0 ]
}
]
}
}
where the first and last name
elements appear to be the name of the device. I have attempted the following values:
CODEC_DMA-LPAIF_RXTX-RX-0 multicodec-0
CODEC_DMA-LPAIF_RXTX-RX-0
CODEC_DMA-LPAIF_RXTX-RX-0 Audio Mixer Multimedia1
The last being a vague hope that there are somehow some additional configuration flags necessary. However, each time I attempt aplay -v -D headset test.wav
, aplay responds that the device cannot be found. headset
is slaved indirectly to pcm.headphone
, and aplay does contain the correct device name according to asound.conf, so instead I must have the wrong device - except it's configured as such in all the resource config files. So what am I doing wrong, and how might I find the correct combination of bits and pieces?
Here is the full resourcemanager_waipio_qrd.xml
: https://paste.debian.net/1394821/
Output of aplay -l
on the device: https://paste.debian.net/1394822/
asound.conf
as it currently stands: https://paste.debian.net/1394823/
Asked by Northern Scrub
(1 rep)
Sep 2, 2025, 09:17 PM
Last activity: Sep 4, 2025, 11:24 AM
Last activity: Sep 4, 2025, 11:24 AM