sound fixes for 4.14-rc6
Linus,
please pull sound fixes for v4.14-rc6 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.14-rc6
The topmost commit is a91d66129fb9bcead12af3ed2008d6ddbf179509
----------------------------------------------------------------
sound fixes for 4.14-rc6
We've got slightly more fixes than wished, but heading to a good shape. Most of changes are about HD-audio fixes, one for a buggy code that went into 4.13, and another for avoiding a crash due to buggy BIOS.
Apart from HD-audio, a sequencer core change that is only for UP config (which must be pretty rare nowadays), and a USB-audio quirk as usual.
----------------------------------------------------------------
Ben Hutchings (1):
ALSA: seq: Enable 'use' locking in all configurations
Jussi Laako (1):
ALSA: usb-audio: Add native DSD support for Pro-Ject Pre Box S2 Digital
Takashi Iwai (3):
ALSA: hda: Abort capability probe at invalid register read
ALSA: hda: Remove superfluous '-' added by printk conversion
ALSA: hda - Fix incorrect TLV callback check introduced during set_fs() removal
--- include/sound/control.h | 3 ++ sound/core/seq/seq_lock.c | 4 -- sound/core/seq/seq_lock.h | 12 ------ sound/core/vmaster.c | 31 +++++++++++++++ sound/hda/hdac_controller.c | 5 +++ sound/pci/hda/hda_codec.c | 97 +++++++++++++++++++++++++-------------------- sound/usb/quirks.c | 1 + 7 files changed, 95 insertions(+), 58 deletions(-)
include/sound/control.h +3 -0
@@ -248,6 +248,9 @@ int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl, void *private_data);void snd_ctl_sync_vmaster (struct snd_kcontrol *kctl,bool hook_only);#define snd_ctl_sync_vmaster_hook (kctl) snd_ctl_sync_vmaster(kctl, true) +int snd_ctl_apply_vmaster_slaves (struct snd_kcontrol *kctl, +int (*func)(struct snd_kcontrol *,void *), +void *arg);/* * Helper functions for jack-detection controls
sound/core/seq/seq_lock.c +0 -4
@@ -23,8 +23,6 @@#include <sound/core.h> #include "seq_lock.h" -#if defined(CONFIG_SMP ) || defined(CONFIG_SND_DEBUG ) -/* wait until all locks are released */ void snd_use_lock_sync_helper (snd_use_lock_t *lockp,const char *file,int line) {
@@ -41,5 +39,3 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) } }EXPORT_SYMBOL (snd_use_lock_sync_helper); - -#endif
sound/core/seq/seq_lock.h +0 -12
@@ -3,8 +3,6 @@#include <linux/sched.h> -#if defined(CONFIG_SMP ) || defined(CONFIG_SND_DEBUG ) -typedef atomic_t snd_use_lock_t ;/* initialize lock */
@@ -20,14 +18,4 @@ typedef atomic_t snd_use_lock_t;void snd_use_lock_sync_helper (snd_use_lock_t *lock,const char *file,int line);#define snd_use_lock_sync (lockp) snd_use_lock_sync_helper(lockp, __BASE_FILE__, __LINE__) -#else /* SMP || CONFIG_SND_DEBUG */ - -typedef spinlock_t snd_use_lock_t ;/* dummy */ -#define snd_use_lock_init (lockp)/**/ -#define snd_use_lock_use (lockp)/**/ -#define snd_use_lock_free (lockp)/**/ -#define snd_use_lock_sync (lockp)/**/ - -#endif /* SMP || CONFIG_SND_DEBUG */ -#endif /* __SND_SEQ_LOCK_H */
sound/core/vmaster.c +31 -0
@@ -484,3 +484,34 @@ void snd_ctl_sync_vmaster(struct snd_kcontrol *kcontrol, bool hook_only) master->hook (master->hook_private_data, master->val); }EXPORT_SYMBOL_GPL (snd_ctl_sync_vmaster); + +/** +* snd_ctl_apply_vmaster_slaves - Apply function to each vmaster slave +* @kctl: vmaster kctl element +* @func: function to apply +* @arg: optional function argument +* +* Apply the function @func to each slave kctl of the given vmaster kctl. +* Returns 0 if successful, or a negative error code. +*/ +int snd_ctl_apply_vmaster_slaves (struct snd_kcontrol *kctl, +int (*func)(struct snd_kcontrol *,void *), +void *arg) +{ +struct link_master *master; +struct link_slave *slave; +int err; + + master =snd_kcontrol_chip (kctl); + err =master_init (master); +if (err <0 ) +return err; +list_for_each_entry (slave, &master->slaves, list) { + err =func (&slave->slave, arg); +if (err <0 ) +return err; + } + +return 0 ; +} +EXPORT_SYMBOL_GPL (snd_ctl_apply_vmaster_slaves);
sound/hda/hdac_controller.c +5 -0
@@ -284,6 +284,11 @@ int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus)dev_dbg (bus->dev,"HDA capability ID: 0x%x\n" , (cur_cap &AZX_CAP_HDR_ID_MASK ) >>AZX_CAP_HDR_ID_OFF ); +if (cur_cap ==-1 ) { +dev_dbg (bus->dev,"Invalid capability reg read\n" ); +break ; + } +switch ((cur_cap &AZX_CAP_HDR_ID_MASK ) >>AZX_CAP_HDR_ID_OFF ) {case AZX_ML_CAP_ID :dev_dbg (bus->dev,"Found ML capability\n" );
sound/pci/hda/hda_codec.c +55 -42
119 lines not on this page · raw message
sound/usb/quirks.c +1 -0
@@ -1354,6 +1354,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,case USB_ID (0x20b1 ,0x2008 ):/* Matrix Audio X-Sabre */ case USB_ID (0x20b1 ,0x300a ):/* Matrix Audio Mini-i Pro */ case USB_ID (0x22d9 ,0x0416 ):/* OPPO HA-1 */ +case USB_ID (0x2772 ,0x0230 ):/* Pro-Ject Pre Box S2 Digital */ if (fp->altsetting ==2 )return SNDRV_PCM_FMTBIT_DSD_U32_BE ;break ;