forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/tiwai/sound Pull sound fixes from Takashi Iwai: "Significant changes are: - A regression fix for the new HD-audio LPIB delay counting, VGA-switcheroo race fix - ASoC ams-delta fix for the broken driver loading Otherwise a collection of mostly small / trivial fixes." * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: emu10k1: add chip details for E-mu 1010 PCIe card ALSA: hda - Always check array bounds in alc_get_line_out_pfx ASoC: bells: Correct typo in sub speaker DAI name for WM5110 ALSA: hda - Stop LPIB delay counting on broken hardware ALSA: hda - Fix registration race of VGA switcheroo ALSA: hda - Clean up superfluous position_fix list entries ALSA: ac97 - Fix missing NULL check in snd_ac97_cvol_new() ASoC: codecs: da9055: Minor improvement in ALC calibration process ASoC: dmaengine: Correct Makefile when sound is built as module ASoC: fsi: don't reschedule DMA from an atomic context ASoC: fix documentation in soc-jack ARM: pxa: Fix build error caused by sram.h rename ASoC: wm2200: Fix non-inverted OUT2 mute control ASoC: wm2200: Use rev A register patches on rev B ASoC: bells: Correct typo in sub speaker DAI name for WM5110 ASoC: ams-delta: Convert to use snd_soc_register_card() ASoC: omap-mcpdm: Remove OMAP revision check ASoC: Fix wrong include for McPDM ASoC: omap-abe-twl6040: Fix typo of Vibrator ASoC: twl6040: Fix Stream DAPM mapping
- Loading branch information
Showing
16 changed files
with
130 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1416,6 +1416,15 @@ static struct snd_emu_chip_details emu_chip_details[] = { | |
.ca0108_chip = 1, | ||
.spk71 = 1, | ||
.emu_model = EMU_MODEL_EMU1010B}, /* EMU 1010 new revision */ | ||
/* Tested by Maxim Kachur <[email protected]> 17th Oct 2012. */ | ||
/* This is MAEM8986, 0202 is MAEM8980 */ | ||
{.vendor = 0x1102, .device = 0x0008, .subsystem = 0x40071102, | ||
.driver = "Audigy2", .name = "E-mu 1010 PCIe [MAEM8986]", | ||
.id = "EMU1010", | ||
.emu10k2_chip = 1, | ||
.ca0108_chip = 1, | ||
.spk71 = 1, | ||
.emu_model = EMU_MODEL_EMU1010B}, /* EMU 1010 PCIe */ | ||
/* Tested by [email protected] 8th July 2005. */ | ||
/* This is MAEM8810, 0202 is MAEM8820 */ | ||
{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x40011102, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -575,56 +575,53 @@ static struct snd_soc_card ams_delta_audio_card = { | |
}; | ||
|
||
/* Module init/exit */ | ||
static struct platform_device *ams_delta_audio_platform_device; | ||
static struct platform_device *cx20442_platform_device; | ||
|
||
static int __init ams_delta_module_init(void) | ||
static __devinit int ams_delta_probe(struct platform_device *pdev) | ||
{ | ||
struct snd_soc_card *card = &ams_delta_audio_card; | ||
int ret; | ||
|
||
if (!(machine_is_ams_delta())) | ||
return -ENODEV; | ||
|
||
ams_delta_audio_platform_device = | ||
platform_device_alloc("soc-audio", -1); | ||
if (!ams_delta_audio_platform_device) | ||
return -ENOMEM; | ||
card->dev = &pdev->dev; | ||
|
||
platform_set_drvdata(ams_delta_audio_platform_device, | ||
&ams_delta_audio_card); | ||
|
||
ret = platform_device_add(ams_delta_audio_platform_device); | ||
if (ret) | ||
goto err; | ||
|
||
/* | ||
* Codec platform device could be registered from elsewhere (board?), | ||
* but I do it here as it makes sense only if used with the card. | ||
*/ | ||
cx20442_platform_device = | ||
platform_device_register_simple("cx20442-codec", -1, NULL, 0); | ||
ret = snd_soc_register_card(card); | ||
if (ret) { | ||
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); | ||
card->dev = NULL; | ||
return ret; | ||
} | ||
return 0; | ||
err: | ||
platform_device_put(ams_delta_audio_platform_device); | ||
return ret; | ||
} | ||
late_initcall(ams_delta_module_init); | ||
|
||
static void __exit ams_delta_module_exit(void) | ||
static int __devexit ams_delta_remove(struct platform_device *pdev) | ||
{ | ||
struct snd_soc_card *card = platform_get_drvdata(pdev); | ||
|
||
if (tty_unregister_ldisc(N_V253) != 0) | ||
dev_warn(&ams_delta_audio_platform_device->dev, | ||
dev_warn(&pdev->dev, | ||
"failed to unregister V253 line discipline\n"); | ||
|
||
snd_soc_jack_free_gpios(&ams_delta_hook_switch, | ||
ARRAY_SIZE(ams_delta_hook_switch_gpios), | ||
ams_delta_hook_switch_gpios); | ||
|
||
platform_device_unregister(cx20442_platform_device); | ||
platform_device_unregister(ams_delta_audio_platform_device); | ||
snd_soc_unregister_card(card); | ||
card->dev = NULL; | ||
return 0; | ||
} | ||
module_exit(ams_delta_module_exit); | ||
|
||
#define DRV_NAME "ams-delta-audio" | ||
|
||
static struct platform_driver ams_delta_driver = { | ||
.driver = { | ||
.name = DRV_NAME, | ||
.owner = THIS_MODULE, | ||
}, | ||
.probe = ams_delta_probe, | ||
.remove = __devexit_p(ams_delta_remove), | ||
}; | ||
|
||
module_platform_driver(ams_delta_driver); | ||
|
||
MODULE_AUTHOR("Janusz Krzysztofik <[email protected]>"); | ||
MODULE_DESCRIPTION("ALSA SoC driver for Amstrad E3 (Delta) videophone"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS("platform:" DRV_NAME); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.