We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc0c46 commit 0e25369Copy full SHA for 0e25369
sound/soc/bcm/hifiberry_dacplusadc.c
@@ -229,13 +229,11 @@ static int snd_rpi_hifiberry_dacplusadc_hw_params(
229
int ret = 0;
230
struct snd_soc_pcm_runtime *rtd = substream->private_data;
231
int channels = params_channels(params);
232
- int width = 32;
+ int width = snd_pcm_format_width(params_format(params));
233
234
if (snd_rpi_hifiberry_is_dacpro) {
235
struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component;
236
237
- width = snd_pcm_format_width(params_format(params));
238
-
239
snd_rpi_hifiberry_dacplusadc_set_sclk(component,
240
params_rate(params));
241
0 commit comments