The JZ4780 I2S can feed either the internal audio codec or the HDMI
authorjmcneill <jmcneill@FreeBSD.org>
Thu, 29 Dec 2016 14:00:10 +0000 (14:00 +0000)
committerjmcneill <jmcneill@FreeBSD.org>
Thu, 29 Dec 2016 14:00:10 +0000 (14:00 +0000)
commit9797927a9063b741331ee7823b5f28c2f6688a38
treea2369b02d5a5edda110257a9e7aa54b59c36c159
parent760b3e4651e1d8120db9113f89d586a39234b6de
The JZ4780 I2S can feed either the internal audio codec or the HDMI
transmitter, but not both at the same time. This patch:

 - Adds a dev.pcm.0.internal_codec sysctl node for selecting between
   internal and external codec
 - Changes playback sample rate from 96 kHz to 48 kHz for HDMI compatibility
 - Enables i2s clock on codec access

Reviewed by: br
Differential Revision: https://reviews.freebsd.org/D8960
sys/mips/ingenic/jz4780_aic.c
sys/mips/ingenic/jz4780_codec.c
sys/mips/ingenic/jz4780_codec.h