| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
PR: kern/82243
Submitted by: Serge Semenenko
Approved by: re (scottl)
MFC after: 1 month
|
|
|
|
|
|
|
| |
sys/dev/sound/isa/sndbuf_dma.c (compilation depending on device isa)
in #ifdef DEV_ISA so sound(4) can be compiled without isa(4).
MFC after: 1 month
|
|
|
|
| |
Pointed out by: nyan
|
|
|
|
|
|
| |
PR: kern/81573
Submitted by: OOTOMO Hiroyuki <ootomo@za.wakwak.com>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
- Let m3_pchan_trigger()/m3_rchan_trigger() acquire lock and call
m3_pchan_trigger_locked()/m3_rchan_trigger_locked() respectivly.
- Mark interrupt handler INTR_MPSAFE.
- Add locks in sound/channel interface.
Tested by: nork
|
|
|
|
|
|
|
| |
memory resources in ebus.c rev. 1.22 and treat both the EBus and SBus
variants alike in this regard.
Ok'ed by: yongari
|
|
|
|
|
|
|
|
|
|
| |
the available modes in /dev/sndstat.
e.g.
pcm1: <USB Audio> at addr ? (0p/1r/0v channels duplex)
mode 1:(input) 1ch, 16/16bit, pcm, 44100Hz
mode 2:(input) 1ch, 16/16bit, pcm, 22050Hz
mode 3:(input) 1ch, 16/16bit, pcm, 11025Hz
mode 4:(input) 1ch, 16/16bit, pcm, 8000Hz
|
|
|
|
| |
Pointed out by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>
|
|
|
|
|
|
|
|
| |
this buffer anyway so the constraint that it had to be DMA capable only
caused pain when devices failed to aquire the memory. Use a regular
malloc instead with sndbuf_setup.
Approved by: tanimura (mentor)
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
| |
This whole section is actually overly restrictive and
another patch is in the works.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Affects to people WITH an AD1888 codec, the system will output to the port
labeled "speaker" instead of microphone. System will work the same in
multiple operating systems.
If people are currently using their systems with this codec they will need
to swap their output ports.
I have _not_ checked audio input or line input (basically, I have checked
nothing other than line-out).
I believe this is an appropriate change, it makes us consistent with
documentation, and other operating systems. Furthermore, this feature
(playing) is the vast majority of sound activities, so if this makes is
right for playback and wrong for recording... playback is more important,
and we can fix recoding in the future without worries of screwing people
again in the future (since we'll be "right" on the playback).
Submitted by: David Cross
|
|
|
|
|
| |
closes the race where the cdev was reclaimed before it ever made it
back to devfs lookup.
|
|
|
|
| |
Pointed out by: Nate Lawson <nate@root.org>
|
|
|
|
|
|
| |
PR: kern/78482
Submitted by: Markus Niemistö <markus.niemisto@iki.fi>
MFC after: 1 week
|
|
|
|
|
| |
preference to some random negative number to allow other drivers a
bite at the apple.
|
|
|
|
|
|
|
| |
mss lock across call.
This allows my Thinkpad 600E to resume with the sound driver loaded and
vchans enabled.
|
| |
|
|
|
|
| |
interface. Instead, move to the convenience _any interface.
|
| |
|
|
|
|
|
|
|
| |
PR: 75316
Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>
Obtained from: NetBSD plus changes
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
PR: 75311
Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>
Obtained from: NetBSD plus changes
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
PR: 75276
Submitted by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>
Obtained from: NetBSD with changes
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
One of a set of patches submitted by Kazuhito HONDA
to make the usb audio driver a lot more capable.
PR: 75274
Submitted by: Kazuhito HONDA (kazuhito at ph dot noda dot tus dot ac dot jp)
Obtained from: NetBSD (indirectly)
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
| |
These devices should be probed first because they are at fixed
locations and cannot be turned off. ISA PNP devices, on the other
hand, can be turned off and often can be flexible in the resources
they use. Probe them last, as always.
|
|
|
|
| |
Submitted by: Taku YAMAMOTO
|
|
|
|
| |
Submitted by: Taku Yamamoto (original author)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on UltraSPARC workstations. The driver is based on OpenBSD's SBus
cs4231 driver and heavily modified to incorporate into sound(4)
infrastructure. Due to the lack of APCDMA documentation, the DMA
code of SBus cs4231 came from OpenBSD's driver.
The driver runs without Giant lock and supports both SBus and EBus
based CS4231 audio controller. Special thanks to marius for providing
feedbacks during the driver writing. His feedback made it possible
to write hiccup free playback code under high system loads.
Approved by: jake (mentor)
Reviewed by: marius (initial version)
Tested by: marius, kwm, Julian C. Dunn(jdunn AT opentrend DOT net)
|
|
|
|
| |
removed.
|
|
|
|
|
|
|
| |
changes return code to ENOMEM in case of allocation failure.
Approved by: jake (mentor), scottl (co-mentor)
Reviewed by: truckman, matk
|
|
|
|
|
|
|
|
|
|
| |
handle DMA addresses located above 1GB. The LBA(loop begin address)
register which holds DMA base address is 32bits register. But the
MSB 2bits are used for other purposes. This effectivly limits the
DMA address space up to 1GB.
Approved by: jake (mentor)
Reviewed by: truckman, matk
|
|
|
|
|
|
|
|
|
|
| |
assign DMA address to the wrong address. It can cause system lockup
or other mysterious errors. Since most sound cards requires low DMA
address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the
audio driver is loaded after long running of operations.
Approved by: jake (mentor)
Reviewed by: truckman, matk
|
|
|
|
|
|
|
|
|
| |
that conjures up the device node so it isn't true PNP. Noticed by jhb@.
* Add an attachment for esscontrol since it too uses ISA_PNP_PROBE.
* Move an attachment from snd_mss to snd_pnpmss. The latter is the real
PNP user.
|
|
|
|
|
|
|
| |
probe and attach when ACPI is enabled.
Submitted by: takawata (sbc fix)
MFC after: 1 day
|
| |
|
| |
|
|
|
|
|
|
| |
PR: kern/71317
Submitted by: Mezz <mezz@freebsd.org>
MFC after: 1 week
|
|
|
|
|
|
| |
PR: kern/71726
Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
fm801 has sound capabilities or not. Unfortunately this code doesn't
work as expected.
Submitted by: many
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
| |
calls in sb_cmd2() and sb_getmixer(). The lock has already be grabbed
before these functions are called.
This is a RELENG_5 candidate.
PR: 71189
Submitted by: stephane
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
holds sndstat_lock across a call to uiomove(), which is not legal
to do with a mutex because of the possibility that the data transfer
could sleep because of a page fault. It is not possible to just
unlock the mutex for the uiomove() call without introducing another
locking mechanism to prevent the body of sndstat_read() from being
re-entered. Converting sndstat_lock to an sx lock is the least
complicated change.
This is a candidate for RELENG_5.
LOR: 030
MFC after: 4 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allocation. Notably, in this case, the driver tries to allocate several
pieces of memory and then fails if the pieces allocated after the first
do not come after it physically, and within a specific range (8MB I
believe). Of course, this could just as easily fail for any number of
reasons, but it almost always fails now that contiguous allocations start
at the end of possible specified memory locations rather than the beginning.
Allocate all the possibly-needed memory up front, even though it's a waste,
to get around this. The least bogus solution would be to take the physical
address from the first allocation and create a new tag that specified that
further allocations must follow it within that 8MB window, then use that
when allocating new channels, but that's left for anyone else that really
feels like doing it.
Tested by: Erwin Lansing <erwin@lansing.dk>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- `sound'
The generic sound driver, always required.
- `snd_*'
Device-dependent drivers, named after the sound module names.
Configure accordingly to your hardware.
In addition, rename the `snd_pcm' module to `sound' in order to sync
with the driver names.
Suggested by: cg
|
|
|
|
|
|
|
|
| |
for unknown events.
A number of modules return EINVAL in this instance, and I have left
those alone for now and instead taught MOD_QUIESCE to accept this
as "didn't do anything".
|
|
|
|
|
| |
Yes, DDB is unrelated to the debugger with the same acronym. Hence,
the change.
|
|
|
|
| |
Note that DDB is unrelated to the debugger with the same acronym.
|
|
|
|
| |
Submitted by: Darron Broad (with cleanups)
|