aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_alsa.c
diff options
context:
space:
mode:
authorVito Caputo <[email protected]>2015-11-05 23:01:48 -0800
committerVito Caputo <[email protected]>2015-11-05 23:01:48 -0800
commit3b54e530f619d30ddd6111d62fcff119947dc149 (patch)
treebc27cf3489e472b548a1e6f17ad10d682c9bbff8 /src/cubeb_alsa.c
parent2d3321c3f9d4fffa6061ee565882b766d733641b (diff)
downloadcubeb-3b54e530f619d30ddd6111d62fcff119947dc149.tar.gz
cubeb-3b54e530f619d30ddd6111d62fcff119947dc149.zip
alsa: use CUBEB_ALSA_PCM_NAME everywhere
Diffstat (limited to 'src/cubeb_alsa.c')
-rw-r--r--src/cubeb_alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_alsa.c b/src/cubeb_alsa.c
index 3840799..d9d26e7 100644
--- a/src/cubeb_alsa.c
+++ b/src/cubeb_alsa.c
@@ -963,7 +963,7 @@ alsa_get_preferred_sample_rate(cubeb * ctx, uint32_t * rate) {
/* get a pcm, disabling resampling, so we get a rate the
* hardware/dmix/pulse/etc. supports. */
- r = snd_pcm_open(&pcm, "default", SND_PCM_STREAM_PLAYBACK | SND_PCM_NO_AUTO_RESAMPLE, 0);
+ r = snd_pcm_open(&pcm, CUBEB_ALSA_PCM_NAME, SND_PCM_STREAM_PLAYBACK | SND_PCM_NO_AUTO_RESAMPLE, 0);
if (r < 0) {
return CUBEB_ERROR;
}