hii
i have mt7628evb board with wm8960 codec openwrt version is 21.02. mt762x-wm8960 driver version is 5.4 the device is registered but when i play any wav file there is no sound. can anyone suggest me what is wrong with the configuration.
[ 14.834064] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.981660] i2c /dev entries driver
[ 15.000940] ralink_gdma: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.039663] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[ 15.116108] i2c-mt7621 10000900.i2c: clock 100 kHz
[ 15.140496] ralink-i2s 10000a00.i2s: mclk 480MHz
[ 15.205956] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok
[ 15.261825] urngd: v1.0.2 started.
[ 15.340943] Loading modules backported from Linux version v5.10.157-0-gf4245f05389c
aplay -l output
root@OpenWrt:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Card [MT762X WM8960 ASoC Card], device 0: wm8960-hifi wm8960-hifi-0 [wm8960-hifi wm8960-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@OpenWrt:/# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Card
MT762X WM8960 ASoC Card, wm8960-hifi wm8960-hifi-0
Default Audio Device
sysdefault:CARD=Card
MT762X WM8960 ASoC Card, wm8960-hifi wm8960-hifi-0
Default Audio Device
commands given to amixer
amixer sset "Headphone" 90
mixer sset "Speaker" 90Simple mixer control 'Headphone',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 90 [71%] [-31.00dB]
Front Right: Playback 90 [71%] [-31.00dB]
root@OpenWrt:/# amixer sset "Speaker" 90
Simple mixer control 'Speaker',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 90 [71%] [-31.00dB]
Front Right: Playback 90 [71%] [-31.00dB]
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# amixer sset "Left Output Mixer PCM" on
ixer sset "Right Output Mixer PCM" onSimple mixer control 'Left Output Mixer PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
root@OpenWrt:/# amixer sset "Right Output Mixer PCM" on
Simple mixer control 'Right Output Mixer PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
aplay sampl music play
aplay -vv preamble10.wav
Playing WAVE 'preamble10.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S16_LE)
Transformation table:
0 <- 0
1 <- 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 22050
exact rate : 22050 (22050/1)
msbits : 16
buffer_size : 10240
period_size : 2048
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2048
period_event : 0
start_threshold : 10240
stop_threshold : 10240
silence_threshold: 0
silence_size : 0
boundary : 1342177280
Slave: Hardware PCM card 0 'MT762X WM8960 ASoC Card' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 22050
exact rate : 22050 (22050/1)
msbits : 16
buffer_size : 10240
period_size : 2048
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2048
period_event : 0
start_threshold : 10240
stop_threshold : 10240
silence_threshold: 0
silence_size : 0
boundary : 1342177280
appl_ptr : 0
hw_ptr : 0