Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/macppc/dev/snapper.c
RevisionDateAuthorComments
 1.70  08-Sep-2025  macallan more registers, add include guard
 1.69  08-Sep-2025  macallan move register definitions into the headers they belong
 1.68  20-Aug-2025  macallan move GPIO definitions to obiovar.h
 1.67  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.66  11-Dec-2023  mlelstv Output is always 16bit, the internal audio data type may differ.
 1.65  02-Jun-2022  macallan check platform-do-*-mute properties to find out the resp. GPIO's polarity
now this works properly on pmac7,3
 1.64  01-Jun-2022  martin Revert previous, the mask is intented to be like sc_output_mask, a bitmask
of active ports.
 1.63  01-Jun-2022  martin In SNAPPER_OUTPUT_SELECT the "mask" is a bitmap of muted outputs, not
active outputs.
 1.62  01-Jun-2022  martin Recognize the OF labels used for line output and headphone output on a
G5 powermac 7,3.
 1.61  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.60  02-Jul-2021  jmcneill branches: 1.60.2;
port-macppc/56289: kernel spinout on macppc when runing ATF tests with LOCKDEBUG

Move call to snapper_set_rate from trigger_output to commit_settings,
since the intr lock is not held when calling the latter.
 1.59  26-Apr-2021  thorpej snapper carries multiple interface attributes, so be explicit about
"onewirebus" when attaching to it.
 1.58  24-Apr-2021  thorpej branches: 1.58.2;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.57  11-Mar-2021  macallan branches: 1.57.2;
add basic support for iMac G5 audio:
- match AOAShasta
- deal with headphone gpios labeled as lineout in OF
- set sc_mode to SNAPPER_IS_PCM3052 - OF makes it look like an unlabeled
TAS3004
TODO:
- actually support pcm3052 instead of treating it like a sw codec
 1.56  05-Mar-2021  rin Convert to intr_establish_xname().
 1.55  08-Aug-2020  macallan branches: 1.55.2;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.
 1.54  11-Apr-2020  macallan don't try to read a 32bit property into a uint8_t.
Now headphone detection works properly on machines which have the gpio's
polarity reversed, like Quicksilver and TiBook.
 1.53  20-Sep-2019  macallan branches: 1.53.6;
various minor fixes and updates:
- add (very) basic ONYX support. Treat as 16bit codec with software volume
control. Makes basic audio work on PCIe G5
- correctly detect TAS3001 without 'compatible' property, now this works on
Quicksilver
- mute line input on TAS3001 - it's unconnected on Quicksilver and causes noise
- make more of an effort to match codecs to i2sbus instances, needed on G5 and
some other models with software 'modems'
 1.52  08-Jun-2019  isaki Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
This eliminates need for audio.c to take care of such (old)
drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
It is handled in the audio layer now.
 1.51  16-May-2019  macallan switch the default input to line in, to avoid feedback noise on laptops
should probably just mute the input, I need to read the datasheet again...
 1.50  08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.49  16-Mar-2019  isaki branches: 1.49.2;
Use C99 style struct initializer to audio_hw_if.
 1.48  03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.47  04-May-2018  macallan branches: 1.47.2;
use obio_space_map() to map DMA registers, now this works on both G5 and
32bit hardware
 1.46  29-Mar-2018  macallan explicitly enable the i2s part in the keylargo FCR
now this works on my PCI-X G5
 1.45  29-Mar-2018  macallan deal with PowerMac7,* mac-io/i2s/sound reg properties
now we map the right registers on G5 and get DMA interrupts. Still no sound
but - well - progress
 1.44  24-Mar-2018  macallan don't poke GPIOs directly, use obio_*() access functions, now this
has a chance of working on G5 where we can't just BAT-map everything with
paddr == busaddr.
Doesn't play audio yet but things like headphone detection work.
 1.43  29-Jan-2018  macallan branches: 1.43.2;
remove some leftover references to ki2c in comments
no functional change
 1.42  27-Jan-2018  sevan Fix issue with audio being downpitched, thanks to <nat>

"it seems that snapper_init should be called before audio_attach_mi, as snapper
init is setting the rate to 44100 after the hardware format has been configured
by audio_attach_mi.

audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."

Resolves PR port-macppc/52949
 1.41  31-Mar-2017  msaitoh branches: 1.41.6;
Remove extra 0x. This bug was added when replacing bitmask_snprintf(9) with
snprintb(3) (in between NetBSD 5 and 6). Old bitmask_snprint(9) didn't add
0x" automatically for hexadecimal value, so old code used it with "0x%s".
 1.40  15-Jul-2016  macallan branches: 1.40.2;
adjust to dbdma changes
 1.39  14-Mar-2014  mrg branches: 1.39.4; 1.39.6; 1.39.10;
remove various set-but-unused variables.
 1.38  24-Nov-2011  mrg branches: 1.38.4; 1.38.8; 1.38.12;
put back IPL_AUDIO and splaudio(), at the request of rmind. they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.
 1.37  23-Nov-2011  jmcneill Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

Add MP locking to the audio drivers.

Making the audio drivers MP safe is necessary before efforts
can be made to make the VM system MP safe.

The are two locks per device instance, an ISR lock and
a character device lock. The ISR lock replaces calls to
splaudio()/splx(), and will be held across calls to device
methods which were called at splaudio() before (e.g.
trigger_output). The character device lock is held across
calls to nearly all of the methods, excluding some only
used for initialization, e.g. get_locks.

Welcome to 5.99.57.
 1.36  12-Nov-2010  phx branches: 1.36.8; 1.36.10;
Get the dma registers from the soundbus property. This should work with all
snapper-compatible hardware.
Tested on PowerBook G4, MacMini and iBook G4. Failed on the PowerBook before.
 1.35  16-Oct-2010  phx Find all GPIOs in OF also on newer PowerBooks.
Do not use a GPIO or establish an interrupt when it was not found.
To be done: We should use bus_space(9) for reading/writing GPIOs.
 1.34  09-Sep-2010  macallan get rid of custom PMF event handlers, instead do what the upper layer expects
so volume control via PMF still works
 1.33  05-Nov-2009  dyoung branches: 1.33.2; 1.33.4;
In awacs(4) and snapper(4), use deviter(9) instead of accessing
alldevs directly.

In pbms(4), delete some unused debugging macros, expand USB
compatibility macros, and add a child-detachment routine. Simplify
pbms(4) deactivation and detachment.

These changes are compile-tested, only.
 1.32  18-Mar-2009  cegger bzero -> memset
 1.31  16-Dec-2008  christos branches: 1.31.2;
replace bitmask_snprintf(9) with snprintb(3)
 1.30  26-Sep-2008  macallan branches: 1.30.2;
use access functions to mess with obio's registers
 1.29  26-Sep-2008  macallan use min(255, blah) to cap volume instead of masking the upper bits out
 1.28  16-May-2008  macallan branches: 1.28.4;
sprinkle static
 1.27  15-May-2008  macallan listen to PMF volume control events
With this volume vontrol via keyboard works on my iBook G4.
 1.26  15-May-2008  macallan struct device -> device_t
 1.25  07-Nov-2007  garbled branches: 1.25.14; 1.25.16; 1.25.18; 1.25.20;
Convert macppc to shared ofw_autoconf.c. Compile tested only.
 1.24  18-Oct-2007  macallan branches: 1.24.2;
cleanup, various fixes and TAS3001 / Tumbler support
from Marco Trillo in PR37076
 1.23  17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.22  27-Sep-2007  dogcow branches: 1.22.2;
struct cfattach -> CFATTACH_DECL; compiles again.
 1.21  17-Sep-2007  aymeric branches: 1.21.2;
add support for the "tumbler" as found at least on iBook G3/600.
quick OK macallan@
 1.20  04-Apr-2007  jmcneill branches: 1.20.4; 1.20.12; 1.20.14;
Simplify sw volume control, attach to AOAK2 as well, make mono work as
well as stereo, and print a friendlier message when we don't find a
hardware mixer.
 1.19  03-Apr-2007  jmcneill In the AOAKeylargo case, there is no hardware volume control. Instead,
implement volume control in software via audio filter framework.

XXX: audio filter framework doesn't let me pass parameters from the hw
softc to the filter, so the volume variables are globals for now.
 1.18  03-Apr-2007  jmcneill Match AOAKeylargo, and don't make finding deq a requirement. Sound now
comes out of my last gen G4 Mac Mini, minus mixer controls. ok macallan@
 1.17  25-Mar-2007  macallan fix typo
 1.16  28-Feb-2007  thorpej branches: 1.16.2; 1.16.4; 1.16.6;
TRUE -> true, FALSE -> false
 1.15  17-Dec-2006  macallan branches: 1.15.2;
don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
 1.14  11-Dec-2006  macallan actually change the sample rate when asked to.
Fix provided by Marco Trillo in PR35204
While there also enable 24bit I/O.
 1.13  24-Sep-2006  jmcneill branches: 1.13.2;
Don't use // for comments.
 1.12  23-Aug-2006  macallan branches: 1.12.2; 1.12.4;
use gain table for master volume as well
 1.11  23-Aug-2006  macallan fix some KNF nits
 1.10  11-Aug-2006  macallan Add audio input support. From Magnus Henoch, fixes PR 32664
 1.9  23-Feb-2006  thorpej branches: 1.9.2;
Use device_parent().
 1.8  24-Dec-2005  perry branches: 1.8.2; 1.8.4; 1.8.6;
bare asm -> __asm
 1.7  11-Dec-2005  christos merge ktrace-lwp.
 1.6  10-Aug-2005  macallan - don't call ki2c private functions anymore, use iic_exec() to be a good i2c citizen
- use the deq driver to find the mixer device
- add controls for bass and treble
 1.5  25-Jan-2005  briggs branches: 1.5.6;
Ensure i/o commands are allocated on 16-byte boundary by allocating 15
extra bytes and adjusting array starts.
Issue pointed out on port-macppc by Michael Lorenz.

Also remove extra print of the device name on attach().
 1.4  15-Jan-2005  kent branches: 1.4.2; 1.4.4;
ansify and KNF
 1.3  10-Jan-2005  kent merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
- remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels. Conversion information
is conveyed by stream_filter_list_t.
- change the type of sample_rate: u_long -> u_int
- add `validbits,' which represents the valid data size in
precision bits. It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
- add two parameters to set_params()
stream_filter_list_t *pfil, stream_filter_list *rfil
A HW driver should set filter recipes for requested formats
- constify audio_params parameters of trigger_output() and
trigger_input(). They represent audio formats for the hardware.
- make open() and close() optional
- add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
to round_blocksize()

* sw_code is replaced with stream_filter_t.
stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
- audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
- audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
- audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
- ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
 1.2  29-Oct-2004  yamt branches: 1.2.2;
constify audio_hw_if, midi_hw_if, and radio_hw_if.
 1.1  27-Dec-2003  grant branches: 1.1.4;
add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.
 1.1.4.8  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.7  04-Feb-2005  skrll Sync with HEAD.
 1.1.4.6  17-Jan-2005  skrll Sync with HEAD.
 1.1.4.5  02-Nov-2004  skrll Sync with HEAD.
 1.1.4.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3  18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2  03-Aug-2004  skrll Sync with HEAD
 1.1.4.1  27-Dec-2003  skrll file snapper.c was added on branch ktrace-lwp on 2004-08-03 10:37:21 +0000
 1.2.2.2  09-Jan-2005  kent audio_hw_if change
* make open() and close() optional
* add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
to round_blocksize()
 1.2.2.1  03-Jan-2005  kent adopt the filter pipeline framework
 1.4.4.1  12-Feb-2005  yamt sync with head.
 1.4.2.1  29-Apr-2005  kent sync with -current
 1.5.6.5  15-Nov-2007  yamt sync with head.
 1.5.6.4  27-Oct-2007  yamt sync with head.
 1.5.6.3  03-Sep-2007  yamt sync with head.
 1.5.6.2  30-Dec-2006  yamt sync with head.
 1.5.6.1  21-Jun-2006  yamt sync with head.
 1.8.6.1  22-Apr-2006  simonb Sync with head.
 1.8.4.1  09-Sep-2006  rpaulo sync with head
 1.8.2.1  01-Mar-2006  yamt sync with head.
 1.9.2.1  03-Sep-2006  yamt sync with head.
 1.12.4.2  18-Dec-2006  yamt sync with head.
 1.12.4.1  22-Oct-2006  yamt sync with head
 1.12.2.2  12-Jan-2007  ad Sync with head.
 1.12.2.1  18-Nov-2006  ad Sync with head.
 1.13.2.1  25-Sep-2008  bouyer pullup the following revisions, requested my macallan in ticket 616:
sys/arch/macppc/dev/snapper.c 1.14-1.21
- proper support for 24bit audio on TAS3004 / snapper codecs
- fix sample rate setup bugs ( otherwise the chip would always stay in
44.1kHz )
- add support for the codecs found in G4 Mac Minis ( AOAKeylargo and
AOAK2 ), which don't have hardware volume control
- add support for 'tumbler' codecs found in some iBook G3 models
 1.15.2.2  15-Apr-2007  yamt sync with head.
 1.15.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.16.6.1  29-Mar-2007  reinoud Pullup to -current
 1.16.4.1  11-Jul-2007  mjf Sync with head.
 1.16.2.4  03-Dec-2007  ad Sync with HEAD.
 1.16.2.3  23-Oct-2007  ad Sync with head.
 1.16.2.2  09-Oct-2007  ad Sync with head.
 1.16.2.1  10-Apr-2007  ad Sync with head.
 1.20.14.2  08-Nov-2007  matt sync with -HEAD
 1.20.14.1  06-Nov-2007  matt sync with HEAD
 1.20.12.3  11-Nov-2007  joerg Sync with HEAD.
 1.20.12.2  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.20.12.1  02-Oct-2007  joerg Sync with HEAD.
 1.20.4.5  03-Oct-2007  garbled Sync with HEAD
 1.20.4.4  27-Sep-2007  macallan use CFATTACH_DECL()
 1.20.4.3  19-Sep-2007  macallan sync with HEAD
 1.20.4.2  08-Aug-2007  macallan don't bus_space_map(PAGE_SIZE) - use the actual length OF tells us instead
We need this since the new, shared bus_space_* stuff actually keeps track of
what ranges are mapped
 1.20.4.1  07-Jun-2007  garbled Convert macppc to powerpc bus_space. Lots of work here from Matt Thomas,
as well as the common ofwoea code from myself. Compile tested only,
still probably needs some fine tuning.

Also in this commit:
Convert macppc to new shared ofwoea routines.
Lots of KNF.
 1.21.2.2  18-Oct-2007  yamt sync with head.
 1.21.2.1  06-Oct-2007  yamt sync with head.
 1.22.2.2  13-Nov-2007  bouyer Sync with HEAD
 1.22.2.1  25-Oct-2007  bouyer Sync with HEAD.
 1.24.2.1  19-Nov-2007  mjf Sync with HEAD.
 1.25.20.2  10-Oct-2008  skrll Sync with HEAD.
 1.25.20.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.25.18.3  09-Oct-2010  yamt sync with head
 1.25.18.2  11-Mar-2010  yamt sync with head
 1.25.18.1  04-May-2009  yamt sync with head.
 1.25.16.1  18-May-2008  yamt sync with head.
 1.25.14.3  17-Jan-2009  mjf Sync with HEAD.
 1.25.14.2  28-Sep-2008  mjf Sync with HEAD.
 1.25.14.1  02-Jun-2008  mjf Sync with HEAD.
 1.28.4.1  19-Oct-2008  haad Sync with HEAD.
 1.30.2.2  28-Apr-2009  skrll Sync with HEAD.
 1.30.2.1  19-Jan-2009  skrll Sync with HEAD.
 1.31.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.33.4.1  05-Mar-2011  rmind sync with head
 1.33.2.1  22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.36.10.2  22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.36.10.1  22-Nov-2011  macallan convert snapper
code from mrg, tested on my iBook G4
 1.36.8.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.36.8.1  17-Apr-2012  yamt sync with head
 1.38.12.1  18-May-2014  rmind sync with head
 1.38.8.2  03-Dec-2017  jdolecek update from HEAD
 1.38.8.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.38.4.1  13-Mar-2018  snj Pull up following revision(s) (requested by sevan in ticket #1522):
sys/arch/macppc/dev/snapper.c: 1.42
Fix issue with audio being downpitched, thanks to <nat>
"it seems that snapper_init should be called before audio_attach_mi, as
snapper
init is setting the rate to 44100 after the hardware format has been
configured
by audio_attach_mi.
audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."
Resolves PR port-macppc/52949
 1.39.10.2  26-Apr-2017  pgoyette Sync with HEAD
 1.39.10.1  26-Jul-2016  pgoyette Sync with HEAD
 1.39.6.2  28-Aug-2017  skrll Sync with HEAD
 1.39.6.1  05-Oct-2016  skrll Sync with HEAD
 1.39.4.1  19-Feb-2018  snj Pull up following revision(s) (requested by sevan in ticket #1559):
sys/arch/macppc/dev/snapper.c: 1.42
Fix issue with audio being downpitched, thanks to <nat>
"it seems that snapper_init should be called before audio_attach_mi, as
snapper
init is setting the rate to 44100 after the hardware format has been
configured
by audio_attach_mi.
audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."
Resolves PR port-macppc/52949
 1.40.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.41.6.1  04-Feb-2018  martin Pull up following revision(s) (requested by sevan in ticket #520):
sys/arch/macppc/dev/snapper.c: revision 1.42
Fix issue with audio being downpitched, thanks to <nat>
"it seems that snapper_init should be called before audio_attach_mi, as
snapper
init is setting the rate to 44100 after the hardware format has been
configured
by audio_attach_mi.
audio_attach_mi should be the last thing called during an attach of an audio
device so the audio device is ready to be configured when audio_attach_mi is
called."
Resolves PR port-macppc/52949
 1.43.2.3  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.43.2.2  21-May-2018  pgoyette Sync with HEAD
 1.43.2.1  30-Mar-2018  pgoyette Resolve conflicts between branch and HEAD
 1.47.2.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.47.2.1  10-Jun-2019  christos Sync with HEAD
 1.49.2.3  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.49.2.2  22-Apr-2019  isaki Adapt to audio2.
- New audio filter can access softc so it's simple.
- Clear rval of fixphase on halt.
 1.49.2.1  21-Apr-2019  isaki Use C99 style struct initializer to audio_format.
 1.53.6.1  20-Apr-2020  bouyer Sync with HEAD
 1.55.2.1  03-Apr-2021  thorpej Sync with HEAD.
 1.57.2.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.58.2.2  01-Aug-2021  thorpej Sync with HEAD.
 1.58.2.1  13-May-2021  thorpej Sync with HEAD.
 1.60.2.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed