* ALSA
@ 2000-04-12 20:46 Dave Mielke
2000-06-06 12:17 ` ALSA Mr I.E. Esten
2000-06-06 14:43 ` ALSA flatmax
0 siblings, 2 replies; 5+ messages in thread
From: Dave Mielke @ 2000-04-12 20:46 UTC (permalink / raw)
To: linux-sound
The INSTALL file for the ALSA driver describes a special control file named
"/proc/asound/0/pcmD0o". It says that a line like the following can be written
to this file:
Playback <app_name> <fragments> <fragment_size> [<options>]
The description of the <app_name> parameter says:
<app_name> - name of application with (higher priority) or without path
Does anyone know what the phrase "higher priority" here actually means? Also,
what is the syntax for assigning a priority to an application?
--
Dave Mielke | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2B 6G3 | if you're concerned about Hell.
^ permalink raw reply [flat|nested] 5+ messages in thread* ALSA
2000-04-12 20:46 ALSA Dave Mielke
@ 2000-06-06 12:17 ` Mr I.E. Esten
2000-06-06 14:43 ` ALSA flatmax
1 sibling, 0 replies; 5+ messages in thread
From: Mr I.E. Esten @ 2000-06-06 12:17 UTC (permalink / raw)
To: linux-sound
[-- Attachment #1: Type: TEXT/PLAIN, Size: 781 bytes --]
Hi people,
I need your help! I am having a bit of trouble setting up ALSA on
my Dell Optiplex (w/ Redhat 6). I have two cards in the machine; an sb16
built in to the motherboard, and an sb live pci card. Trouble is, I can't
get MIDI working on the sb live. Jazz complains that /dev/sequencer2 and
/dev/music are not configured, and more'ing them just to see what happens
reports the same. I can't even get the sb16 detected (allthough it works
fine with the kernel sound drivers), as isapnp can't find it. I would
really appreciate some help with all this - I've tried just about
everything I can think of. I've included the conf.modules i've been using
and the /proc/modules report.
Thanks v. much,
Ian
PS - everything else on the sb live works ok - its just MIDI that doesn't.
[-- Attachment #2: Type: TEXT/PLAIN, Size: 1021 bytes --]
alias parport_lowlevel parport_pc
pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start
# ISA PnP support
options isapnp isapnp_reserve_irq=5,1
# ALSA native device support
alias char-major-116 snd
# options snd snd_major=116 snd_cards_limit=1
options snd snd_major=116 snd_cards_limit=2
# For SB Live!
alias snd-card-0 snd-card-emu10k1
options snd-card-emu10k1 snd_index=0 snd_id="SB Live! ?"
# For SB 16
alias snd-card-1 snd-card-sb16
options snd-card-sb16 snd_index=1 snd_id="SB 16" snd_port=0x220 snd_irq=5 snd_dma1=1 snd_dma2=5
# OSS/Free setup
alias char-major-14 soundcore
# For SB Live!
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# For SB 16
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
[-- Attachment #3: Type: TEXT/PLAIN, Size: 970 bytes --]
snd-mixer-oss 3924 2 (autoclean)
snd-card-emu10k1 2112 2 (autoclean)
snd-emu10k1 19304 0 (autoclean) [snd-card-emu10k1]
snd-pcm 28952 0 (autoclean) [snd-emu10k1]
snd-timer 7680 0 (autoclean) [snd-pcm]
snd-ac97-codec 23904 0 (autoclean) [snd-emu10k1]
snd-mixer 23152 0 (autoclean) [snd-mixer-oss snd-emu10k1 snd-ac97-codec]
snd-emux-mem 1340 0 (autoclean) [snd-emu10k1]
snd-rawmidi 9080 0 (autoclean) [snd-emu10k1]
snd-seq-device 3112 0 (autoclean) [snd-card-emu10k1 snd-rawmidi]
snd 34560 1 (autoclean) [snd-mixer-oss snd-card-emu10k1 snd-emu10k1 snd-pcm snd-timer snd-ac97-codec snd-mixer snd-emux-mem snd-rawmidi snd-seq-device]
nls_iso8859-1 2020 5 (autoclean)
nls_cp437 3548 5 (autoclean)
sound 57196 0 (unused)
soundlow 300 0 [sound]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ALSA
2000-04-12 20:46 ALSA Dave Mielke
2000-06-06 12:17 ` ALSA Mr I.E. Esten
@ 2000-06-06 14:43 ` flatmax
1 sibling, 0 replies; 5+ messages in thread
From: flatmax @ 2000-06-06 14:43 UTC (permalink / raw)
To: linux-sound
Have you tried the ALSA mail list ?
Although alot of people here use both ALSA and OSS, you might get more
help specifically on ALSA from the alsa mail list or home page :
www.alsa-project.org
OR you could also try the 4front:
www.4front-tech.com
OTHERWISE .... compile your kernel with sound enabled :
1 cd /usr/src/linux
2 make xconfig OR make config
Build the kernel with sound modules enabled and configured ...
might require isapnp as well to set up the card at boot.
3 make bzlilo or somehting similar to compile the kernel
4 make modules
5 make modules_install
6 Reboot
7 debug !!!
fuzzies to ya...
Matt
On Tue, 6 Jun 2000, Mr I.E. Esten wrote:
> Hi people,
> I need your help! I am having a bit of trouble setting up ALSA on
> my Dell Optiplex (w/ Redhat 6). I have two cards in the machine; an sb16
> built in to the motherboard, and an sb live pci card. Trouble is, I can't
> get MIDI working on the sb live. Jazz complains that /dev/sequencer2 and
> /dev/music are not configured, and more'ing them just to see what happens
> reports the same. I can't even get the sb16 detected (allthough it works
> fine with the kernel sound drivers), as isapnp can't find it. I would
> really appreciate some help with all this - I've tried just about
> everything I can think of. I've included the conf.modules i've been using
> and the /proc/modules report.
> Thanks v. much,
> Ian
>
> PS - everything else on the sb live works ok - its just MIDI that doesn't.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* ALSA
@ 2011-09-09 6:52 Latha Prabhu
0 siblings, 0 replies; 5+ messages in thread
From: Latha Prabhu @ 2011-09-09 6:52 UTC (permalink / raw)
To: alsa-devel, lvprabhu
I wrote a sample program as follows to OPEN ALSA sound device and set its hw
params -
Code:
/* Open PCM device for playback. */
rc = snd_pcm_open(&handle, "default",
SND_PCM_STREAM_PLAYBACK, 0);
if (rc < 0) {
fprintf(stderr,
"unable to open pcm device: %s\n",
snd_strerror(rc));
return 1;
}
/* Allocate a hardware parameters object. */
snd_pcm_hw_params_alloca(¶ms);
/* Fill it in with default values. */
snd_pcm_hw_params_any(handle, params);
/* Set the desired hardware parameters. */
/* Interleaved mode */
snd_pcm_hw_params_set_access(handle, params,
SND_PCM_ACCESS_RW_INTERLEAVED);
/* Signed 16-bit little-endian format */
snd_pcm_hw_params_set_format(handle, params, SND_PCM_FORMAT_S16_LE);
/* One channel (mono) */
snd_pcm_hw_params_set_channels(handle, params, 1);
/* 8000 bits/second sampling rate */
val = 8000;
snd_pcm_hw_params_set_rate_near(handle, params,
&val, &dir);
/* Set period size to 32 frames. */
frames = 32;
snd_pcm_hw_params_set_period_size_near(handle,
params, &frames, &dir);
fflush(stderr);
/* Write the parameters to the driver */
rc = snd_pcm_hw_params(handle, params);
Above lines of code works fine if I run it as an independent test program.
When I use the same lines of code in my application, it is failing in
snd_pcm_hw_params_any(). It returns "Operation not permitted". So I changed
the device name to "plughw:0,0", instead of "default".
With this change, its failing at snd_pcm_hw_params_set_rate_near(). It
returns some huge value 192000. Also, following
snd_pcm_hw_params_set_period_size() also fails with 699050.
Any idea, why I'm getting this error? Is link to some other library or some
header file inclusion, in my application causing this error? I am trying to
play 8k, 16 bit PCM audio.
Then I changed snd_pcm_hw_set_rate_near() to snd_pcm_hw_set_rate() and also
snd_pcm_hw_params_set_period_size_near() to
snd_pcm_hw_params_set_period_size(). These 2 calls succeed. But when I check
period_size after calling snd_pcm_hw_params(), it is different. My set value
was 32 but I got it as 1. Then call to snd_pcm_writei() crashes with -
pcm.c:1240: snd_pcm_writei: Assertion `pcm' failed.
Please note my application is multi threaded but opening the device and
setting hardware parameters are under one place.
I appreciate your help on this.
Thanks,
Latha
^ permalink raw reply [flat|nested] 5+ messages in thread* alsa
@ 2019-09-13 14:05 Nuno Sá
0 siblings, 0 replies; 5+ messages in thread
From: Nuno Sá @ 2019-09-13 14:05 UTC (permalink / raw)
To: kernelnewbies
Hi all,
Im currently doing a driver for the alsa subsystem. This is my first
interaction with it, so sorry if this is to trivial. Since this is my
first time on the subsystem I'm first posting my question here before
going to the alsa mailing list.
So, I'm doing a codec driver for this device
https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf
. The device is a converter from PDM to I2S/TDM and it has 4 PDM inputs
which can be enabled/disabled via I2C. My question is, how can I add
controls to enable/disable the inputs? I'm trying to use
`SND_SOC_DAPM_SWITCH()` together with a `SOC_DAPM_SINGLE()` control.
The thing is, when I use alsamixer this controls only come up on the
playback tab which makes me feel that something is not ok (the device
only supports Capture stream). Is this correct way to add controls for
input's?
Any inputs would be helpful...
Thanks in advance,
Nuno Sá
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-13 14:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-12 20:46 ALSA Dave Mielke
2000-06-06 12:17 ` ALSA Mr I.E. Esten
2000-06-06 14:43 ` ALSA flatmax
-- strict thread matches above, loose matches on Subject: below --
2011-09-09 6:52 ALSA Latha Prabhu
2019-09-13 14:05 alsa Nuno Sá
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.