wm8580.c (6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44) | wm8580.c (6335d05548eece40092000aa91b64a50310d69d5) |
---|---|
1/* 2 * wm8580.c -- WM8580 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 757 unchanged lines hidden (view full) --- 766 } 767 codec->bias_level = level; 768 return 0; 769} 770 771#define WM8580_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 772 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) 773 | 1/* 2 * wm8580.c -- WM8580 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 757 unchanged lines hidden (view full) --- 766 } 767 codec->bias_level = level; 768 return 0; 769} 770 771#define WM8580_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 772 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) 773 |
774static struct snd_soc_dai_ops wm8580_dai_ops_playback = { 775 .hw_params = wm8580_paif_hw_params, 776 .set_fmt = wm8580_set_paif_dai_fmt, 777 .set_clkdiv = wm8580_set_dai_clkdiv, 778 .set_pll = wm8580_set_dai_pll, 779 .digital_mute = wm8580_digital_mute, 780}; 781 782static struct snd_soc_dai_ops wm8580_dai_ops_capture = { 783 .hw_params = wm8580_paif_hw_params, 784 .set_fmt = wm8580_set_paif_dai_fmt, 785 .set_clkdiv = wm8580_set_dai_clkdiv, 786 .set_pll = wm8580_set_dai_pll, 787}; 788 |
|
774struct snd_soc_dai wm8580_dai[] = { 775 { 776 .name = "WM8580 PAIFRX", 777 .id = 0, 778 .playback = { 779 .stream_name = "Playback", 780 .channels_min = 1, 781 .channels_max = 6, 782 .rates = SNDRV_PCM_RATE_8000_192000, 783 .formats = WM8580_FORMATS, 784 }, | 789struct snd_soc_dai wm8580_dai[] = { 790 { 791 .name = "WM8580 PAIFRX", 792 .id = 0, 793 .playback = { 794 .stream_name = "Playback", 795 .channels_min = 1, 796 .channels_max = 6, 797 .rates = SNDRV_PCM_RATE_8000_192000, 798 .formats = WM8580_FORMATS, 799 }, |
785 .ops = { 786 .hw_params = wm8580_paif_hw_params, 787 .set_fmt = wm8580_set_paif_dai_fmt, 788 .set_clkdiv = wm8580_set_dai_clkdiv, 789 .set_pll = wm8580_set_dai_pll, 790 .digital_mute = wm8580_digital_mute, 791 }, | 800 .ops = &wm8580_dai_ops_playback, |
792 }, 793 { 794 .name = "WM8580 PAIFTX", 795 .id = 1, 796 .capture = { 797 .stream_name = "Capture", 798 .channels_min = 2, 799 .channels_max = 2, 800 .rates = SNDRV_PCM_RATE_8000_192000, 801 .formats = WM8580_FORMATS, 802 }, | 801 }, 802 { 803 .name = "WM8580 PAIFTX", 804 .id = 1, 805 .capture = { 806 .stream_name = "Capture", 807 .channels_min = 2, 808 .channels_max = 2, 809 .rates = SNDRV_PCM_RATE_8000_192000, 810 .formats = WM8580_FORMATS, 811 }, |
803 .ops = { 804 .hw_params = wm8580_paif_hw_params, 805 .set_fmt = wm8580_set_paif_dai_fmt, 806 .set_clkdiv = wm8580_set_dai_clkdiv, 807 .set_pll = wm8580_set_dai_pll, 808 }, | 812 .ops = &wm8580_dai_ops_capture, |
809 }, 810}; 811EXPORT_SYMBOL_GPL(wm8580_dai); 812 813/* 814 * initialise the WM8580 driver 815 * register the mixer and dsp interfaces with the kernel 816 */ --- 230 unchanged lines hidden --- | 813 }, 814}; 815EXPORT_SYMBOL_GPL(wm8580_dai); 816 817/* 818 * initialise the WM8580 driver 819 * register the mixer and dsp interfaces with the kernel 820 */ --- 230 unchanged lines hidden --- |