On Sun, Sep 23, 2018 at 5:59 PM Vicente Bergas <vicencb@xxxxxxxxx> wrote: > > Hi, > from v4.18 to v4.19-rc1 there is this commit > 75b31192fe6ad20b42276b20ee3bdf1493216d63 > ASoC: rockchip: add config for rockchip dmaengine pcm register > which broke hdmi audio on rockchip. > Now testing v4.19-rc4 which this single commit reverted and it works ok. > > As shown in below logs, there is no evidence of the breakage from dmesg. > "aplay -l" also shows no issues, but pulseaudio does not detect the > sound card. > When testing with "aplay -vv *.wav" it works fine with the commit > reverted, but otherwise, aplay just uses pulseaudio's dummy output. > > Regards, > Vicenç. > > #################### > # v4.19-rc4 as is: # > #################### > $ dmesg | fgrep -i -e hdmi -e audio -e sound -e alsa -e i2s > Advanced Linux Sound Architecture Driver Initialized. > rockchip-drm display-subsystem: Linked as a consumer to ff940000.hdmi > rockchip-drm display-subsystem: failed to bind ff940000.hdmi (ops > 0xffff0000089ddbd0): -517 > dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a > with HDCP (DWC HDMI 2.0 TX PHY) > rockchip-drm display-subsystem: bound ff940000.hdmi (ops 0xffff0000089ddbd0) > asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok > asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! > ALSA device list: > #0: hdmi-sound > > $ aplay -l > **** List of PLAYBACK Hardware Devices **** > card 0: hdmisound [hdmi-sound], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > $ pactl list sinks > Sink #0 > Description: Dummy Output > > ####################################### > # v4.19-rc4 with the commit reverted: # > ####################################### > $ dmesg | fgrep -i -e hdmi -e audio -e sound -e alsa -e i2s > Advanced Linux Sound Architecture Driver Initialized. > rockchip-drm display-subsystem: Linked as a consumer to ff940000.hdmi > rockchip-drm display-subsystem: failed to bind ff940000.hdmi (ops > 0xffff000008a3e028): -517 > dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a > with HDCP (DWC HDMI 2.0 TX PHY) > rockchip-drm display-subsystem: bound ff940000.hdmi (ops 0xffff000008a3e028) > asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok > asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! > ALSA device list: > #0: hdmi-sound > > $ aplay -l > **** List of PLAYBACK Hardware Devices **** > card 0: hdmisound [hdmi-sound], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 [] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > $ pactl list sinks > Sink #0 > Name: alsa_output.platform-hdmi-sound.stereo-fallback > Description: Built-in Audio Stereo > Driver: module-alsa-card.c Hi, with v4.20-rc3 the situation had a slight improvement: now the sound card is detected. But sadly, still no sound. Any application trying to play a sound hangs forever. Here is the relevant information: ########################################################### # with # 75b31192fe6ad20b42276b20ee3bdf1493216d63 # and # 24d6638302b48328a58c13439276d4531af4ca7d # APPLIED ########################################################### $ dmesg | fgrep -i -e hdmi -e audio -e sound -e alsa -e i2s [ 0.210896] Advanced Linux Sound Architecture Driver Initialized. [ 8.785931] ALSA device list: [ 8.786199] No soundcards found. [ 24.567624] rockchip-drm display-subsystem: Linked as a consumer to ff940000.hdmi [ 24.573894] dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) [ 24.575474] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm]) [ 24.750962] asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok [ 24.751915] asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! $ aplay -vvvvvvvv Noise.wav Playing WAVE 'Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 16 buffer_size : 24000 period_size : 6000 period_time : 125000 tstamp_mode : NONE tstamp_type : GETTIMEOFDAY period_step : 1 avail_min : 6000 period_event : 0 start_threshold : 24000 stop_threshold : 24000 silence_threshold: 0 silence_size : 0 boundary : 6755399441055744000 # Nothing happens, manual interrupt with ^C. Aborted by signal Interrupt... aplay: pcm_write:2053: write error: Interrupted system call ########################################################### # with # 75b31192fe6ad20b42276b20ee3bdf1493216d63 # and # 24d6638302b48328a58c13439276d4531af4ca7d # REVERTED ########################################################### $ dmesg | fgrep -i -e hdmi -e audio -e sound -e alsa -e i2s [ 0.167223] Advanced Linux Sound Architecture Driver Initialized. [ 7.438661] rockchip-drm display-subsystem: Linked as a consumer to ff940000.hdmi [ 7.447168] rockchip-drm display-subsystem: failed to bind ff940000.hdmi (ops 0xffff000008a907a0): -517 [ 7.977808] dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY) [ 7.979373] rockchip-drm display-subsystem: bound ff940000.hdmi (ops 0xffff000008a907a0) [ 8.458666] asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok [ 8.464794] asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! [ 8.610607] ALSA device list: [ 8.622649] #0: hdmi-sound $ aplay -vvvvvvvv Noise.wav Playing WAVE 'Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 16 buffer_size : 24000 period_size : 6000 period_time : 125000 tstamp_mode : NONE tstamp_type : GETTIMEOFDAY period_step : 1 avail_min : 6000 period_event : 0 start_threshold : 24000 stop_threshold : 24000 silence_threshold: 0 silence_size : 0 boundary : 6755399441055744000 # I can hear it and application returns successfully. Regards, Vicenç. _______________________________________________ Linux-rockchip mailing list Linux-rockchip@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-rockchip