mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 04:46:51 +07:00
964af639ad
In the early commit adcdd0d5a1
("ALSA: usb-audio: Skip volume
controls triggers hangup on Dell USB Dock"), we add the mixer quirks
for Dell dock to skip two mixer FU's for playback. This supposed that
the device has always the proper initial volume, but it doesn't seem
always correct.
This patch adds the explicit initialization of the volumes to the
fixed 0dB at the device probe time. Also, such a fixup is needed
after the resume, so a new function is hooked to the resume callback
as well.
Bugzilla: http://bugzilla.suse.com/show_bug.cgi?id=1089467
Signed-off-by: Takashi Iwai <tiwai@suse.de>
23 lines
655 B
C
23 lines
655 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef SND_USB_MIXER_QUIRKS_H
|
|
#define SND_USB_MIXER_QUIRKS_H
|
|
|
|
int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer);
|
|
|
|
void snd_emuusb_set_samplerate(struct snd_usb_audio *chip,
|
|
unsigned char samplerate_id);
|
|
|
|
void snd_usb_mixer_rc_memory_change(struct usb_mixer_interface *mixer,
|
|
int unitid);
|
|
|
|
void snd_usb_mixer_fu_apply_quirk(struct usb_mixer_interface *mixer,
|
|
struct usb_mixer_elem_info *cval, int unitid,
|
|
struct snd_kcontrol *kctl);
|
|
|
|
#ifdef CONFIG_PM
|
|
void snd_usb_mixer_resume_quirk(struct usb_mixer_interface *mixer);
|
|
#endif
|
|
|
|
#endif /* SND_USB_MIXER_QUIRKS_H */
|
|
|