spdif_receiver.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | spdif_receiver.c (8055c0cd6ba520c1673d369b0216ab9da98141ea) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ALSA SoC SPDIF DIR (Digital Interface Reciever) driver 4 * 5 * Based on ALSA SoC SPDIF DIT driver 6 * 7 * This driver is used by controllers which can operate in DIR (SPDI/F) where 8 * no codec is needed. This file provides stub codec that can be used --- 14 unchanged lines hidden (view full) --- 23static const struct snd_soc_dapm_widget dir_widgets[] = { 24 SND_SOC_DAPM_INPUT("spdif-in"), 25}; 26 27static const struct snd_soc_dapm_route dir_routes[] = { 28 { "Capture", NULL, "spdif-in" }, 29}; 30 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ALSA SoC SPDIF DIR (Digital Interface Reciever) driver 4 * 5 * Based on ALSA SoC SPDIF DIT driver 6 * 7 * This driver is used by controllers which can operate in DIR (SPDI/F) where 8 * no codec is needed. This file provides stub codec that can be used --- 14 unchanged lines hidden (view full) --- 23static const struct snd_soc_dapm_widget dir_widgets[] = { 24 SND_SOC_DAPM_INPUT("spdif-in"), 25}; 26 27static const struct snd_soc_dapm_route dir_routes[] = { 28 { "Capture", NULL, "spdif-in" }, 29}; 30 |
31#define STUB_RATES SNDRV_PCM_RATE_8000_192000 | 31#define STUB_RATES (SNDRV_PCM_RATE_8000_768000 | \ 32 SNDRV_PCM_RATE_128000) |
32#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ 33 SNDRV_PCM_FMTBIT_S20_3LE | \ 34 SNDRV_PCM_FMTBIT_S24_LE | \ 35 SNDRV_PCM_FMTBIT_S32_LE | \ 36 SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE) 37 38static struct snd_soc_component_driver soc_codec_spdif_dir = { 39 .dapm_widgets = dir_widgets, --- 47 unchanged lines hidden --- | 33#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ 34 SNDRV_PCM_FMTBIT_S20_3LE | \ 35 SNDRV_PCM_FMTBIT_S24_LE | \ 36 SNDRV_PCM_FMTBIT_S32_LE | \ 37 SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE) 38 39static struct snd_soc_component_driver soc_codec_spdif_dir = { 40 .dapm_widgets = dir_widgets, --- 47 unchanged lines hidden --- |