Skip to content

Commit

Permalink
Revert "soundwire: intel_auxdevice: start the bus at default frequency"
Browse files Browse the repository at this point in the history
Now, we can support more than 1 soundwire bus clock frequency.

This reverts commit c326356.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
  • Loading branch information
bardliao committed Oct 31, 2024
1 parent c605d9a commit 7ded0c4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions drivers/soundwire/intel_auxdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,30 +222,9 @@ static int sdw_master_read_intel_prop(struct sdw_bus *bus)

static int intel_prop_read(struct sdw_bus *bus)
{
struct sdw_master_prop *prop;

/* Initialize with default handler to read all DisCo properties */
sdw_master_read_prop(bus);

/*
* Only one bus frequency is supported so far, filter
* frequencies reported in the DSDT
*/
prop = &bus->prop;
if (prop->clk_freq && prop->num_clk_freq > 1) {
unsigned int default_bus_frequency;

default_bus_frequency =
prop->default_frame_rate *
prop->default_row *
prop->default_col /
SDW_DOUBLE_RATE_FACTOR;

prop->num_clk_freq = 1;
prop->clk_freq[0] = default_bus_frequency;
prop->max_clk_freq = default_bus_frequency;
}

/* read Intel-specific properties */
sdw_master_read_intel_prop(bus);

Expand Down

0 comments on commit 7ded0c4

Please sign in to comment.