aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_ca0132.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
-rw-r--r--sound/pci/hda/patch_ca0132.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index 092f2bd030bd..4f3aba78f720 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -2046,14 +2046,14 @@ enum dma_state {
2046 DMA_STATE_RUN = 1 2046 DMA_STATE_RUN = 1
2047}; 2047};
2048 2048
2049static int dma_convert_to_hda_format( 2049static int dma_convert_to_hda_format(struct hda_codec *codec,
2050 unsigned int sample_rate, 2050 unsigned int sample_rate,
2051 unsigned short channels, 2051 unsigned short channels,
2052 unsigned short *hda_format) 2052 unsigned short *hda_format)
2053{ 2053{
2054 unsigned int format_val; 2054 unsigned int format_val;
2055 2055
2056 format_val = snd_hda_calc_stream_format( 2056 format_val = snd_hda_calc_stream_format(codec,
2057 sample_rate, 2057 sample_rate,
2058 channels, 2058 channels,
2059 SNDRV_PCM_FORMAT_S32_LE, 2059 SNDRV_PCM_FORMAT_S32_LE,
@@ -2452,7 +2452,7 @@ static int dspxfr_image(struct hda_codec *codec,
2452 } 2452 }
2453 2453
2454 dma_engine->codec = codec; 2454 dma_engine->codec = codec;
2455 dma_convert_to_hda_format(sample_rate, channels, &hda_format); 2455 dma_convert_to_hda_format(codec, sample_rate, channels, &hda_format);
2456 dma_engine->m_converter_format = hda_format; 2456 dma_engine->m_converter_format = hda_format;
2457 dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY : 2457 dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY :
2458 DSP_DMA_WRITE_BUFLEN_INIT) * 2; 2458 DSP_DMA_WRITE_BUFLEN_INIT) * 2;