]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soundwire: mipi-disco: remove DPn audio-modes
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 3 Oct 2024 07:06:44 +0000 (15:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Oct 2024 07:58:51 +0000 (13:28 +0530)
The concept of DPn audio-modes was never used by anyone, and was
removed from the DisCo for SoundWire 2.0 specification.

Remove the definitions and TODO.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20241003070650.62787-9-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/mipi_disco.c
include/linux/soundwire/sdw.h

index fdab3d4a1379b59aaddaa43ebfa32afaff5ae2b3..79cf8212f97ad888a2c61985b781cd2016ed3b79 100644 (file)
@@ -304,8 +304,6 @@ static int sdw_slave_read_dpn(struct sdw_slave *slave,
                fwnode_property_read_u32(node, "mipi-sdw-port-encoding-type",
                                         &dpn[i].port_encoding);
 
-               /* TODO: Read audio mode */
-
                fwnode_handle_put(node);
 
                i++;
index cc0afb8af3332baa3a2af5036dba44b1b6d9edcb..66feaa79ecfc7e0d603d17dcedbc2ea3acf94f02 100644 (file)
@@ -254,41 +254,8 @@ struct sdw_dp0_prop {
        bool imp_def_interrupts;
 };
 
-/**
- * struct sdw_dpn_audio_mode - Audio mode properties for DPn
- * @bus_min_freq: Minimum bus frequency, in Hz
- * @bus_max_freq: Maximum bus frequency, in Hz
- * @bus_num_freq: Number of discrete frequencies supported
- * @bus_freq: Discrete bus frequencies, in Hz
- * @min_freq: Minimum sampling frequency, in Hz
- * @max_freq: Maximum sampling bus frequency, in Hz
- * @num_freq: Number of discrete sampling frequency supported
- * @freq: Discrete sampling frequencies, in Hz
- * @prep_ch_behave: Specifies the dependencies between Channel Prepare
- * sequence and bus clock configuration
- * If 0, Channel Prepare can happen at any Bus clock rate
- * If 1, Channel Prepare sequence shall happen only after Bus clock is
- * changed to a frequency supported by this mode or compatible modes
- * described by the next field
- * @glitchless: Bitmap describing possible glitchless transitions from this
- * Audio Mode to other Audio Modes
- */
-struct sdw_dpn_audio_mode {
-       u32 bus_min_freq;
-       u32 bus_max_freq;
-       u32 bus_num_freq;
-       u32 *bus_freq;
-       u32 max_freq;
-       u32 min_freq;
-       u32 num_freq;
-       u32 *freq;
-       u32 prep_ch_behave;
-       u32 glitchless;
-};
-
 /**
  * struct sdw_dpn_prop - Data Port DPn properties
- * @audio_modes: Audio modes supported
  * @num: port number
  * @max_word: Maximum number of bits in a Payload Channel Sample, 1 to 64
  * (inclusive)
@@ -318,7 +285,6 @@ struct sdw_dpn_audio_mode {
  * machine
  */
 struct sdw_dpn_prop {
-       struct sdw_dpn_audio_mode *audio_modes;
        u32 num;
        u32 max_word;
        u32 min_word;