summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_controller.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-16 08:19:06 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-16 08:47:28 +0200
commitb7d023e11434131e5a7ceb4be33c3afa2c855e89 (patch)
tree76faf07a3123683f002fcf947e2b0e164bb4bd00 /sound/pci/hda/hda_controller.c
parentALSA: hda - Minor refactoring (diff)
downloadlinux-b7d023e11434131e5a7ceb4be33c3afa2c855e89.tar.xz
linux-b7d023e11434131e5a7ceb4be33c3afa2c855e89.zip
ALSA: hda - Move PCM format and rate handling code to core library
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_controller.c')
-rw-r--r--sound/pci/hda/hda_controller.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index aaf01e841426..8f12ad9a4df5 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -167,8 +167,7 @@ static int azx_pcm_prepare(struct snd_pcm_substream *substream)
}
snd_hdac_stream_reset(azx_stream(azx_dev));
- format_val = snd_hda_calc_stream_format(apcm->codec,
- runtime->rate,
+ format_val = snd_hdac_calc_stream_format(runtime->rate,
runtime->channels,
runtime->format,
hinfo->maxbps,