Changeset 672


Ignore:
Timestamp:
Jan 31, 2021, 9:57:28 AM (5 years ago)
Author:
Paul Smedley
Message:

Don't call snd_device_free() when closing a pcm stream on OS/2, remove workaround for HDA hardware from lib32/sound.c

Location:
GPL/branches/uniaud32-next
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_codec.c

    r669 r672  
    715715{
    716716        struct hda_pcm *pcm = container_of(kref, struct hda_pcm, kref);
    717 
     717#ifndef TARGET_OS2
     718/* don't do this on OS/2 - results in the device being free'd and can't be re-opened */
    718719        if (pcm->pcm)
    719720                snd_device_free(pcm->codec->card, pcm->pcm);
     721#endif
    720722        clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits);
    721723        kfree(pcm->name);
  • GPL/branches/uniaud32-next/lib32/sound.c

    r655 r672  
    619619                {
    620620                        dprintf(("Found phandle for closing: %x reuse flag: %i\n", pHandle, opened_handles[i].reuse));
    621 #if 0 //2020-12-27
    622621                        if (!opened_handles[i].reuse)
    623622                        {
     
    627626                                OSS32_CloseUNI16(); /* say to UNIAUD16 that we closing now */
    628627                        } else
    629 #endif
    630628                        {
    631629                                /* prepare for reuse */
Note: See TracChangeset for help on using the changeset viewer.