# HG changeset patch # User Paul Boddie # Date 1715956375 -7200 # Node ID ef29d83b79f853c895654e388b17f8ae78a282f9 # Parent 6801170ae90dbc3a8a2b72b2043c4c16d526ca4f Fixed MAX98357A (not MAX9835A) references. diff -r 6801170ae90d -r ef29d83b79f8 pkg/devices/lib/aic/src/x1600.cc --- a/pkg/devices/lib/aic/src/x1600.cc Tue May 14 19:14:59 2024 +0200 +++ b/pkg/devices/lib/aic/src/x1600.cc Fri May 17 16:32:55 2024 +0200 @@ -1,7 +1,7 @@ /* * AIC support for the X1600. * - * Copyright (C) 2023 Paul Boddie + * Copyright (C) 2023, 2024 Paul Boddie * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -209,7 +209,7 @@ Where clocks (MCLK, BCLK, LRCLK) are issued only by the X1600, share mode is used. Otherwise, independent (6-line) mode is used. -To drive the MAX9835A, no MCLK is needed. +To drive the MAX98357A, no MCLK is needed. Initialisation involves the following: @@ -220,7 +220,7 @@ - Set the dividers in Aic_i2s_msb_divider for BCLK using the configured I2S clock frequency - Perform a reset by writing to Aic_reset in Aic_config, if necessary -- The MAX9835A may not need any configuration using I2C or some other bus +- The MAX98357A may not need any configuration using I2C or some other bus */ void @@ -322,7 +322,7 @@ /* To play a sample: - Configure the sample size using the Aic_output_size settings in Aic_control - - The sample size will be 16- or 24-bit for the MAX9835A, with the X1600 not + - The sample size will be 16- or 24-bit for the MAX98357A, with the X1600 not supporting 32-bit samples - Configure the number of channels in Aic_control (Aic_channel_mono or Aic_channel_stereo)