Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359208
b: refs/heads/master
c: d0ec95f
h: refs/heads/master
v: v3
  • Loading branch information
Mihail Zenkov authored and Takashi Iwai committed Feb 25, 2013
1 parent 8418a85 commit 4855dae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8554ee405713f8572ed2e8b7d711f4884f253181
refs/heads/master: d0ec95fe6a8d9c7da6f9ff885cecbe7e328e2a2e
8 changes: 6 additions & 2 deletions trunk/sound/pci/emu10k1/emupcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream)
struct snd_emu10k1_pcm *epcm;
struct snd_emu10k1_pcm_mixer *mix;
struct snd_pcm_runtime *runtime = substream->runtime;
int i, err;
int i, err, sample_rate;

epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
if (epcm == NULL)
Expand All @@ -1146,7 +1146,11 @@ static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream)
kfree(epcm);
return err;
}
err = snd_pcm_hw_rule_noresample(runtime, 48000);
if (emu->card_capabilities->emu_model && emu->emu1010.internal_clock == 0)
sample_rate = 44100;
else
sample_rate = 48000;
err = snd_pcm_hw_rule_noresample(runtime, sample_rate);
if (err < 0) {
kfree(epcm);
return err;
Expand Down

0 comments on commit 4855dae

Please sign in to comment.