mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 22:46:31 +01:00
- splitted pcm channels in two different devices to handle mmap correctly
- removed mmap control device - reordered pcm shared and not shared code - changed O_WRONLY oss pcm modifier in a more symmetric and elegant way - changed slightly control interface - added snd-debug-check - uniformed null pointer check - fixed a typo in linear plugin
This commit is contained in:
parent
8e2b523a92
commit
8344e31ce6
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ static void device_list(void)
|
||||||
for (idx = 0; idx <= pcminfo.playback; idx++) {
|
for (idx = 0; idx <= pcminfo.playback; idx++) {
|
||||||
memset(&chninfo, 0, sizeof(chninfo));
|
memset(&chninfo, 0, sizeof(chninfo));
|
||||||
chninfo.channel = SND_PCM_CHANNEL_PLAYBACK;
|
chninfo.channel = SND_PCM_CHANNEL_PLAYBACK;
|
||||||
if ((err = snd_ctl_pcm_channel_info(handle, dev, idx, &chninfo)) < 0) {
|
if ((err = snd_ctl_pcm_channel_info(handle, dev, SND_PCM_CHANNEL_PLAYBACK, idx, &chninfo)) < 0) {
|
||||||
printf("Error: control digital audio playback info (%i): %s\n", card, snd_strerror(err));
|
printf("Error: control digital audio playback info (%i): %s\n", card, snd_strerror(err));
|
||||||
} else {
|
} else {
|
||||||
printf(" Playback subdevice #%i: %s\n", idx, chninfo.subname);
|
printf(" Playback subdevice #%i: %s\n", idx, chninfo.subname);
|
||||||
|
@ -243,7 +243,7 @@ static void device_list(void)
|
||||||
for (idx = 0; idx <= pcminfo.capture; idx++) {
|
for (idx = 0; idx <= pcminfo.capture; idx++) {
|
||||||
memset(&chninfo, 0, sizeof(chninfo));
|
memset(&chninfo, 0, sizeof(chninfo));
|
||||||
chninfo.channel = SND_PCM_CHANNEL_CAPTURE;
|
chninfo.channel = SND_PCM_CHANNEL_CAPTURE;
|
||||||
if ((err = snd_ctl_pcm_channel_info(handle, dev, 0, &chninfo)) < 0) {
|
if ((err = snd_ctl_pcm_channel_info(handle, dev, SND_PCM_CHANNEL_CAPTURE, 0, &chninfo)) < 0) {
|
||||||
printf("Error: control digital audio capture info (%i): %s\n", card, snd_strerror(err));
|
printf("Error: control digital audio capture info (%i): %s\n", card, snd_strerror(err));
|
||||||
} else {
|
} else {
|
||||||
printf(" Capture subdevice #%i: %s\n", idx, chninfo.subname);
|
printf(" Capture subdevice #%i: %s\n", idx, chninfo.subname);
|
||||||
|
|
Loading…
Reference in a new issue