-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sound after installing drivers #13
Comments
Hi @kmickz , can you provide the image file you are using? Not all audio formats are supported by the driver. |
Have you tried playing stereo audio? |
can you provide me supported audio file link |
hey @redchenjs i tried all formats but still there is no sound please can you suggest me what i am doing wrong also tried both mono and stereo audio but still make no difference root@OpenWrt:~# aplay -vv pcm1608s.wav |
Hi @kmickz, have you checked the REFCLK pin of the WM8960 and the device tree file you used? Maybe we can take a look at the schematic for the audio part. |
@redchenjs , yes i check REFCLK pin it continuously generating 12Mhz clock(cross-check with CRO) here is my dts file configuration #include "mt7628an.dtsi" #include <dt-bindings/gpio/gpio.h> / { }; &state_default {
}; &wmac { &spi0 {
}; &i2c {
}; &i2s { &gdma { / { |
@kmickz The |
@redchenjs removing refclk from dts file make no difference |
@kmickz I use the I tested the
The playback is fine, and the capture works as well:
My build environment is as follows:
|
hii @redchenjs i was trying to fix this problem can not find solution yet can you please provide me some details regarding your linux 5.4.231 it looks like my DAC is in off state here is some logs which i get
|
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.
logs:--
[ 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
The text was updated successfully, but these errors were encountered: