I can not get the detailed information about the MIC Array interface etc of the Rock Pi S PoE hat!
There are only very simple GPIO pinout explanation on the Wiki .
I can not get the detailed information about the MIC Array interface etc of the Rock Pi S PoE hat!
There are only very simple GPIO pinout explanation on the Wiki .
I know where is the RockpiS GPIO info. But I wanna the MIC Array FPC interface pin info on the hat. Thanks.
Another question: the headphone interface from hat has no any sound.
rock@rockpis:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: rockchiprk3308a [rockchip,rk3308-acodec], device 0: dailink-multicodecs rk3308-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
rock@rockpis:~$ aplay -v 1.wav
Playing WAVE '1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 1 'rockchip,rk3308-acodec' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 22052
period_size : 5513
period_time : 125011
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 5513
period_event : 0
start_threshold : 22052
stop_threshold : 22052
silence_threshold: 0
silence_size : 0
boundary : 6207086186423386112
appl_ptr : 0
hw_ptr : 0
I added FPC interface. See https://wiki.radxa.com/ROCKPI_S_PoE_HAT#FPC_pinout
While using aplay, you need to add option -D to specify card 1 and device 0.
Please note here, the default is the card 1 and device 0. It’s the same with aplay
command.
rock@rockpis:~$ aplay -D hw:CARD=rockchiprk3308a,DEV=0 -v 1.wav
Playing WAVE '1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 1 'rockchip,rk3308-acodec' device 0 subdevice 0
After checking ROCK PI S POE schematic, I find that one GPIO must be set to high level.
That GPIO is GPIO0_B7 which provides function of audio mute.
Please try the following commands
echo 15 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio15/direction
echo 1 > /sys/class/gpio/gpio15/value
aplay -D plughw:1,0 01.wav
More details: https://wiki.radxa.com/ROCKPI_S_PoE_HAT#Usage%20of%20Headphone%20jack