summaryrefslogtreecommitdiffstats
path: root/Documentation/sound
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-06 12:08:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-06 12:08:38 -0400
commit126f7051b4daa3716d9af2851dcb55316e4c2b25 (patch)
treee2f29bf57f28110d8fe42faaded6f83ffc52ec06 /Documentation/sound
parent135c5504a600ff9b06e321694fbcac78a9530cd4 (diff)
parentd4d5a1cd298e67cb68cca8dc7dd1ea3942cce3ff (diff)
Merge tag 'sound-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound updates from Takashi Iwai: "We've got many code additions at this cycle as a result of quite a few new drivers. Below are highlights: Core stuff: - Fix the long-standing issue with the device registration order; the control device is now registered at last - PCM locking code cleanups for RT kernels - Fixes for possible races in ALSA timer resolution accesses - TLV offset definitions in uapi ASoC: - Many fixes for the topology stuff, including fixes for v4 ABI compatibility - Lots of cleanups / quirks for Intel platforms based on Realtek CODECs - Continued componentization works, removing legacy CODEC stuff - Conversion of OMAP DMA to the new, more standard SDMA-PCM driver - Fixes and updates to Cirrus Logic SoC drivers - New Qualcomm DSP support - New drivers for Analog SSM2305, Atmel I2S controllers, Mediatek MT6351, MT6797 and MT7622, Qualcomm DSPs, Realtek RT1305, RT1306 and RT5668 and TI TSCS454 HD-audio: - Finally better support for some CA0132 boards, allowing Windows firmware - HP Spectre x360 support along with a bulk of COEF stuff - Blacklisting power save default some known boards reported on Fedora USB-audio: - Continued improvements on UAC3 support; now BADD is supported - Fixes / improvements for Dell WD15 dock - Allow DMA coherent pages for PCM buffers for ARCH, MIPS & co Others: - New Xen sound frontend driver support - Cache implementation and other improvements for FireWire DICE - Conversions to octal permissions in allover places" * tag 'sound-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (386 commits) ASoC: dapm: delete dapm_kcontrol_data paths list before freeing it ALSA: usb-audio: remove redundant check on err ASoC: topology: Move skl-tplg-interface.h to uapi ASoC: topology: Move v4 manifest header data structures to uapi ASoC: topology: Improve backwards compatibility with v4 topology files ALSA: pci/hda: Remove unused, broken, header file ASoC: TSCS454: Add Support ASoC: Intel: kbl: Move codec sysclk config to codec_init function ASoC: simple-card: set cpu dai clk in hw_params ALSA: hda - Handle kzalloc() failure in snd_hda_attach_pcm_stream() ALSA: oxygen: use match_string() helper ASoC: dapm: use match_string() helper ASoC: max98095: use match_string() helper ASoC: max98088: use match_string() helper ASoC: Intel: bytcr_rt5651: Set card long_name based on quirks ASoC: mt6797-mt6351: add hostless phone call path ASoC: mt6797: add Hostless DAI ASoC: mt6797: add PCM interface ASoC: mediatek: export mtk-afe symbols as needed ASoC: codecs: PCM1789: include gpio/consumer.h ...
Diffstat (limited to 'Documentation/sound')
-rw-r--r--Documentation/sound/alsa-configuration.rst7
-rw-r--r--Documentation/sound/hd-audio/models.rst2
-rw-r--r--Documentation/sound/soc/codec.rst8
-rw-r--r--Documentation/sound/soc/platform.rst30
4 files changed, 26 insertions, 21 deletions
diff --git a/Documentation/sound/alsa-configuration.rst b/Documentation/sound/alsa-configuration.rst
index ab5761148163..4d83c1c0ca04 100644
--- a/Documentation/sound/alsa-configuration.rst
+++ b/Documentation/sound/alsa-configuration.rst
@@ -2224,6 +2224,13 @@ quirk_alias
2224 Quirk alias list, pass strings like ``0123abcd:5678beef``, which 2224 Quirk alias list, pass strings like ``0123abcd:5678beef``, which
2225 applies the existing quirk for the device 5678:beef to a new 2225 applies the existing quirk for the device 5678:beef to a new
2226 device 0123:abcd. 2226 device 0123:abcd.
2227use_vmalloc
2228 Use vmalloc() for allocations of the PCM buffers (default: yes).
2229 For architectures with non-coherent memory like ARM or MIPS, the
2230 mmap access may give inconsistent results with vmalloc'ed
2231 buffers. If mmap is used on such architectures, turn off this
2232 option, so that the DMA-coherent buffers are allocated and used
2233 instead.
2227 2234
2228This module supports multiple devices, autoprobe and hotplugging. 2235This module supports multiple devices, autoprobe and hotplugging.
2229 2236
diff --git a/Documentation/sound/hd-audio/models.rst b/Documentation/sound/hd-audio/models.rst
index 1fee5a4f6660..7c2d37571af0 100644
--- a/Documentation/sound/hd-audio/models.rst
+++ b/Documentation/sound/hd-audio/models.rst
@@ -263,6 +263,8 @@ hp-dock
263 HP dock support 263 HP dock support
264mute-led-gpio 264mute-led-gpio
265 Mute LED control via GPIO 265 Mute LED control via GPIO
266hp-mic-fix
267 Fix for headset mic pin on HP boxes
266 268
267STAC9200 269STAC9200
268======== 270========
diff --git a/Documentation/sound/soc/codec.rst b/Documentation/sound/soc/codec.rst
index 240770ea761e..8a9737eb7597 100644
--- a/Documentation/sound/soc/codec.rst
+++ b/Documentation/sound/soc/codec.rst
@@ -179,12 +179,12 @@ i.e.
179 179
180 static int wm8974_mute(struct snd_soc_dai *dai, int mute) 180 static int wm8974_mute(struct snd_soc_dai *dai, int mute)
181 { 181 {
182 struct snd_soc_codec *codec = dai->codec; 182 struct snd_soc_component *component = dai->component;
183 u16 mute_reg = snd_soc_read(codec, WM8974_DAC) & 0xffbf; 183 u16 mute_reg = snd_soc_component_read32(component, WM8974_DAC) & 0xffbf;
184 184
185 if (mute) 185 if (mute)
186 snd_soc_write(codec, WM8974_DAC, mute_reg | 0x40); 186 snd_soc_component_write(component, WM8974_DAC, mute_reg | 0x40);
187 else 187 else
188 snd_soc_write(codec, WM8974_DAC, mute_reg); 188 snd_soc_component_write(component, WM8974_DAC, mute_reg);
189 return 0; 189 return 0;
190 } 190 }
diff --git a/Documentation/sound/soc/platform.rst b/Documentation/sound/soc/platform.rst
index 02c93a8b9c3b..c1badea53d3d 100644
--- a/Documentation/sound/soc/platform.rst
+++ b/Documentation/sound/soc/platform.rst
@@ -23,30 +23,26 @@ The platform DMA driver optionally supports the following ALSA operations:-
23 }; 23 };
24 24
25The platform driver exports its DMA functionality via struct 25The platform driver exports its DMA functionality via struct
26snd_soc_platform_driver:- 26snd_soc_component_driver:-
27:: 27::
28 28
29 struct snd_soc_platform_driver { 29 struct snd_soc_component_driver {
30 char *name; 30 const char *name;
31 31
32 int (*probe)(struct platform_device *pdev); 32 ...
33 int (*remove)(struct platform_device *pdev); 33 int (*probe)(struct snd_soc_component *);
34 int (*suspend)(struct platform_device *pdev, struct snd_soc_cpu_dai *cpu_dai); 34 void (*remove)(struct snd_soc_component *);
35 int (*resume)(struct platform_device *pdev, struct snd_soc_cpu_dai *cpu_dai); 35 int (*suspend)(struct snd_soc_component *);
36 int (*resume)(struct snd_soc_component *);
36 37
37 /* pcm creation and destruction */ 38 /* pcm creation and destruction */
38 int (*pcm_new)(struct snd_card *, struct snd_soc_codec_dai *, struct snd_pcm *); 39 int (*pcm_new)(struct snd_soc_pcm_runtime *);
39 void (*pcm_free)(struct snd_pcm *); 40 void (*pcm_free)(struct snd_pcm *);
40 41
41 /* 42 ...
42 * For platform caused delay reporting. 43 const struct snd_pcm_ops *ops;
43 * Optional. 44 const struct snd_compr_ops *compr_ops;
44 */ 45 ...
45 snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *,
46 struct snd_soc_dai *);
47
48 /* platform stream ops */
49 struct snd_pcm_ops *pcm_ops;
50 }; 46 };
51 47
52Please refer to the ALSA driver documentation for details of audio DMA. 48Please refer to the ALSA driver documentation for details of audio DMA.