Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eadce07f authored by Clemens Ladisch's avatar Clemens Ladisch
Browse files

ALSA: dice: avoid superflous write at bus reset



When a bus reset happens, the enable register is automatically cleared,
so we do not need to clear it manually when stopping the stream.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 1b70485f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -246,6 +246,9 @@ static void dice_enable_clear(struct dice *dice)
{
	__be32 value;

	if (!dice->global_enabled)
		return;

	value = 0;
	snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST,
			   global_address(dice, GLOBAL_ENABLE),
@@ -1009,6 +1012,8 @@ static void dice_bus_reset(struct fw_unit *unit)
	 * manner.
	 */
	amdtp_out_stream_pcm_abort(&dice->stream);

	dice->global_enabled = false;
	dice_stream_stop_packets(dice);

	dice_owner_update(dice);