mirror of
https://github.com/suyu-emu/horinux.git
synced 2026-09-21 14:15:21 -07:00
Merge branch 'for-3.5' into for-3.6
This commit is contained in:
@@ -965,9 +965,7 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
|
||||
}
|
||||
|
||||
found:
|
||||
data = snd_soc_read(codec, AIC3X_PLL_PROGA_REG);
|
||||
snd_soc_write(codec, AIC3X_PLL_PROGA_REG,
|
||||
data | (pll_p << PLLP_SHIFT));
|
||||
snd_soc_update_bits(codec, AIC3X_PLL_PROGA_REG, PLLP_MASK, pll_p);
|
||||
snd_soc_write(codec, AIC3X_OVRF_STATUS_AND_PLLR_REG,
|
||||
pll_r << PLLR_SHIFT);
|
||||
snd_soc_write(codec, AIC3X_PLL_PROGB_REG, pll_j << PLLJ_SHIFT);
|
||||
|
||||
@@ -183,6 +183,7 @@
|
||||
|
||||
/* PLL registers bitfields */
|
||||
#define PLLP_SHIFT 0
|
||||
#define PLLP_MASK 7
|
||||
#define PLLQ_SHIFT 3
|
||||
#define PLLR_SHIFT 0
|
||||
#define PLLJ_SHIFT 2
|
||||
|
||||
@@ -1491,6 +1491,7 @@ static int wm2200_bclk_rates_dat[WM2200_NUM_BCLK_RATES] = {
|
||||
|
||||
static int wm2200_bclk_rates_cd[WM2200_NUM_BCLK_RATES] = {
|
||||
5644800,
|
||||
3763200,
|
||||
2882400,
|
||||
1881600,
|
||||
1411200,
|
||||
|
||||
@@ -724,9 +724,6 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode)
|
||||
{
|
||||
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
|
||||
|
||||
if (!wm8994->jackdet || !wm8994->jack_cb)
|
||||
return;
|
||||
|
||||
if (!wm8994->jackdet || !wm8994->jack_cb)
|
||||
return;
|
||||
|
||||
|
||||
@@ -527,6 +527,7 @@ static struct platform_driver asoc_mcpdm_driver = {
|
||||
|
||||
module_platform_driver(asoc_mcpdm_driver);
|
||||
|
||||
MODULE_ALIAS("platform:omap-mcpdm");
|
||||
MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>");
|
||||
MODULE_DESCRIPTION("OMAP PDM SoC Interface");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
@@ -186,36 +186,27 @@ static struct snd_soc_card mioa701 = {
|
||||
.num_links = ARRAY_SIZE(mioa701_dai),
|
||||
};
|
||||
|
||||
static struct platform_device *mioa701_snd_device;
|
||||
|
||||
static int mioa701_wm9713_probe(struct platform_device *pdev)
|
||||
static int __devinit mioa701_wm9713_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
int rc;
|
||||
|
||||
if (!machine_is_mioa701())
|
||||
return -ENODEV;
|
||||
|
||||
dev_warn(&pdev->dev, "Be warned that incorrect mixers/muxes setup will"
|
||||
"lead to overheating and possible destruction of your device."
|
||||
"Do not use without a good knowledge of mio's board design!\n");
|
||||
|
||||
mioa701_snd_device = platform_device_alloc("soc-audio", -1);
|
||||
if (!mioa701_snd_device)
|
||||
return -ENOMEM;
|
||||
|
||||
platform_set_drvdata(mioa701_snd_device, &mioa701);
|
||||
|
||||
ret = platform_device_add(mioa701_snd_device);
|
||||
if (!ret)
|
||||
return 0;
|
||||
|
||||
platform_device_put(mioa701_snd_device);
|
||||
return ret;
|
||||
mioa701.dev = &pdev->dev;
|
||||
rc = snd_soc_register_card(&mioa701);
|
||||
if (!rc)
|
||||
dev_warn(&pdev->dev, "Be warned that incorrect mixers/muxes setup will"
|
||||
"lead to overheating and possible destruction of your device."
|
||||
" Do not use without a good knowledge of mio's board design!\n");
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int __devexit mioa701_wm9713_remove(struct platform_device *pdev)
|
||||
{
|
||||
platform_device_unregister(mioa701_snd_device);
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_soc_unregister_card(card);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+11
-7
@@ -291,9 +291,9 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm,
|
||||
if (dapm->codec->driver->set_bias_level)
|
||||
ret = dapm->codec->driver->set_bias_level(dapm->codec,
|
||||
level);
|
||||
else
|
||||
dapm->bias_level = level;
|
||||
}
|
||||
} else
|
||||
dapm->bias_level = level;
|
||||
|
||||
if (ret != 0)
|
||||
goto out;
|
||||
|
||||
@@ -324,11 +324,10 @@ static void dapm_set_path_status(struct snd_soc_dapm_widget *w,
|
||||
|
||||
val = soc_widget_read(w, reg);
|
||||
val = (val >> shift) & mask;
|
||||
if (invert)
|
||||
val = max - val;
|
||||
|
||||
if ((invert && !val) || (!invert && val))
|
||||
p->connect = 1;
|
||||
else
|
||||
p->connect = 0;
|
||||
p->connect = !!val;
|
||||
}
|
||||
break;
|
||||
case snd_soc_dapm_mux: {
|
||||
@@ -3668,10 +3667,13 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_free);
|
||||
|
||||
static void soc_dapm_shutdown_codec(struct snd_soc_dapm_context *dapm)
|
||||
{
|
||||
struct snd_soc_card *card = dapm->card;
|
||||
struct snd_soc_dapm_widget *w;
|
||||
LIST_HEAD(down_list);
|
||||
int powerdown = 0;
|
||||
|
||||
mutex_lock(&card->dapm_mutex);
|
||||
|
||||
list_for_each_entry(w, &dapm->card->widgets, list) {
|
||||
if (w->dapm != dapm)
|
||||
continue;
|
||||
@@ -3694,6 +3696,8 @@ static void soc_dapm_shutdown_codec(struct snd_soc_dapm_context *dapm)
|
||||
snd_soc_dapm_set_bias_level(dapm,
|
||||
SND_SOC_BIAS_STANDBY);
|
||||
}
|
||||
|
||||
mutex_unlock(&card->dapm_mutex);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user