sound fixes for 4.3-rc7
There is nothing to worry you much, only a few small & stable patches are found for usual stuff, HD-audio (a Lenovo laptop quirk, a fix for minor error handling) and ASoC (trivial fixes for RT298 and WM codecs). The only remaining major change is the fix for ASoC SX_TLV control that was overseen during refactoring, but the fix itself is trivial and safe. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJWKd1hAAoJEGwxgFQ9KSmkeAQP/iiF8JXyaCnwh860DK697PYK FSrVgxfRHjzhTUR18IugfUJV35TEq7h+MqiWCaeHESxrDAZzR1bH/fRdg0MxKLDg 28MTn3XGgIzxqHN3OeI9DQ3GQfLv+xeJnGhYjGtyVYNCINQSd02taTxo4ec/cA1N Nr8QQQPeBw8RkxLJ8Vmk0Oeo7Ew2vdzecyA07d0//EJqMnyxF/k+4zfoi8K8+DXc 6h/IBrwDfOPvlXVReIYCGedWHBDRjvipLD/1c3DYJq4X05JKgyLoo6ksJWu229Vw tuzo7a6q41z8pWV/BhTyrg5tmcF0BcOhNnnJwW2QpfIlcwsgR6zcRq4j14fSStEk zPaN1RH3rTRfDd2kVN2PtEXBPqYCIoSkyRB3jhWuf3OhAUtBEoSAY55qvGPJ/fhq HZjO13wurnvaJ1d43DxWai4dWY7lIr8J9TCo1LU/MsvRbNfw99g6dUkfI/UMOPM7 t1Fa8DkKMiZyW5qLxW64bIh+5Exb8yFiSHbJNt7Qzk+YceivG2MDGNf/MZ7gptec 59E7FSywhS20bDG4bRw/2ypU3H8PktpE/QNirb3aVIV6Bq+PwlSeZqZskIokop0k ievsCi0ENyeEtB59kUK73PfbpLdTQNBY1t1wTTLVruDjEVpjVcfTayGlaudu/Ukp Kk8pHHL5JitDFPsD9A4m =s57z -----END PGP SIGNATURE----- Merge tag 'sound-4.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound Pull sound fixes from Takashi Iwai: "There is nothing to worry you much, only a few small & stable patches are found for usual stuff, HD-audio (a Lenovo laptop quirk, a fix for minor error handling) and ASoC (trivial fixes for RT298 and WM codecs). The only remaining major change is the fix for ASoC SX_TLV control that was overseen during refactoring, but the fix itself is trivial and safe" * tag 'sound-4.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ASoC: wm8962: mark cache_dirty flag after software reset in pm_resume ASoC: rt298: fix wrong setting of gpio2_en ASoC: wm8904: Correct number of EQ registers ALSA: hda - Fix deadlock at error in building PCM ASoC: Add info callback for SX_TLV controls ASoC: rt298: correct index default value ALSA: hda - Fix inverted internal mic on Lenovo G50-80 ALSA: hdac: Explicitly add io.h
This commit is contained in:
commit
0122835a02
@ -86,7 +86,7 @@
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
|
||||
SNDRV_CTL_ELEM_ACCESS_READWRITE, \
|
||||
.tlv.p = (tlv_array),\
|
||||
.info = snd_soc_info_volsw, \
|
||||
.info = snd_soc_info_volsw_sx, \
|
||||
.get = snd_soc_get_volsw_sx,\
|
||||
.put = snd_soc_put_volsw_sx, \
|
||||
.private_value = (unsigned long)&(struct soc_mixer_control) \
|
||||
@ -156,7 +156,7 @@
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
|
||||
SNDRV_CTL_ELEM_ACCESS_READWRITE, \
|
||||
.tlv.p = (tlv_array), \
|
||||
.info = snd_soc_info_volsw, \
|
||||
.info = snd_soc_info_volsw_sx, \
|
||||
.get = snd_soc_get_volsw_sx, \
|
||||
.put = snd_soc_put_volsw_sx, \
|
||||
.private_value = (unsigned long)&(struct soc_mixer_control) \
|
||||
@ -574,6 +574,8 @@ int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol);
|
||||
int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_info *uinfo);
|
||||
int snd_soc_info_volsw_sx(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_info *uinfo);
|
||||
#define snd_soc_info_bool_ext snd_ctl_boolean_mono_info
|
||||
int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol);
|
||||
|
@ -119,7 +119,7 @@
|
||||
#define WM8904_MIC_REGS 2
|
||||
#define WM8904_GPIO_REGS 4
|
||||
#define WM8904_DRC_REGS 4
|
||||
#define WM8904_EQ_REGS 25
|
||||
#define WM8904_EQ_REGS 24
|
||||
|
||||
/**
|
||||
* DRC configurations are specified with a label and a set of register
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/io.h>
|
||||
#include <sound/hdaudio_ext.h>
|
||||
|
||||
MODULE_DESCRIPTION("HDA extended core");
|
||||
|
@ -3367,10 +3367,8 @@ int snd_hda_codec_build_pcms(struct hda_codec *codec)
|
||||
int dev, err;
|
||||
|
||||
err = snd_hda_codec_parse_pcms(codec);
|
||||
if (err < 0) {
|
||||
snd_hda_codec_reset(codec);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
|
||||
/* attach a new PCM streams */
|
||||
list_for_each_entry(cpcm, &codec->pcm_list_head, list) {
|
||||
|
@ -819,6 +819,7 @@ static const struct snd_pci_quirk cxt5066_fixups[] = {
|
||||
SND_PCI_QUIRK(0x17aa, 0x21da, "Lenovo X220", CXT_PINCFG_LENOVO_TP410),
|
||||
SND_PCI_QUIRK(0x17aa, 0x21db, "Lenovo X220-tablet", CXT_PINCFG_LENOVO_TP410),
|
||||
SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo IdeaPad Z560", CXT_FIXUP_MUTE_LED_EAPD),
|
||||
SND_PCI_QUIRK(0x17aa, 0x390b, "Lenovo G50-80", CXT_FIXUP_STEREO_DMIC),
|
||||
SND_PCI_QUIRK(0x17aa, 0x3975, "Lenovo U300s", CXT_FIXUP_STEREO_DMIC),
|
||||
SND_PCI_QUIRK(0x17aa, 0x3977, "Lenovo IdeaPad U310", CXT_FIXUP_STEREO_DMIC),
|
||||
SND_PCI_QUIRK(0x17aa, 0x397b, "Lenovo S205", CXT_FIXUP_STEREO_DMIC),
|
||||
|
@ -50,24 +50,24 @@ struct rt298_priv {
|
||||
};
|
||||
|
||||
static struct reg_default rt298_index_def[] = {
|
||||
{ 0x01, 0xaaaa },
|
||||
{ 0x02, 0x8aaa },
|
||||
{ 0x01, 0xa5a8 },
|
||||
{ 0x02, 0x8e95 },
|
||||
{ 0x03, 0x0002 },
|
||||
{ 0x04, 0xaf01 },
|
||||
{ 0x08, 0x000d },
|
||||
{ 0x09, 0xd810 },
|
||||
{ 0x0a, 0x0120 },
|
||||
{ 0x04, 0xaf67 },
|
||||
{ 0x08, 0x200f },
|
||||
{ 0x09, 0xd010 },
|
||||
{ 0x0a, 0x0100 },
|
||||
{ 0x0b, 0x0000 },
|
||||
{ 0x0d, 0x2800 },
|
||||
{ 0x0f, 0x0000 },
|
||||
{ 0x19, 0x0a17 },
|
||||
{ 0x0f, 0x0022 },
|
||||
{ 0x19, 0x0217 },
|
||||
{ 0x20, 0x0020 },
|
||||
{ 0x33, 0x0208 },
|
||||
{ 0x46, 0x0300 },
|
||||
{ 0x49, 0x0004 },
|
||||
{ 0x4f, 0x50e9 },
|
||||
{ 0x50, 0x2000 },
|
||||
{ 0x63, 0x2902 },
|
||||
{ 0x49, 0x4004 },
|
||||
{ 0x4f, 0x50c9 },
|
||||
{ 0x50, 0x3000 },
|
||||
{ 0x63, 0x1b02 },
|
||||
{ 0x67, 0x1111 },
|
||||
{ 0x68, 0x1016 },
|
||||
{ 0x69, 0x273f },
|
||||
@ -1214,7 +1214,7 @@ static int rt298_i2c_probe(struct i2c_client *i2c,
|
||||
mdelay(10);
|
||||
|
||||
if (!rt298->pdata.gpio2_en)
|
||||
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x4000);
|
||||
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x40);
|
||||
else
|
||||
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0);
|
||||
|
||||
|
@ -3808,6 +3808,8 @@ static int wm8962_runtime_resume(struct device *dev)
|
||||
|
||||
wm8962_reset(wm8962);
|
||||
|
||||
regcache_mark_dirty(wm8962->regmap);
|
||||
|
||||
/* SYSCLK defaults to on; make sure it is off so we can safely
|
||||
* write to registers if the device is declocked.
|
||||
*/
|
||||
|
@ -206,6 +206,34 @@ int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_info_volsw);
|
||||
|
||||
/**
|
||||
* snd_soc_info_volsw_sx - Mixer info callback for SX TLV controls
|
||||
* @kcontrol: mixer control
|
||||
* @uinfo: control element information
|
||||
*
|
||||
* Callback to provide information about a single mixer control, or a double
|
||||
* mixer control that spans 2 registers of the SX TLV type. SX TLV controls
|
||||
* have a range that represents both positive and negative values either side
|
||||
* of zero but without a sign bit.
|
||||
*
|
||||
* Returns 0 for success.
|
||||
*/
|
||||
int snd_soc_info_volsw_sx(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_info *uinfo)
|
||||
{
|
||||
struct soc_mixer_control *mc =
|
||||
(struct soc_mixer_control *)kcontrol->private_value;
|
||||
|
||||
snd_soc_info_volsw(kcontrol, uinfo);
|
||||
/* Max represents the number of levels in an SX control not the
|
||||
* maximum value, so add the minimum value back on
|
||||
*/
|
||||
uinfo->value.integer.max += mc->min;
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_info_volsw_sx);
|
||||
|
||||
/**
|
||||
* snd_soc_get_volsw - single mixer get callback
|
||||
* @kcontrol: mixer control
|
||||
|
Loading…
x
Reference in New Issue
Block a user