diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-09-05 00:16:10 +0400 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2013-10-21 00:07:57 +0400 |
commit | a7304e3bf0489d3fc0260bdb9c1441427a26a38f (patch) | |
tree | b787f526cf2063c9a437166116a9570d19337454 /sound/firewire/speakers.c | |
parent | cbab328ddc78589233be8be2f1e6a5f9d97b81db (diff) | |
download | linux-a7304e3bf0489d3fc0260bdb9c1441427a26a38f.tar.xz |
ALSA: dice: support dual-wire stream format at 192 kHz
Change the AMDTP streaming code to handle the non-standard stream format
that DICE devices use at sample rates greater than 96 kHz.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/firewire/speakers.c')
-rw-r--r-- | sound/firewire/speakers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/firewire/speakers.c b/sound/firewire/speakers.c index 0ac56304baff..6a68caf1d04f 100644 --- a/sound/firewire/speakers.c +++ b/sound/firewire/speakers.c @@ -245,8 +245,10 @@ static int fwspk_hw_params(struct snd_pcm_substream *substream, if (err < 0) goto error; - amdtp_out_stream_set_rate(&fwspk->stream, params_rate(hw_params)); - amdtp_out_stream_set_pcm(&fwspk->stream, params_channels(hw_params)); + amdtp_out_stream_set_parameters(&fwspk->stream, + params_rate(hw_params), + params_channels(hw_params), + 0); amdtp_out_stream_set_pcm_format(&fwspk->stream, params_format(hw_params)); |