/* * ak4554.c * * Copyright (C) 2013 Renesas Solutions Corp. * Kuninori Morimoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include /* * ak4554 is very simple DA/AD converter which has no setting register. * * CAUTION * * ak4554 playback format is SND_SOC_DAIFMT_RIGHT_J, * and, capture format is SND_SOC_DAIFMT_LEFT_J * on same bit clock, LR clock. * But, this driver doesn't have snd_soc_dai_ops :: set_fmt * * CPU/Codec DAI image * * CPU-DAI1 (plaback only fmt = RIGHT_J) --+-- ak4554 * | * CPU-DAI2 (capture only fmt = LEFT_J) ---+ */ static const struct snd_soc_dapm_widget ak4554_dapm_widgets[] = { SND_SOC_DAPM_INPUT("AINL"), SND_SOC_DAPM_INPUT("AINR"), SND_SOC_DAPM_OUTPUT("AOUTL"), SND_SOC_DAPM_OUTPUT("AOUTR"), }; static const struct snd_soc_dapm_route ak4554_dapm_routes[] = { { "Capture", NULL, "AINL" }, { "Capture", NULL, "AINR" }, { "AOUTL", NULL, "Playback" }, { "AOUTR", NULL, "Playback" }, }; static struct snd_soc_dai_driver ak4554_dai = { .name = "ak4554-hifi", .playback = { .stream_name = "Playback", .channels_min = 2, .channels_max = 2, .rates = SNDRV_PCM_RATE_8000_48000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, .capture = { .stream_name = "Capture", .channels_min = 2, .channels_max = 2, .rates = SNDRV_PCM_RATE_8000_48000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, .symmetric_rates = 1, }; static struct snd_soc_codec_driver soc_codec_dev_ak4554 = { .component_driver = { .dapm_widgets = ak4554_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(ak4554_dapm_widgets), .dapm_routes = ak4554_dapm_routes, .num_dapm_routes = ARRAY_SIZE(ak4554_dapm_routes), }, }; static int ak4554_soc_probe(struct platform_device *pdev) { return snd_soc_register_codec(&pdev->dev, &soc_codec_dev_ak4554, &ak4554_dai, 1); } static int ak4554_soc_remove(struct platform_device *pdev) { snd_soc_unregister_codec(&pdev->dev); return 0; } static const struct of_device_id ak4554_of_match[] = { { .compatible = "asahi-kasei,ak4554" }, {}, }; MODULE_DEVICE_TABLE(of, ak4554_of_match); static struct platform_driver ak4554_driver = { .driver = { .name = "ak4554-adc-dac", .of_match_table = ak4554_of_match, }, .probe = ak4554_soc_probe, .remove = ak4554_soc_remove, }; module_platform_driver(ak4554_driver); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("SoC AK4554 driver"); MODULE_AUTHOR("Kuninori Morimoto "); 2'>root/net/core/net-sysfs.c
t.git/commit/drivers/usb/misc?h=nds-private-remove&id=b4cfe3971f6eab542dd7ecc398bfa1aeec889934'>misc/usbsevseg.c
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2017-01-15 20:15:00 +0200
committerDoug Ledford <dledford@redhat.com>2017-01-27 14:29:04 -0500
commitb4cfe3971f6eab542dd7ecc398bfa1aeec889934 (patch)
treec7ad49d05da0535170c8e7710cd44ae1cecc271f /drivers/usb/misc/usbsevseg.c
parent2d4b21e0a2913612274a69a3ba1bfee4cffc6e77 (diff)
RDMA/cma: Fix unknown symbol when CONFIG_IPV6 is not enabled
If IPV6 has not been enabled in the underlying kernel, we must avoid calling IPV6 procedures in rdma_cm.ko. This requires using "IS_ENABLED(CONFIG_IPV6)" in "if" statements surrounding any code which calls external IPV6 procedures. In the instance fixed here, procedure cma_bind_addr() called ipv6_addr_type() -- which resulted in calling external procedure __ipv6_addr_type(). Fixes: 6c26a77124ff ("RDMA/cma: fix IPv6 address resolution") Cc: <stable@vger.kernel.org> # v4.2+ Cc: Spencer Baugh <sbaugh@catern.com> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/usb/misc/usbsevseg.c')