diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 16:00:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 16:00:13 -0400 |
commit | b2094ef840697bc8ca5d17a83b7e30fad5f1e9fa (patch) | |
tree | 64e5f7253b6a85b6d5d36f95c0d3c67c1798918d /sound/soc/codecs/sgtl5000.c | |
parent | 424a6f6ef990b7e9f56f6627bfc6c46b493faeb4 (diff) | |
parent | 6681bc0deba495fad0d6fb349e40524abd1b1732 (diff) |
Merge tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull updates of sound stuff from Takashi Iwai:
"Here is the first big update chunk of sound stuff for 3.4-rc1.
In the common sound infrastructure, there are a few changes for
dynamic PCM support (used in ASoC) and a few clean-ups. Majority of
changes are found, as usual, in HD-audio and ASoC.
Some highlights of HD-audio changes:
- All the long-standing static quirk codes for Realtek codec were
finally removed by fixing and extending the Realtek auto-parser.
- The mute-LED control is standardized over all HD-audio codec
drivers using the extended vmaster hook.
- The vmaster slave mixer elements are initialized to 0dB as default
so that the user won't be annoyed by the silent output after
updates, e.g. due to the additions of new elements.
- Other many fix-ups for the misc HD-audio devices.
In the ASoC side, this is a very active release, including a quite a
few framework enhancements. Some highlights:
- Support for widgets not associated with a CODEC, an important part
of the dynamic PCM framework.
- A library factoring out the common code shared by dmaengine based
DMA drivers contributed by Lars-Peter Clausen. This will save a
lot of code and make it much easier to deploy enhancements to
dmaengine.
- Support for binary controls, used for providing runtime
configuration of algorithm coefficients.
- A new DAPM widget type for regulator supplies allowing drivers for
devices that can power down unused supplies while active to do
without any per-driver code.
- DAPM widgets for DAIs, initially giving a speed boost for playback
startup and shutdown and also the basis for CODEC<->CODEC DAI link
support.
- Support for specifying the number of significant bits on audio
interfaces, useful for allowing applications to know how much
effort to put into generating data for a larger sample format.
- Conversion of the FSI driver used on some SH processors to
DMAEngine.
- Conversion of EP93xx drivers to DMAEngine.
- New CODEC drivers for Maxim MAX9768 and Wolfson Microelectronics
WM2200.
- Move audmux driver from arc/arm to sound/soc
- McBSP move from arch/ to sound/ and updates
Also, a few small updates and fixes for other drivers like au88x0,
ymfpci, USB 6fire, USB usx2yaudio are included."
* tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (446 commits)
ASoC: wm8994: Provide VMID mode control and fix default sequence
ASoC: wm8994: Add missing break in resume
ASoC: wm_hubs: Don't actively manage LINEOUT_VMID_BUF
ASoC: pxa-ssp: atomically set stream active masks
ASoC: fsl: p1022ds: tell the WM8776 codec driver that it's the master
ASoC: Samsung: Added to support mono recording
ALSA: hda - Fix build with CONFIG_PM=n
ALSA: au88x0 - Avoid possible Oops at unbinding
ALSA: usb-audio - Fix build error by consitification of rate list
ASoC: core: Fix obscure leak of runtime array
ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link()
ALSA: pcm: Constify the list in snd_pcm_hw_constraint_list
ASoC: wm8996: Add 44.1kHz support
ALSA: hda - Fix build of patch_sigmatel.c without CONFIG_SND_HDA_POWER_SAVE
ASoC: mx27vis-aic32x4: Convert it to platform driver
ALSA: hda - fix printing of high HDMI sample rates
ALSA: ymfpci - Fix legacy registers on S3/S4 resume
ALSA: control - Fixe a trailing white space error
ALSA: hda - Add expose_enum_ctl flag to snd_hda_add_vmaster_hook()
ALSA: hda - Add "Mute-LED Mode" enum control
...
Diffstat (limited to 'sound/soc/codecs/sgtl5000.c')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 7f4ba819a9f6..d1926266fe00 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c | |||
@@ -227,7 +227,7 @@ static const struct snd_soc_dapm_widget sgtl5000_dapm_widgets[] = { | |||
227 | }; | 227 | }; |
228 | 228 | ||
229 | /* routes for sgtl5000 */ | 229 | /* routes for sgtl5000 */ |
230 | static const struct snd_soc_dapm_route audio_map[] = { | 230 | static const struct snd_soc_dapm_route sgtl5000_dapm_routes[] = { |
231 | {"Capture Mux", "LINE_IN", "LINE_IN"}, /* line_in --> adc_mux */ | 231 | {"Capture Mux", "LINE_IN", "LINE_IN"}, /* line_in --> adc_mux */ |
232 | {"Capture Mux", "MIC_IN", "MIC_IN"}, /* mic_in --> adc_mux */ | 232 | {"Capture Mux", "MIC_IN", "MIC_IN"}, /* mic_in --> adc_mux */ |
233 | 233 | ||
@@ -1248,7 +1248,7 @@ static int sgtl5000_enable_regulators(struct snd_soc_codec *codec) | |||
1248 | } | 1248 | } |
1249 | 1249 | ||
1250 | rev = (reg & SGTL5000_REVID_MASK) >> SGTL5000_REVID_SHIFT; | 1250 | rev = (reg & SGTL5000_REVID_MASK) >> SGTL5000_REVID_SHIFT; |
1251 | dev_info(codec->dev, "sgtl5000 revision %d\n", rev); | 1251 | dev_info(codec->dev, "sgtl5000 revision 0x%x\n", rev); |
1252 | 1252 | ||
1253 | /* | 1253 | /* |
1254 | * workaround for revision 0x11 and later, | 1254 | * workaround for revision 0x11 and later, |
@@ -1353,15 +1353,6 @@ static int sgtl5000_probe(struct snd_soc_codec *codec) | |||
1353 | if (ret) | 1353 | if (ret) |
1354 | goto err; | 1354 | goto err; |
1355 | 1355 | ||
1356 | snd_soc_add_controls(codec, sgtl5000_snd_controls, | ||
1357 | ARRAY_SIZE(sgtl5000_snd_controls)); | ||
1358 | |||
1359 | snd_soc_dapm_new_controls(&codec->dapm, sgtl5000_dapm_widgets, | ||
1360 | ARRAY_SIZE(sgtl5000_dapm_widgets)); | ||
1361 | |||
1362 | snd_soc_dapm_add_routes(&codec->dapm, audio_map, | ||
1363 | ARRAY_SIZE(audio_map)); | ||
1364 | |||
1365 | snd_soc_dapm_new_widgets(&codec->dapm); | 1356 | snd_soc_dapm_new_widgets(&codec->dapm); |
1366 | 1357 | ||
1367 | return 0; | 1358 | return 0; |
@@ -1402,6 +1393,12 @@ static struct snd_soc_codec_driver sgtl5000_driver = { | |||
1402 | .reg_cache_step = 2, | 1393 | .reg_cache_step = 2, |
1403 | .reg_cache_default = sgtl5000_regs, | 1394 | .reg_cache_default = sgtl5000_regs, |
1404 | .volatile_register = sgtl5000_volatile_register, | 1395 | .volatile_register = sgtl5000_volatile_register, |
1396 | .controls = sgtl5000_snd_controls, | ||
1397 | .num_controls = ARRAY_SIZE(sgtl5000_snd_controls), | ||
1398 | .dapm_widgets = sgtl5000_dapm_widgets, | ||
1399 | .num_dapm_widgets = ARRAY_SIZE(sgtl5000_dapm_widgets), | ||
1400 | .dapm_routes = sgtl5000_dapm_routes, | ||
1401 | .num_dapm_routes = ARRAY_SIZE(sgtl5000_dapm_routes), | ||
1405 | }; | 1402 | }; |
1406 | 1403 | ||
1407 | static __devinit int sgtl5000_i2c_probe(struct i2c_client *client, | 1404 | static __devinit int sgtl5000_i2c_probe(struct i2c_client *client, |