aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/hda.c
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2023-11-17 13:06:02 +0100
committerTakashi Iwai <tiwai@suse.de>2023-11-27 17:28:11 +0100
commitd5c00ab2f508176e8d8bd976d8b2207c5f0a932b (patch)
tree854180ab9b0a9fd073b13d5b5d49ab51e67a9710 /sound/soc/codecs/hda.c
parentALSA: hda/ca0132: Switch to new stream-format interface (diff)
downloadwireguard-linux-d5c00ab2f508176e8d8bd976d8b2207c5f0a932b.tar.xz
wireguard-linux-d5c00ab2f508176e8d8bd976d8b2207c5f0a932b.zip
ASoC: codecs: hda: Switch to new stream-format interface
To provide option for selecting different bit-per-sample than just the maximum one, use the new format calculation mechanism. While at it, complete PCM stream initialization with subformat options. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Acked-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20231117120610.1755254-9-cezary.rojewski@intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/hda.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/hda.c b/sound/soc/codecs/hda.c
index d57b043d6bfe..d2117e36ddd1 100644
--- a/sound/soc/codecs/hda.c
+++ b/sound/soc/codecs/hda.c
@@ -52,6 +52,7 @@ static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count,
stream->channels_max = pcm->stream[dir].channels_max;
stream->rates = pcm->stream[dir].rates;
stream->formats = pcm->stream[dir].formats;
+ stream->subformats = pcm->stream[dir].subformats;
stream->sig_bits = pcm->stream[dir].maxbps;
capture_dais:
@@ -71,6 +72,7 @@ capture_dais:
stream->channels_max = pcm->stream[dir].channels_max;
stream->rates = pcm->stream[dir].rates;
stream->formats = pcm->stream[dir].formats;
+ stream->subformats = pcm->stream[dir].subformats;
stream->sig_bits = pcm->stream[dir].maxbps;
}