/* * Machine driver for EVAL-ADAU1373 on Analog Devices bfin * evaluation boards. * * Copyright 2011 Analog Devices Inc. * Author: Lars-Peter Clausen * * Licensed under the GPL-2 or later. */ #include #include #include #include #include #include #include "../codecs/adau1373.h" static const struct snd_soc_dapm_widget bfin_eval_adau1373_dapm_widgets[] = { SND_SOC_DAPM_LINE("Line In1", NULL), SND_SOC_DAPM_LINE("Line In2", NULL), SND_SOC_DAPM_LINE("Line In3", NULL), SND_SOC_DAPM_LINE("Line In4", NULL), SND_SOC_DAPM_LINE("Line Out1", NULL), SND_SOC_DAPM_LINE("Line Out2", NULL), SND_SOC_DAPM_LINE("Stereo Out", NULL), SND_SOC_DAPM_HP("Headphone", NULL), SND_SOC_DAPM_HP("Earpiece", NULL), SND_SOC_DAPM_SPK("Speaker", NULL), }; static const struct snd_soc_dapm_route bfin_eval_adau1373_dapm_routes[] = { { "AIN1L", NULL, "Line In1" }, { "AIN1R", NULL, "Line In1" }, { "AIN2L", NULL, "Line In2" }, { "AIN2R", NULL, "Line In2" }, { "AIN3L", NULL, "Line In3" }, { "AIN3R", NULL, "Line In3" }, { "AIN4L", NULL, "Line In4" }, { "AIN4R", NULL, "Line In4" }, /* MICBIAS can be connected via a jumper to the line-in jack, since w don't know which one is going to be used, just power both. */ { "Line In1", NULL, "MICBIAS1" }, { "Line In2", NULL, "MICBIAS1" }, { "Line In3", NULL, "MICBIAS1" }, { "Line In4", NULL, "MICBIAS1" }, { "Line In1", NULL, "MICBIAS2" }, { "Line In2", NULL, "MICBIAS2" }, { "Line In3", NULL, "MICBIAS2" }, { "Line In4", NULL, "MICBIAS2" }, { "Line Out1", NULL, "LOUT1L" }, { "Line Out1", NULL, "LOUT1R" }, { "Line Out2", NULL, "LOUT2L" }, { "Line Out2", NULL, "LOUT2R" }, { "Headphone", NULL, "HPL" }, { "Headphone", NULL, "HPR" }, { "Earpiece", NULL, "EP" }, { "Speaker", NULL, "SPKL" }, { "Stereo Out", NULL, "SPKR" }, }; static int bfin_eval_adau1373_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_dai *codec_dai = rtd->codec_dai; int ret; int pll_rate; switch (params_rate(params)) { case 48000: case 8000: case 12000: case 16000: case 24000: case 32000: pll_rate = 48000 * 1024; break; case 44100: case 7350: case 11025: case 14700: case 22050: case 29400: pll_rate = 44100 * 1024; break; default: return -EINVAL; } ret = snd_soc_dai_set_pll(codec_dai, ADAU1373_PLL1, ADAU1373_PLL_SRC_MCLK1, 12288000, pll_rate); if (ret) return ret; ret = snd_soc_dai_set_sysclk(codec_dai, ADAU1373_CLK_SRC_PLL1, pll_rate, SND_SOC_CLOCK_IN); return ret; } static int bfin_eval_adau1373_codec_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_dai *codec_dai = rtd->codec_dai; unsigned int pll_rate = 48000 * 1024; int ret; ret = snd_soc_dai_set_pll(codec_dai, ADAU1373_PLL1, ADAU1373_PLL_SRC_MCLK1, 12288000, pll_rate); if (ret) return ret; ret = snd_soc_dai_set_sysclk(codec_dai, ADAU1373_CLK_SRC_PLL1, pll_rate, SND_SOC_CLOCK_IN); return ret; } static struct snd_soc_ops bfin_eval_adau1373_ops = { .hw_params = bfin_eval_adau1373_hw_params, }; static struct snd_soc_dai_link bfin_eval_adau1373_dai = { .name = "adau1373", .stream_name = "adau1373", .cpu_dai_name = "bfin-i2s.0", .codec_dai_name = "adau1373-aif1", .platform_name = "bfin-i2s-pcm-audio", .codec_name = "adau1373.0-001a", .ops = &bfin_eval_adau1373_ops, .init = bfin_eval_adau1373_codec_init, .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM, }; static struct snd_soc_card bfin_eval_adau1373 = { .name = "bfin-eval-adau1373", .owner = THIS_MODULE, .dai_link = &bfin_eval_adau1373_dai, .num_links = 1, .dapm_widgets = bfin_eval_adau1373_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(bfin_eval_adau1373_dapm_widgets), .dapm_routes = bfin_eval_adau1373_dapm_routes, .num_dapm_routes = ARRAY_SIZE(bfin_eval_adau1373_dapm_routes), }; static int bfin_eval_adau1373_probe(struct platform_device *pdev) { struct snd_soc_card *card = &bfin_eval_adau1373; card->dev = &pdev->dev; return devm_snd_soc_register_card(&pdev->dev, &bfin_eval_adau1373); } static struct platform_driver bfin_eval_adau1373_driver = { .driver = { .name = "bfin-eval-adau1373", .pm = &snd_soc_pm_ops, }, .probe = bfin_eval_adau1373_probe, }; module_platform_driver(bfin_eval_adau1373_driver); MODULE_AUTHOR("Lars-Peter Clausen "); MODULE_DESCRIPTION("ALSA SoC bfin adau1373 driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:bfin-eval-adau1373"); >ssdiff
Diffstat (limited to 'include/crypto/pkcs7.h')
iff
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:54:16 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:54:16 -0800
commit1b1bc42c1692e9b62756323c675a44cb1a1f9dbd (patch)
treed514a2d8512fc52c15747841e2368f8f99a50787 /tools/perf/pmu-events/arch/x86/skylake/memory.json
parent3365135d43f861003555c963b309672d053a2228 (diff)
parent950eabbd6ddedc1b08350b9169a6a51b130ebaaf (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) GTP fixes from Andreas Schultz (missing genl module alias, clear IP DF on transmit). 2) Netfilter needs to reflect the fwmark when sending resets, from Pau Espin Pedrol. 3) nftable dump OOPS fix from Liping Zhang. 4) Fix erroneous setting of VIRTIO_NET_HDR_F_DATA_VALID on transmit, from Rolf Neugebauer. 5) Fix build error of ipt_CLUSTERIP when procfs is disabled, from Arnd Bergmann. 6) Fix regression in handling of NETIF_F_SG in harmonize_features(), from Eric Dumazet. 7) Fix RTNL deadlock wrt. lwtunnel module loading, from David Ahern. 8) tcp_fastopen_create_child() needs to setup tp->max_window, from Alexey Kodanev. 9) Missing kmemdup() failure check in ipv6 segment routing code, from Eric Dumazet. 10) Don't execute unix_bind() under the bindlock, otherwise we deadlock with splice. From WANG Cong. 11) ip6_tnl_parse_tlv_enc_lim() potentially reallocates the skb buffer, therefore callers must reload cached header pointers into that skb. Fix from Eric Dumazet. 12) Fix various bugs in legacy IRQ fallback handling in alx driver, from Tobias Regnery. 13) Do not allow lwtunnel drivers to be unloaded while they are referenced by active instances, from Robert Shearman. 14) Fix truncated PHY LED trigger names, from Geert Uytterhoeven. 15) Fix a few regressions from virtio_net XDP support, from John Fastabend and Jakub Kicinski. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (102 commits) ISDN: eicon: silence misleading array-bounds warning net: phy: micrel: add support for KSZ8795 gtp: fix cross netns recv on gtp socket gtp: clear DF bit on GTP packet tx gtp: add genl family modules alias tcp: don't annotate mark on control socket from tcp_v6_send_response() ravb: unmap descriptors when freeing rings virtio_net: reject XDP programs using header adjustment virtio_net: use dev_kfree_skb for small buffer XDP receive r8152: check rx after napi is enabled r8152: re-schedule napi for tx r8152: avoid start_xmit to schedule napi when napi is disabled r8152: avoid start_xmit to call napi_schedule during autosuspend net: dsa: Bring back device detaching in dsa_slave_suspend() net: phy: leds: Fix truncated LED trigger names net: phy: leds: Break dependency of phy.h on phy_led_triggers.h net: phy: leds: Clear phy_num_led_triggers on failure to avoid crash net-next: ethernet: mediatek: change the compatible string Documentation: devicetree: change the mediatek ethernet compatible string bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status(). ...
Diffstat (limited to 'tools/perf/pmu-events/arch/x86/skylake/memory.json')