~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/pcm5102a.c

Version: ~ [ linux-5.13-rc7 ] ~ [ linux-5.12.12 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.45 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.127 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.195 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.237 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.273 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.273 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  * Driver for the PCM5102A codec
  4  *
  5  * Author:      Florian Meier <florian.meier@koalo.de>
  6  *              Copyright 2013
  7  */
  8 
  9 #include <linux/init.h>
 10 #include <linux/module.h>
 11 #include <linux/platform_device.h>
 12 
 13 #include <sound/soc.h>
 14 
 15 static struct snd_soc_dai_driver pcm5102a_dai = {
 16         .name = "pcm5102a-hifi",
 17         .playback = {
 18                 .channels_min = 2,
 19                 .channels_max = 2,
 20                 .rates = SNDRV_PCM_RATE_8000_192000,
 21                 .formats = SNDRV_PCM_FMTBIT_S16_LE |
 22                            SNDRV_PCM_FMTBIT_S24_LE |
 23                            SNDRV_PCM_FMTBIT_S32_LE
 24         },
 25 };
 26 
 27 static struct snd_soc_component_driver soc_component_dev_pcm5102a = {
 28         .idle_bias_on           = 1,
 29         .use_pmdown_time        = 1,
 30         .endianness             = 1,
 31         .non_legacy_dai_naming  = 1,
 32 };
 33 
 34 static int pcm5102a_probe(struct platform_device *pdev)
 35 {
 36         return devm_snd_soc_register_component(&pdev->dev, &soc_component_dev_pcm5102a,
 37                         &pcm5102a_dai, 1);
 38 }
 39 
 40 static const struct of_device_id pcm5102a_of_match[] = {
 41         { .compatible = "ti,pcm5102a", },
 42         { }
 43 };
 44 MODULE_DEVICE_TABLE(of, pcm5102a_of_match);
 45 
 46 static struct platform_driver pcm5102a_codec_driver = {
 47         .probe          = pcm5102a_probe,
 48         .driver         = {
 49                 .name   = "pcm5102a-codec",
 50                 .of_match_table = pcm5102a_of_match,
 51         },
 52 };
 53 
 54 module_platform_driver(pcm5102a_codec_driver);
 55 
 56 MODULE_DESCRIPTION("ASoC PCM5102A codec driver");
 57 MODULE_AUTHOR("Florian Meier <florian.meier@koalo.de>");
 58 MODULE_LICENSE("GPL v2");
 59 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp