diff options
Diffstat (limited to 'sound/atmel/ac97c.c')
-rw-r--r-- | sound/atmel/ac97c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 79d6bda58753..6b7e2b5a72de 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
@@ -182,7 +182,7 @@ static int atmel_ac97c_playback_open(struct snd_pcm_substream *substream) | |||
182 | runtime->hw.rate_max = chip->cur_rate; | 182 | runtime->hw.rate_max = chip->cur_rate; |
183 | } | 183 | } |
184 | if (chip->cur_format) | 184 | if (chip->cur_format) |
185 | runtime->hw.formats = (1ULL << chip->cur_format); | 185 | runtime->hw.formats = pcm_format_to_bits(chip->cur_format); |
186 | mutex_unlock(&opened_mutex); | 186 | mutex_unlock(&opened_mutex); |
187 | chip->playback_substream = substream; | 187 | chip->playback_substream = substream; |
188 | return 0; | 188 | return 0; |
@@ -201,7 +201,7 @@ static int atmel_ac97c_capture_open(struct snd_pcm_substream *substream) | |||
201 | runtime->hw.rate_max = chip->cur_rate; | 201 | runtime->hw.rate_max = chip->cur_rate; |
202 | } | 202 | } |
203 | if (chip->cur_format) | 203 | if (chip->cur_format) |
204 | runtime->hw.formats = (1ULL << chip->cur_format); | 204 | runtime->hw.formats = pcm_format_to_bits(chip->cur_format); |
205 | mutex_unlock(&opened_mutex); | 205 | mutex_unlock(&opened_mutex); |
206 | chip->capture_substream = substream; | 206 | chip->capture_substream = substream; |
207 | return 0; | 207 | return 0; |