sunxi-sound-soc: Use new sunxi dma-compat code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-sound-soc: Add support for sun7i

Note: spdif untested, i2s disabled for sun7i since the i2s code needs various
adjustments for sun7i support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-codec: Fix memleak on hw_free()

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-hdmi-audio: Fix un-support sample_rate errors

sndhdmi_hw_params gets called before sun4i_hdmiaudio_trigger, causing
hdmi_audio_enable to be called before hdmi_set_audio_para, which makes
the hdmi_core.c: audio_config() unhappy and report errors like this one:
[DISP] un-support sample_rate,value=0

This patch fixes this by moving the calling of hdmi_set_audio_para to
sndhdmi_hw_params. It also makes some changes to avoid doing audio_config
multiple times if not necessary, and lastly it makes Hdmi_run_thread check
for changes 4 times / second, rather then once every 2 seconds, so that
audio-setting changes get applied with a maximum latency of 250 ms.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i: Use high-res counter for sched-clock

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun7i: Make early boot a bit more quiet

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-sound-codec: Silence some uninteresting debug messages

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Don't use sid for mac address if it is all 0

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Remove dead dma tx code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Remove dead ccmu code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Remove dead plat_data code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Remove dead eeprom code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Remove dead internal phy code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Use new sunxi dma-compat code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Add sun7i (A20) support

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_wemac: Make driver init a bit more quiet

Signed-off-by: Hans de Goede <hdegoede@redhat.com>