Home | History | Annotate | Download | only in sunxi
History log of /src/sys/arch/arm/sunxi/sunxi_codec.c
RevisionDateAuthorComments
 1.14  05-May-2021  jmcneill Fix GENERIC64 build
 1.13  05-May-2021  jmcneill Add support for Allwinner V3s, from Rui-Xiang Guo.
 1.12  27-Jan-2021  thorpej branches: 1.12.4;
Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.11  27-Jan-2021  thorpej Use DEVICE_COMPAT_EOL.
 1.10  25-Jan-2021  thorpej Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
 1.9  18-Jan-2021  thorpej Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.
 1.8  29-Feb-2020  isaki branches: 1.8.6;
Remove rounding by 4 bytes on round_blocksize().
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.
 1.7  08-Jun-2019  isaki branches: 1.7.4;
Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
This eliminates need for audio.c to take care of such (old)
drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
It is handled in the audio layer now.
 1.6  08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.5  20-Apr-2018  bouyer branches: 1.5.2; 1.5.4;
Remove sunxi_codec_drain(). It's optional, and as the DMA is not stopped
at this time I'm not sure what draining the fifo means here. Also,
we're not waiting for the drain to complete.
The upper level will play enough silence when needed to make sure interesting
data have been played.

In sunxi_codec_halt_output() and sunxi_codec_halt_input(), drain the fifo
(and wait for it to complete) before or after disabling the DMA.
 1.4  19-Apr-2018  bouyer Take the interrupt lock in interrupt handler. Seesm to fix the hang I was
seeing with a portaudio2 application.
Don't unmute at attach time, it will be done when the upper level starts
sending data.
 1.3  07-Oct-2017  jmcneill branches: 1.3.2; 1.3.4;
Add A31 audio codec support.
 1.2  27-Aug-2017  jmcneill branches: 1.2.2;
Add sun4i DMA and audio codec support.
 1.1  06-Aug-2017  jmcneill branches: 1.1.2;
Add support for Allwinner H3 audio codec.
 1.1.2.2  09-Aug-2017  snj Pull up following revision(s) (requested by jmcneill in ticket #200):
sys/arch/arm/sunxi/files.sunxi: 1.15-1.16
sys/arch/arm/sunxi/sun6i_dma.c: 1.1-1.2
sys/arch/arm/sunxi/sun8i_h3_ccu.c: 1.9-1.10
sys/arch/arm/sunxi/sun8i_h3_codec.c: 1.1-1.2
sys/arch/arm/sunxi/sunxi_ccu.h: 1.8
sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: 1.5
sys/arch/arm/sunxi/sunxi_codec.c: 1.1
sys/arch/arm/sunxi/sunxi_codec.h: 1.1
sys/arch/evbarm/conf/SUNXI: 1.20-1.21
Add DMA controller driver for sun6i and later family SoCs.
--
Enable sun6idma
--
add DMA gate
--
Fix burst field encoding, and add a helper function to dump registers
from ddb.
--
Add support for H3 audio PLL and digital audio part.
--
Add support for Allwinner H3 audio codec.
--
Enable H3 audio support
--
h3_codec_pr_write: clear write mode bit after setting it; fixes an issue with output being mutex when skipping tracks in mpg123
 1.1.2.1  06-Aug-2017  snj file sunxi_codec.c was added on branch netbsd-8 on 2017-08-09 05:49:50 +0000
 1.2.2.2  28-Aug-2017  skrll Sync with HEAD
 1.2.2.1  27-Aug-2017  skrll file sunxi_codec.c was added on branch nick-nhusb on 2017-08-28 17:51:32 +0000
 1.3.4.1  22-Apr-2018  pgoyette Sync with HEAD
 1.3.2.2  03-Dec-2017  jdolecek update from HEAD
 1.3.2.1  07-Oct-2017  jdolecek file sunxi_codec.c was added on branch tls-maxphys on 2017-12-03 11:35:56 +0000
 1.5.4.2  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.5.4.1  27-Apr-2019  isaki Adapt to audio2.
 1.5.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.5.2.1  10-Jun-2019  christos Sync with HEAD
 1.7.4.1  29-Feb-2020  ad Sync with head.
 1.8.6.1  03-Apr-2021  thorpej Sync with HEAD.
 1.12.4.1  13-May-2021  thorpej Sync with HEAD.

RSS XML Feed