[alsa-devel] Intel Cherry Trail -- No sound in linux

ZH Tu tuzhihe at pcasl.com
Mon Nov 16 08:43:40 CET 2015


Hi Pierre-Louis, thanks for your reply.

Maybe I am not make myself clear. 

Actually I refer some configure from baytrail platform:
amixer -c0 sset 'codec_out0 mix 0 pcm0_in' on
amixer -c0 sset 'media0_out mix 0 media1_in' on
amixer -c0 sset 'media1_in Gain 0' 80% 
amixer -c0 sset 'media1_in Gain 0 Ramp Delay' 50
amixer -c0 sset 'media1_in Gain 0' off
amixer -c0 sset 'pcm0_in Gain 0' 80% 
amixer -c0 sset 'pcm0_in Gain 0 Ramp Delay' 50
amixer -c0 sset 'pcm0_in Gain 0' off
amixer -c0 sset 'codec_out0 Gain 0' 80%
amixer -c0 sset 'codec_out0 Gain 0 Ramp Delay' 50
amixer -c0 sset 'codec_out0 Gain 0' off

Also there're some settings for the RT5672 codec, but I do not remember now.

After all this being done: 

aplay test.wav 

cat  /sys/kenel/debug/asoc/cherrytrailcraudio/sst-mfld-platform/damp/ssp2\ Tx
ssp2 Tx: On    in 1 out 8
  stream ssp2 Tx  active
 out "static" "AIF1 Playback"
 out "static" "AIF1 Playback"
 in    "static"  "codec_out1"
 in    "static"  "codec_out0"

I think  all the configure for mixer should be ok, otherwise  the wighet will not power on.


I upgrade the kernel from v3.19 to v4.2,  the errors gone, but still no sound at all.

After some check,  all the  clock MCLK, BCLK, LCRK output correctly, but the DACDAT has no output,  so data steaming  do not come out from ssp2.

the dmesg shows:

[   23.767291] sst-mfld-platform sst-mfld-platform: Enter: enable=1 port_name=ssp2-port
[   23.907819] intel_sst_acpi 808622A8:00: Alloc for str 1 pipe 0x90
[   28.951187] sst-mfld-platform sst-mfld-platform: Enter: enable=0 port_name=ssp2-port
[   28.952551] intel_sst_acpi 808622A8:00: Free for str 1 pipe 0x90
[   84.525862] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=3694 end=3695)
[   89.184527] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=3972 end=3973)
[  108.623381] sst-mfld-platform sst-mfld-platform: Enter: enable=1 port_name=ssp2-port
[  108.777031] intel_sst_acpi 808622A8:00: Alloc for str 1 pipe 0x90
[  138.067501] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=6889 end=6890)
[  146.255182] sst-mfld-platform sst-mfld-platform: Enter: enable=0 port_name=ssp2-port
[  146.257638] intel_sst_acpi 808622A8:00: Free for str 1 pipe 0x90
[ 8923.804235] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=27738 end=27739)
[14431.757504] sst-mfld-platform sst-mfld-platform: Enter: enable=1 port_name=ssp2-port
[14431.909137] intel_sst_acpi 808622A8:00: Alloc for str 1 pipe 0x90
[14614.050381] sst-mfld-platform sst-mfld-platform: Enter: enable=0 port_name=ssp2-port
[14614.052970] intel_sst_acpi 808622A8:00: Free for str 1 pipe 0x90


Thanks


Zhihe Tu
 
From: Pierre-Louis Bossart
Date: 2015-11-13 01:20
To: Zhihe Tu; alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] Intel Cherry Trail -- No sound in linux
 
> Yes,I got firmware fw_sst_22a8.bin from http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git -b BSW.
>
>  From the source code of cht_bsw_rt5672.c and rt5672.c, the codec should support S24_LE format, but I found S16_LE is the only format that supported by the codec (from the hw_param).
>
> So the format S16_LE issue will influence the sst firmare ?
 
Probably not. look in cht_codec_init() the tdm slots are configured with 
24 bit outputs.
 
So far it's not clear how far you've got with your series of emails. Did 
you do past the firmware timeout? Did you get past the prepare step with 
all mixers configured? Is there no sound despite the data streaming 
normally?
 
 
__________ Information from ESET Smart Security, version of virus signature database 4468 (20090929) __________
 
The message was checked by ESET Smart Security.
 
http://www.eset.com
 
 
 


More information about the Alsa-devel mailing list