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

Commit 2471348a authored by Mingming Yin's avatar Mingming Yin
Browse files

hal: fix speaker protection macro

- use snd_device instead of SND_DEVICE_OUT_SPEAKER
  for audio_extn_get_spkr_prot_snd_device(snd_device)
  to avoid overwriting snd_device.

Change-Id: I9e8a93610292351c9877fd5500511366c6da4048
parent 94cb1109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ int32_t audio_extn_read_xml(struct audio_device *adev, uint32_t mixer_card,
#define audio_extn_spkr_prot_stop_processing()     (0)
#define audio_extn_spkr_prot_is_enabled() (false)
#define audio_extn_spkr_prot_get_acdb_id(snd_device)         (-EINVAL)
#define audio_extn_get_spkr_prot_snd_device(snd_device) (SND_DEVICE_OUT_SPEAKER)
#define audio_extn_get_spkr_prot_snd_device(snd_device) (snd_device)
#else
void audio_extn_spkr_prot_init(void *adev);
int audio_extn_spkr_prot_start_processing(snd_device_t snd_device);